LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-06-2021, 03:37 AM   #1
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Steam/proton issues with some games, related to ALSA


Hi, running some games through steam, on slackware -current, many of them fail to run and provide this output;

Code:
ALSA lib dlmisc.c:337:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_pcm_pulse.so (/usr/lib64/alsa-lib/libasound_module_pcm_pulse.so: cannot open shared object file: No such file or directory)
INFO: OpenAudioDevice failed: ALSA: Couldn't open audio device: No such device or address
INFO: Assertion failed: 0 && "Failed to open audio device!"
ALSA lib dlmisc.c:337:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_pcm_pulse.so (/usr/lib64/alsa-lib/libasound_module_pcm_pulse.so: cannot open shared object file: No such file or directory)
INFO: OpenAudioDevice failed: ALSA: Couldn't open audio device: No such device or address
wine: Unhandled page fault on read access to 0000000000000000 at address 00007F5DD802B69C (thread 018c), starting debugger...
The file however does exist:
Code:
> $ ls -lah /usr/lib64/alsa-lib/libasound_module_pcm_pulse.so                       
-rwxr-xr-x 1 root root 35K May 31 20:15 /usr/lib64/alsa-lib/libasound_module_pcm_pulse.so
I'm not sure where to look next. So far i have tried:
* reinstalled all base packages
* deleted ~/.steam for a fresh install
* switched to pipewire

But no changes from trying all of this. Wondering is anyone else getting this issue? And anything else i could try? Thanks.
 
Old 11-06-2021, 08:18 AM   #2
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,568

Rep: Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905
Do you have multilib installed? Are you using pulse? Also, have you tried it through proton? (linux native Steam, their implementation of WINE.)
 
Old 11-06-2021, 07:53 PM   #3
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836

Original Poster
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Quote:
Originally Posted by garpu View Post
Do you have multilib installed? Are you using pulse? Also, have you tried it through proton? (linux native Steam, their implementation of WINE.)
Yes, this is only happening with some proton games as mentioned. Although it seems temperamental, as i'm now able to play one of the games https://www.protondb.com/app/1222140 , which is now running flawlessly. I think i'd only deleted the prefix in ~/.steam/steam/steamapps/compatdata/1222140

I'll mark this as solved, because it's probably not slackware related, and seems to be something up with proton/steam itself.
 
1 members found this post helpful.
Old 11-06-2021, 08:41 PM   #4
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
I use proton on Steam and I've never had this issue. Have you run
Code:
slackpkg new-config
? Did you ever use the optional replacement alsa sound server packages that replaced pulse audio for a bit on Current for those that wanted it? Is everything relevant installed in Current?
Code:
slackpkg install slackware64
What desktop environment are you using?
Check this out:
https://wiki.archlinux.org/title/PulseAudio

Edit:
On command line type
Code:
steam --reset
.

This will make steam rebuild its pins and it will also screw with steam play so you'll have to go back and enable it in settings, and then set all the games back to the version of proton you wanted to use if it isn't the one you chose in settings.

Last edited by RadicalDreamer; 11-06-2021 at 08:49 PM.
 
Old 11-06-2021, 08:50 PM   #5
adcdam
Member
 
Registered: Aug 2020
Location: Berisso, Argentina
Distribution: Slackware
Posts: 255

Rep: Reputation: 205Reputation: 205Reputation: 205
Hi try to launch the game that doesnt work with this in Steam:
Code:
LD_PRELOAD=~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0 %command%
if the game works the problem is SDL2 that could be not linking to pulseaudio.
and in that case the problem could be similar to this:
https://lists.opensuse.org/archives/...NG6SPGDSRLHHU/
and if its the case its related to Slackware and perhaps SDL2 would need a rebuild.

Last edited by adcdam; 11-06-2021 at 11:25 PM.
 
Old 11-07-2021, 02:37 AM   #6
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836

Original Poster
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Quote:
Originally Posted by RadicalDreamer View Post
Did you ever use the optional replacement alsa sound server packages that replaced pulse audio for a bit on Current for those that wanted it?
Nope.

Quote:
What desktop environment are you using?
Check this out:
https://wiki.archlinux.org/title/PulseAudio
Primarily AwesomeWM, although doesn't seem desktop related, as same thing happens in xfce and kde.


It's as if 95% of the time, some games just fail to launch. But, without actually changing any settings, eventually they do run if you keep trying to launch them. And oddly, when a game fails to launch multiple times it starts thinking you've tried launching it from another machine, resulting in cloud saves being lost. Really frustrating lol.

Last edited by coralfang; 11-07-2021 at 02:40 AM.
 
Old 11-07-2021, 06:59 AM   #7
adcdam
Member
 
Registered: Aug 2020
Location: Berisso, Argentina
Distribution: Slackware
Posts: 255

Rep: Reputation: 205Reputation: 205Reputation: 205
Hi did You try to launch the game that doesnt work with this in Steam?:

LD_PRELOAD=~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0 %command%

Last edited by adcdam; 11-07-2021 at 07:00 AM.
 
Old 11-07-2021, 07:57 AM   #8
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,568

Rep: Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905
Are you using the steam beta client, or the regular one?
 
Old 11-07-2021, 08:45 AM   #9
adcdam
Member
 
Registered: Aug 2020
Location: Berisso, Argentina
Distribution: Slackware
Posts: 255

Rep: Reputation: 205Reputation: 205Reputation: 205
Try launching the Game with that command in either regular or beta as the problem seems to be the same.
copy that command, go to manage, properties and paste in launch options.
https://imgur.com/gkqeeak

Last edited by adcdam; 11-07-2021 at 08:53 AM.
 
Old 11-07-2021, 02:59 PM   #10
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
Quote:
Originally Posted by coralfang View Post
Nope.


Primarily AwesomeWM, although doesn't seem desktop related, as same thing happens in xfce and kde.


It's as if 95% of the time, some games just fail to launch. But, without actually changing any settings, eventually they do run if you keep trying to launch them. And oddly, when a game fails to launch multiple times it starts thinking you've tried launching it from another machine, resulting in cloud saves being lost. Really frustrating lol.
Did you
Code:
bash-5.1$ steam --reset
?

If that doesn't work then I have no clue. I only use Steam on one machine so I have no idea what is happening with your save files. You could remove the authorizations on other machines and see if it still does it. If that is it then you could open up an issue with Valve. https://github.com/ValveSoftware/steam-for-linux
 
Old 11-07-2021, 10:11 PM   #11
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836

Original Poster
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Quote:
Originally Posted by adcdam View Post
Hi did You try to launch the game that doesnt work with this in Steam?:

LD_PRELOAD=~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0 %command%
No difference as far as i can tell, other than when the game does decide to actually launch, this only seems to stop the steam overlay from functioning.
 
Old 11-07-2021, 10:12 PM   #12
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836

Original Poster
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Quote:
Originally Posted by RadicalDreamer View Post
Did you
Code:
bash-5.1$ steam --reset
?

If that doesn't work then I have no clue. I only use Steam on one machine so I have no idea what is happening with your save files. You could remove the authorizations on other machines and see if it still does it. If that is it then you could open up an issue with Valve. https://github.com/ValveSoftware/steam-for-linux
Yeah, went a step further than that and deleted the whole ~/.steam directory for a fresh profile
 
Old 11-14-2021, 08:58 PM   #13
adcdam
Member
 
Registered: Aug 2020
Location: Berisso, Argentina
Distribution: Slackware
Posts: 255

Rep: Reputation: 205Reputation: 205Reputation: 205
Im having problems with a game on Steam skyrim special edition i got this:

Code:
INFO: OpenAudioDevice failed: ALSA: Couldn't open audio device: Device or resource busy
INFO: Assertion failed: 0 && "Failed to open audio device!"

i also find this:
https://githubmemory.com/repo/ValveS...ues/357?page=2
im using current not 14.2
But the problem seems Slackware related as i asked others if they are having the same problem on other distros and not seems the case.
edit after reading this: https://github.com/ValveSoftware/ste...ime/issues/357
i was able to launch the game with:
Code:
SDL_AUDIODRIVER=pulseaudio %command%
as 414n posted:
Quote:
It seems like the pulseaudio detection code inside SDL2 fails to determine that pulseaudio is "alive and well" on the system and decides to switch to ALSA. This can be overcome by forcing the audio driver choice via the SDL_AUDIODRIVER=pulseaudio environment variable override or by making sure that the missing pulseaudio libraries (that live under /usr/lib64/pulseaudio on my system) can be found.
i have those libraries and it failed anyway until launching the game with SDL_AUDIODRIVER=pulseaudio.
i still think theres a problem with SDL2.

Last edited by adcdam; 11-14-2021 at 10:59 PM.
 
1 members found this post helpful.
Old 12-25-2021, 09:24 AM   #14
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836

Original Poster
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Quote:
Originally Posted by adcdam View Post
Im having problems with a game on Steam skyrim special edition i got this:

Code:
INFO: OpenAudioDevice failed: ALSA: Couldn't open audio device: Device or resource busy
INFO: Assertion failed: 0 && "Failed to open audio device!"

i also find this:
https://githubmemory.com/repo/ValveS...ues/357?page=2
im using current not 14.2
But the problem seems Slackware related as i asked others if they are having the same problem on other distros and not seems the case.
edit after reading this: https://github.com/ValveSoftware/ste...ime/issues/357
i was able to launch the game with:
Code:
SDL_AUDIODRIVER=pulseaudio %command%
as 414n posted:

i have those libraries and it failed anyway until launching the game with SDL_AUDIODRIVER=pulseaudio.
i still think theres a problem with SDL2.
Yeah seems to be a problem with Slackware's SDL. Just encountered this issue again with HITMAN 2, and only runs when adding
Code:
SDL_AUDIODRIVER=pulseaudio %command%
as you stated. Definitely looks like that is the solution/workaround.

Cheers.
 
Old 12-25-2021, 01:21 PM   #15
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,523

Rep: Reputation: 8489Reputation: 8489Reputation: 8489Reputation: 8489Reputation: 8489Reputation: 8489Reputation: 8489Reputation: 8489Reputation: 8489Reputation: 8489Reputation: 8489
Where are you obtaining steam from? Based on reading this entire thread:

https://github.com/ValveSoftware/ste...ime/issues/357

...I'm suspecting that the issue could be obsolete hacks made to steam rather than any problem with SDL2 (which is only minimally patched on -current).
 
1 members found this post helpful.
  


Reply

Tags
alsa, libasound, proton, steam, wine



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setcap works with Wine but not with Proton (Proton "ignores" it) Liemaeu Linux - Software 2 03-24-2021 08:18 AM
LXer: There's now over 6,000 Linux games on Steam plus thousands more playable with Steam Play Proton LXer Syndicated Linux News 0 04-24-2020 02:38 AM
LXer: Steam Play Proton 4.11-9 is out with a few fixes, plus a new release of Proton GE LXer Syndicated Linux News 0 11-28-2019 06:12 PM
LXer: Want a more up to date Proton for Steam Play on Linux? Proton GE has a big new release out LXer Syndicated Linux News 0 09-04-2019 11:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration