Page 1 of 1

no audio dev lockup #1922

Posted: Thu Aug 17, 2017 1:54 pm
by alagner
So this ugly little guy has just bitten me on Devuan Jessie x64 VM...
Too bad, I was not able to recreate it after restarting the machine. Simply disabling the soundcard in VirtualBox does not work. Any clues how to recreate this bug?

https://sourceforge.net/p/exult/bugs/1922/
http://log.usecode.org/exultlog.php?log=9Oct2015

Re: no audio dev lockup #1922

Posted: Sun Aug 20, 2017 4:53 am
by Dominus
hmm, should only happen if there is no soundcard at all in the system and if you are using a non-midi output of Exult (FMopl, MT32-emu, digital...). If you added a soundcard in the VM and then threw it out again, there might be driver "residue" that prevents the bug from triggering.

Re: no audio dev lockup #1922

Posted: Sun Aug 20, 2017 8:47 am
by alagner
Ok, I'll try it with a fresh soundless Linux install then, thanks.

Re: no audio dev lockup #1922

Posted: Sun Aug 20, 2017 12:57 pm
by Dominus
If you can reproduce it, can you test whether it works with SDL2 and the up to date mercurial of SDL2 (SDL 2.0.6 is wrapping up the release or maybe it already is released?).
When I found that bug the soundcardless OS X VM wasn‘t supported by SDL2 anymore...

Re: no audio dev lockup #1922

Posted: Sun Aug 20, 2017 9:21 pm
by alagner
The problem is recreating it. Devuan Jessie X64 again, no sound card in VM, exits fine.

(from gdb)
OGG Vorbis Digital Music: Disabled
Trying: `FMOpl'
Success!
Midi Output: Enabled
Destroying AudioMixer...
Destroying MidiDriver...
[Thread 0x7fffec5ca700 (LWP 28476) exited]
[Thread 0x7ffff161e700 (LWP 28474) exited]
[Inferior 1 (process 28473) exited normally]
(gdb)

With pulseaudio killed I got this additionally when starting:
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default

Re: no audio dev lockup #1922

Posted: Mon Aug 21, 2017 9:41 pm
by alagner
Just for the record: bug is normally not reproducible on any modern linux due to PulseAudio providing the dummy output (tried Arch, Devuan and Slackware). Gonna try FreeBSD tomorrow.

Re: no audio dev lockup #1922

Posted: Sun Sep 17, 2017 8:49 am
by alagner
Linux and BSD are all fine and seems that my bug encounter was a random thing. Could you please point me to a Vbox image with MacOS that is capable of reproducing it (or at least some reliable tutorial how to virtualize it, as I'm having some problems with that ;) )? If not... is the audio thread ever created? For sure it is not running, but question is if it has quit early of just is has not been started at all.

Re: no audio dev lockup #1922

Posted: Sun Sep 17, 2017 6:12 pm
by Dominus
I will need to recreate it with VMWare Fusion. I‘m loathe to install another VM suite like Virtualbox because these all install drivers in the system that can be messy.

Re: no audio dev lockup #1922

Posted: Mon Sep 18, 2017 9:29 am
by alagner
No worries. Just take your time and please drop me a line when you're ready.

Best wishes from Bangkok :)

Re: no audio dev lockup #1922

Posted: Mon Sep 18, 2017 2:07 pm
by Dominus
he he, it's not so easy. VMWare Fusion now installs a sound device and drivers right away... so, my first installation failed because it had a sound device :)

Re: no audio dev lockup #1922

Posted: Mon Sep 18, 2017 4:16 pm
by Dominus
ok, done, need to setup more things but a quick test turned up:

- it happens with SDL 1.2x in 32bit mode (almost current SDL 1.2x development branch)

- it doesn't happen with SDL2 in 64bit mode (SDL 2.0.5 or a tad newer development branch)

- it doesn't happen with the ages old Exult 1.4.9rc1 SDL 1.2x 32bit or 64bit (SDL 1.2x version back then)

(my Exult snapshot for OS X is a universal build that is built for SDL 1.2 32bit and SDL2 64bit)

So what needs to be tested (what I will probably do before I give you this image):
- does it happen for SDL2 in 32bit mode
- does it happen for current SDL 1.2x development branch in both 32 and 64bit?

However it looks like it is a problem of SDL 1.2x.

Edit: tested and it only happens with SDL 1.2x (development branch) both 32 and 64bit - I'm not sure I want to go through a SDL 1.2x regression test...

Re: no audio dev lockup #1922

Posted: Thu Oct 05, 2017 3:37 am
by Alagner (phone)
Dom, can you somehow share the vm with me or is it impossible due to licenses? If the latter, can I provide a patch that I *think* might help so that you could test it?

Re: no audio dev lockup #1922

Posted: Thu Oct 05, 2017 6:11 am
by Dominus
Alagner, I've sent you an email a couple of days ago to the address in your profile (poczta dot fm). Is this still valid?

Re: no audio dev lockup #1922

Posted: Thu Oct 05, 2017 12:09 pm
by alagner
Ok, got it. Seems my spam filter was overreacting ;)

I'll contact you via email then and hopefully we figure sth out.