Steam snap can no longer run most games

Everything worked fine up until a couple of weeks ago. A few games still work, but most do not. They produce various errors about being unable to open shared libraries, for example:

The NVIDIA driver was unable to open ''.  This library is required at run time.


ALSA lib dlmisc.c:337:(snd_dlobj_cache_get0) Cannot open shared library ( cannot open shared object file: No such file or directory)
Couldn't open audio: ALSA: Couldn't open audio device: No such device or address
[!!!ERROR!!!] Couldn't open audio: ALSA: Couldn't open audio device: No such device or address


Exception in thread "LWJGL Application" java.lang.ExceptionInInitializerError
	at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setVSync(
	at com.badlogic.gdx.backends.lwjgl.LwjglApplication$
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
	at org.lwjgl.opengl.LinuxDisplay.getAvailableDisplayModes(
	at org.lwjgl.opengl.LinuxDisplay.init(
	at org.lwjgl.opengl.Display.<clinit>(
	... 2 more
AL lib: (EE) alc_cleanup: 1 device not closed

which google tells me is caused by LWJGL being unable to open the xrandr library.

The mentioned libraries are currently installed on the host system:

al@al-desktop:~$ dpkg -S
libnvidia-gl-525:i386: /usr/lib/i386-linux-gnu/
libnvidia-gl-525:amd64: /usr/lib/x86_64-linux-gnu/
al@al-desktop:~$ dpkg -S
libasound2-plugins:amd64: /usr/lib/x86_64-linux-gnu/alsa-lib/

The other regular error message happens when steam itself loads and is a dbus-related error:

steam-runtime-launcher-service[105335]: E: Unable to acquire bus name "com.steampowered.PressureVessel.LaunchAlongsideSteam"
Steam Runtime Launch Service: steam-runtime-launcher-service pid 105335 exited
Steam Runtime Launch Service: steam-runtime-launcher-service keeps crashing on startup, disabling

I checked the session bus and nothing is holding this name, so it must be a confinement error.

The runtime launcher service seems to be the program responsible for setting up the runtime environment with libraries from the host, so this would explain why those libraries are suddenly missing.

Also, running the affected games directly from the CLI works fine, at least for the ones that don’t have DRM.

1 Like

LWJGL/xrandr problem:

ALSA/Pulse problem:

The other two issues with nvidia and the runtime manager appear to have been fixed.