I usually have no problems playing PA, but today, PA just refused to launch. I run steam in command line so I was able to capture the following debug: Code: Game update: AppID 233250 "Planetary Annihilation", ProcID 7774, IP 0.0.0.0:0 7775 06:30:36.474960 I | Initializing Coherent UI ver. 1.4.0.0 7775 06:30:36.475011 D | Coherent UI system settings: 7775 06:30:36.475031 D | HostDirectory {/home/kenny/.local/share/Steam/SteamApps/common/Planetary Annihilation/host} 7775 06:30:36.475044 D | EnableProxy {0} 7775 06:30:36.475055 D | AllowCookies {0} 7775 06:30:36.475079 D | CookiesResource {} 7775 06:30:36.475094 D | CachePath {} 7775 06:30:36.475106 D | HTML5LocalStoragePath {/home/kenny/.local/Uber Entertainment/Planetary Annihilation/localstore} 7775 06:30:36.475117 D | ForceDisablePluginFullscreen {1} 7775 06:30:36.475128 D | DisableWebSecurity {1} 7775 06:30:36.475139 D | DebuggerPort {9999} 7775 06:30:36.475149 D | WriteMinidumps {0} 7775 06:30:36.475160 D | MinidumpFolder {} 7775 06:30:36.475171 D | Is using default log handler {yes} 7775 06:30:36.475182 D | Is using default file handler {yes} 7775 06:30:36.475193 D | Is using default allocator {yes} /home/kenny/.local/share/Steam/SteamApps/common/Planetary Annihilation/host/CoherentUI_Host: line 4: ldconfig: command not found /home/kenny/.local/share/Steam/SteamApps/common/Planetary Annihilation/host/CoherentUI_Host: line 19: ldconfig: command not found [7788:7788:ERROR:resource_bundle.cc(578)] Failed to load /home/kenny/.local/share/Steam/SteamApps/common/Planetary Annihilation/host/ui_resources_100_percent.pak Some features may not be available. ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave Segmentation fault Game removed: AppID 233250 "Planetary Annihilation", ProcID 7774 Was there a recent update? I was able to play fine yesterday
Oops... This is your problem: Code: /home/kenny/.local/share/Steam/SteamApps/common/Planetary Annihilation/host/ CoherentUI_Host: line 4: ldconfig: command not found
That's obvious, but I've changed no configurations, since yesterday unless something changed with the build. Was there an update today?
Code: Game update: AppID 233250 "Planetary Annihilation", ProcID 8305, IP 0.0.0.0:0 8306 06:51:36.512212 I | Initializing Coherent UI ver. 1.4.0.0 8306 06:51:36.512261 D | Coherent UI system settings: 8306 06:51:36.512282 D | HostDirectory {/home/kenny/.local/share/Steam/SteamApps/common/Planetary Annihilation/host} 8306 06:51:36.512295 D | EnableProxy {0} 8306 06:51:36.512306 D | AllowCookies {0} 8306 06:51:36.512326 D | CookiesResource {} 8306 06:51:36.512341 D | CachePath {} 8306 06:51:36.512353 D | HTML5LocalStoragePath {/home/kenny/.local/Uber Entertainment/Planetary Annihilation/localstore} 8306 06:51:36.512364 D | ForceDisablePluginFullscreen {1} 8306 06:51:36.512375 D | DisableWebSecurity {1} 8306 06:51:36.512385 D | DebuggerPort {9999} 8306 06:51:36.512396 D | WriteMinidumps {0} 8306 06:51:36.512407 D | MinidumpFolder {} 8306 06:51:36.512418 D | Is using default log handler {yes} 8306 06:51:36.512428 D | Is using default file handler {yes} 8306 06:51:36.512439 D | Is using default allocator {yes} ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave [8316:8316:ERROR:resource_bundle.cc(578)] Failed to load /home/kenny/.local/share/Steam/SteamApps/common/Planetary Annihilation/host/ui_resources_100_percent.pak Some features may not be available. Segmentation fault Game removed: AppID 233250 "Planetary Annihilation", ProcID 8305 I shouldn't need to change my PATH for this (ldconfig), but I added that subtle change on a local shell just to verify.
Now at least Coherent starts. Can you try to run game directly from console? (not though Steam) Just to be sure Steam and it's environment is not affect game. Actually it's might crash because of this: Code: ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave If FMOD fail to initialize game won't start.
I had a strange feeling that'd be it. The only reason I didn't bring that up is that I'm using USB audio and alsa doesn't behave well with USB audio so most of the times my games end up mute as sound eventually cuts out, especially when I'm moving from lobby to the start of a game. I had to force reload (an actual reboot due to the builtin - ness of it) the driver, one of the few times I need to reboot my machine. I think I'll have to compile my own alsa libraries eventually, just to debug this issue. What's interesting is that all valve games don't have this issue, perhaps it's how FMOD is interfacing with alsa? It tends to corrupt the sound for my entire system.
do you have the crashlog, it will show part of the stack & what libs were involved with the crash. do you have pulseaudio setup or are you alsa-only?
SXX, you're spot on, I removed pulse because I wasn't sure if pulse was the culprit. When I had pulse, I'd use pavucontrol along with restarting pulseaudio to get it back. Back then I wouldn't crash, perhaps since it was listening on pulse's audio server, which handled the alsa snafu by simply stop serving sound to the client output. When I get time this weekend, I'm going to compile my own alsa modules and turn on the debug to see what's going on here. What's really strange is that it only happens with USB audio. In respect to crash logs related to audio (or rather debug), alsa doesn't have debug enabled by default (as far as I can tell). Running pulse on the highest debug level reveals nothing as the connection is still active, it's just pulse appears to have nothing to serve. The crash related to PA was as SXX stated, due to a failure to grab an alsa client, I didn't know PA would crash and burn as it did.
I notice that closing out the game and restarting it (usually after a UI crash or after it has leaked most of my RAM) screws up PulseAudio, making the sound very static-y (the sound daemon un Xubuntu) I'm not sure why. I have to $ killall pulseaudio to restart the daemon and then I can run the game with normal sound.
I never seen such behaviours. Might be it's just got into SWAP? Also if you have limited RAM I recommend you to run PA with cgroup memory limit. This will make sure that game only using amount of physical memory you're allowed, really useful. Code: sudo -i cgcreate -a $USER -g memory:patest echo 4294967296 > /sys/fs/cgroup/memory/patest/memory.limit_in_bytes cgclassify -g memory:patest/ `pidof PA` cat /proc/`pidof PA`/cgroup I suppose this can be adjusted to move some Coherent processes under same limit.
Thanks for the tip. I will try this! Even having 8GB of RAM, I close any desktop programs I am not using while running PA. Most of the time this usage during play does not exceed 4GB, but PA will spike sometimes and things will go to swap and will have serious performance detriments for PA. I understand PA is far from being optimized and final, so I appreciate the work-around! The static sound from PA will only occur *after I restart* the game and there is plenty of free memory. The system is not utilizing swap at this time. I think it just may be some bug in pulse audio that PA now catches, though it is only causing a problem in PA and only since 68331. It even happens if the UI is not crashed and I had just exited the game with the UI quit buttons oddly enough.
Check Coherent memory usage, e.g using such script: Code: #!/bin/bash ps -C $1 -O rss | gawk '{ count ++; sum += $2 }; END {count --; print "Number of processes =",count; print "Memory usage per process =",sum/1024/count, "MB"; print "Total memory usage =", sum/1024, "MB" ;};' Just run it as "./psmem CoherentUI_Host" After you joined actual game you can put Coherent processes into same cgroup.
Speaking of sound issues, I have noticed that after the issue I mentioned here occurs and I close the game, from then on my audio had a slight but noticeable latency to it. For instance, when I went to play TF2 I noticed that game sounds were lagging behind what was going on in the game. The same was true for other games as well such as Dota 2. It always seemed to happen after my memory issues with PA. Not sure how relevant it is here, but it seemed like it might be worth mentioning. The latency goes away when I restart my computer.