You are not logged in.

#1 2015-12-24 10:42:12

norg
Member
Registered: 2012-01-13
Posts: 24

Divinity

I'm trying to play Divinity Original Sin with Steam which works fine except for the sound, although all my other games work well with audio.
I get the following error:

AL lib: (EE) alsa_open_playback: Could not open playback device 'default': Device or resource busy
ALSA lib pcm.c:7963:(snd_pcm_recover) underrun occurred

I already fixed the following messages:

AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave

I added the following content into a .asoundrc (since i have the intel onboard soundcard and the nvidia gpu one for hdmi):

pcm.!default {
    type hw
    card 0
}

ctl.!default {
    type hw
    card 0
}

I also added in .alsoftrc:

[general]
drivers=alsa

The first remove the unable to open slave and the second removed the pulseaudio warning. But now i'm stuck and have no idea how to fix the alsa_open_playback.
I don't use pulseaudio and i hope i can keep it that way.

Thanks

Offline

#2 2015-12-24 10:56:22

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Divinity

Do you have all the sound related 32 bit libraries installed?

Offline

#3 2015-12-24 10:58:25

norg
Member
Registered: 2012-01-13
Posts: 24

Re: Divinity

I guess so, i checked but here is the list:

lib32-alsa-plugins 1.1.0-1
lib32-atk 2.18.0-1
lib32-dbus-glib 0.104-1
lib32-gconf 3.2.6-1
lib32-gdk-pixbuf2 2.32.3-1
lib32-gtk2 2.24.29-1
lib32-libcups 2.1.2-2
lib32-libcurl-compat 7.23.1-3
lib32-libcurl-gnutls 7.45.0-0
lib32-libgcrypt15 1.5.4-1
lib32-libnm-glib 1.0.8-1
lib32-libpulse 7.1-1
lib32-libudev.so.0 0.1-1
lib32-libxcomposite 0.4.4-2
lib32-libxinerama 1.1.3-1
lib32-libxrandr 1.5.0-1
lib32-libxtst 1.2.2-1
lib32-networkmanager 1.0.8-1
lib32-nss 3.20.1-1
lib32-openal 1.17.1-1
lib32-pango 1.38.1-1
lib32-sdl2 2.0.3-3
lib32-sdl2_image 2.0.0-1

alsa-plugins and also openal

Offline

#4 2015-12-24 11:50:09

rudzha
Member
Registered: 2012-06-25
Posts: 19

Re: Divinity

Hmm, I'm trying to run it on an Optimus laptop with Bumblebee and I get what I believe is a segfault.

Game crashed.
Thread "EoCApp" (814934144)
Signal: 11
(0) /usr/lib/libpthread.so.0 : +0x10d60 [0x7f0838174d60]

Might be optimus related but then again, it crashes with the same error when launched with the Intel card.

Offline

#5 2015-12-24 11:51:44

norg
Member
Registered: 2012-01-13
Posts: 24

Re: Divinity

I get the crash wieh EoCApp but just when i want to quit.

Btw i switched to pulseaudio and it's working now, but still not perfect solution.

Offline

#6 2015-12-24 13:10:53

MatejLach
Member
From: United Kingdom
Registered: 2011-06-22
Posts: 314
Website

Re: Divinity

Same problem as @rudzha on an Optimus laptop using Bumblebee as well as Intel GPU only.
But the game works fine on my GTX 970 desktop with Arch as well.

Offline

#7 2015-12-24 15:55:16

gnunn
Member
Registered: 2013-10-21
Posts: 102

Re: Divinity

A +1 on the issue mentioned by @rudzha, game doesn't work on my Optimus laptop with either primusrun or the intel card.

Offline

#8 2015-12-25 00:14:49

norg
Member
Registered: 2012-01-13
Posts: 24

Re: Divinity

Although i get sound sometimes i often end up with even with pulsaudio sad

ALSA lib pcm.c:7963:(snd_pcm_recover) underrun occurred

I already tried to set the guide at https://wiki.archlinux.org/index.php/Pu … PulseAudio but won't change anything.
Since this game is the _only_ thing that results in those errors i guess they need to fix it, but i'm wondering why it sometimes works and sometimes not.

Ok i can't get it back working, i did not change anything despite quiting the game and running it again some hours later. Must be something the devs did wrong, since it's the only game with such huge issues.

Last edited by norg (2015-12-25 10:56:55)

Offline

#9 2015-12-25 16:29:14

gnunn
Member
Registered: 2013-10-21
Posts: 102

Re: Divinity

For the optimus issue, someone posted the solution on the Steam forums. You need to modify the /home/gnunn/.steam/steam/SteamApps/common/Divinity Original Sin Enhanced Edition/runner.sh file to include primusrun, i.e.

LD_LIBRARY_PATH="." primusrun ./EoCApp

Offline

#10 2015-12-25 18:37:37

MatejLach
Member
From: United Kingdom
Registered: 2011-06-22
Posts: 314
Website

Re: Divinity

@gnunn That worked beautifully, thank you!

Offline

#11 2015-12-25 19:35:40

norg
Member
Registered: 2012-01-13
Posts: 24

Re: Divinity

Even with stream feature (to another system) the same issue there with audio sad another soundcard but also recent archlinux.

Not happy but it looks like this workaround helps: https://wiki.archlinux.org/index.php/Pu … are_device

Ok i still have to kill and start pulseaudio several times before playing it O_o

Last edited by norg (2015-12-25 22:40:24)

Offline

#12 2015-12-31 14:00:40

norg
Member
Registered: 2012-01-13
Posts: 24

Re: Divinity

FIY: It's not 100% solved but i switched from my SPDIF optical output to normal 3.5 cinch analog output (same speakers) and now it's working withouth the underrun issue, but still needs pulseaudio.

Offline

#13 2015-12-31 14:22:37

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Divinity

"It needs pulseaudio" is nothing you will be very likely to find real support for these days. Those games are mainly optimized to run on 32bit Ubuntu, so pure ALSA doesn't matter anymore for most developers.

Offline

#14 2015-12-31 16:18:03

norg
Member
Registered: 2012-01-13
Posts: 24

Re: Divinity

Sure i know that it's tested for Ubuntu/SteamOS but trying to workaround such issues should be valid. I did not test apulse again after the output switch. But nevertheless installing pulseaudio to make it work is fine for me now.
Just was wondering why my >100 other games in steam for linux just worked fine.

Offline

Board footer

Powered by FluxBB