For Euro Truck Simulator 2 players who are having the issue of crash after start in launcher, this guide is about on my Arch Linux setup with pipewire on the board the game crashes after start button in launcher is pressed. Fix below.
Error
…Initialising SDL Audio:ALSA lib confmisc.c:855:(parse_card) cannot find card ‘0’ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directoryALSA lib confmisc.c:422:(snd_func_concat) error evaluating stringsALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directoryALSA lib confmisc.c:1342:(snd_func_refer) error evaluating nameALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directoryALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directoryALSA lib pcm.c:2675:(snd_pcm_open_noupdate) Unknown PCM defaultFATAL ERROR : Failed to open audio output device: “ALSA: Couldn’t open audio device: No such file or directory”Failed to open audio output device: “ALSA: Couldn’t open audio device: No such file or directory”./PrisonArchitect: line 59: 36557 Aborted (core dumped) “$base”/PrisonArchitect.x86_64 “$@”
Fix
It’s based on this answer i found online (here: link[www.gog.com]).
Go to your Prison Architect folder, mine is under ~/.local/share/Steam/steamapps/common/Prison\ Architect/
Set these env variables:
export SDL_AUDIODRIVER=alsaexport AUDIODEV=pulse
I have not tried anything else set as AUDIODEV, if something else gives better results please leave a comment.
Then run the game. I am launching it via terminal, inside game folder directory:
./PrisonArchitect
You can, of course, automate this and put it into a script, but there are probably other tutorials on this already.
Another helpful fix
You can encounter another error associated with steam app id, in that case:
echo 233450 > ~/.local/share/Steam/steamapps/common/Prison\ Architect/steam_appid.txt
That’s all we are sharing today in Euro Truck Simulator 2 – How to Fix Linux Game Crash on Launch (Audio Problem Case), if you have anything to add, please feel free to leave a comment below, you can also read the original article here, all the credits goes to the original author KKTLnx
Related Posts:
- Euro Truck Simulator 2: How to Add Radio (2019)
- Euro Truck Simulator 2 – 100% Achievement Checklist Guide
- Euro Truck Simulator 2 – Halloween and West Balkans DLC Event Guide
- Euro Truck Simulator 2 How to Fix 100% GPU Usage When you Tab Out
- Euro Truck Simulator 2: All Trucks’ Prices