ValveSoftware / SteamVR-for-Linux

Issue tracker for the Linux port of SteamVR
919 stars 45 forks source link

Bundled libmpg123.so.0 can be too old for system installed libasound_module_pcm_pulse.so #524

Open kisak-valve opened 2 years ago

kisak-valve commented 2 years ago

Describe the bug During routine driver testing with my Gentoo test system with SteamVR Home and Half-Life Alyx, the audio path to failed with: ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.6.1/work/alsa-lib-1.2.6.1/src/dlmisc.c:337:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_pcm_pulse.so (/usr/lib64/libsndfile.so.1: undefined symbol: mpg123_info2) This is due to the bundled version of libmpg123.so.0 being too old for libsndfile 1.1.0 built against mpg 1.29.3, which pulled in the newer symbol, and results in audio being disabled in both applications.

Renaming [...]/steamapps/common/SteamVR/tools/steamvr_environments/game/bin/linuxsteamrt64/libmpg123.so.0 and [...]/steamapps/common/Half-Life Alyx/game/bin/linuxsteamrt64/libmpg123.so.0 to libmpg123.so.0.disabled allowed the system to use the system-installed mpg123 and have working audio.

System Information (please complete the following information):

MikMikus commented 1 year ago

I'm having a similar sound problem in Kingdom Rush after a system update. Renaming libmpg123.so.0 to libmpg123.so.0.disabled in the game folder temporarily helped. Thx @kisak-valve

XDM-Inc commented 10 months ago

this was a problem for me as well in fedora linux with a nvidia card. removing that file FIXED it!