no audio dev lockup #1922

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
alagner
Posts: 118
Joined: Thu May 14, 2020 1:34 pm

no audio dev lockup #1922

Post 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
A.M.Miera
vel. Alagner Dragon
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: no audio dev lockup #1922

Post 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.
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
alagner
Posts: 118
Joined: Thu May 14, 2020 1:34 pm

Re: no audio dev lockup #1922

Post by alagner »

Ok, I'll try it with a fresh soundless Linux install then, thanks.
A.M.Miera
vel. Alagner Dragon
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: no audio dev lockup #1922

Post 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...
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
alagner
Posts: 118
Joined: Thu May 14, 2020 1:34 pm

Re: no audio dev lockup #1922

Post 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
A.M.Miera
vel. Alagner Dragon
alagner
Posts: 118
Joined: Thu May 14, 2020 1:34 pm

Re: no audio dev lockup #1922

Post 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.
A.M.Miera
vel. Alagner Dragon
alagner
Posts: 118
Joined: Thu May 14, 2020 1:34 pm

Re: no audio dev lockup #1922

Post 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.
A.M.Miera
vel. Alagner Dragon
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: no audio dev lockup #1922

Post 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.
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
alagner
Posts: 118
Joined: Thu May 14, 2020 1:34 pm

Re: no audio dev lockup #1922

Post by alagner »

No worries. Just take your time and please drop me a line when you're ready.

Best wishes from Bangkok :)
A.M.Miera
vel. Alagner Dragon
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: no audio dev lockup #1922

Post 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 :)
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: no audio dev lockup #1922

Post 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...
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Alagner (phone)

Re: no audio dev lockup #1922

Post 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?
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: no audio dev lockup #1922

Post 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?
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
alagner
Posts: 118
Joined: Thu May 14, 2020 1:34 pm

Re: no audio dev lockup #1922

Post by alagner »

Ok, got it. Seems my spam filter was overreacting ;)

I'll contact you via email then and hopefully we figure sth out.
A.M.Miera
vel. Alagner Dragon
Locked