OpenAL may randomly fail to initialize

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

OpenAL may randomly fail to initialize

Post by Major Cooke »

It's utterly sporadic and absolutely random when it decides it doesn't want to load up at all.

There's no way to reproduce it reliably at all. It just sometimes fails to start. I do nothing out of the ordinary -- so I'm guessing something might not be initializing properly.
User avatar
Rachael
Posts: 13530
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: OpenAL may randomly fail to initialize

Post by Rachael »

Which OpenAL binaries are you using?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: OpenAL may randomly fail to initialize

Post by Graf Zahl »

Whatever goes wrong here is outside GZDoom's control. This sounds like OpenAL fails to acquire access to the system's sound interface. This can easily be caused by a third party application not playing nicely.
User avatar
Chris
Posts: 2940
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: OpenAL may randomly fail to initialize

Post by Chris »

If you're able to get a trace log when it happens, that would be useful (set the ALSOFT_LOGLEVEL environment variable to 3 when running gzdoom, and it'll write traces and warnings to stderr, along with any errors).

If you're using Windows, the first thought that comes to mind is an old race condition where it tries to start sending thread messages during device opening before the target thread had its message queue initialized. However, that was fixed a number of years ago way back in 1.16. I've not heard such reports of infrequent device open failures otherwise.
User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: OpenAL may randomly fail to initialize

Post by Major Cooke »

Rachael wrote:Which OpenAL binaries are you using?
If you're asking about for compiling, then the ones available in the instruction setup for Windows.

If you're asking for actual running, then I'm just using an OpenAL32.dll from one of the devbuilds.
Chris wrote:If you're able to get a trace log when it happens, that would be useful (set the ALSOFT_LOGLEVEL environment variable to 3 when running gzdoom, and it'll write traces and warnings to stderr, along with any errors).

If you're using Windows, the first thought that comes to mind is an old race condition where it tries to start sending thread messages during device opening before the target thread had its message queue initialized. However, that was fixed a number of years ago way back in 1.16. I've not heard such reports of infrequent device open failures otherwise.
Hmmm... Could be. I'll try a few things and see what happens.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: OpenAL may randomly fail to initialize

Post by _mental_ »

Devbuilds still use official build of 1.17.2 while GZDoom 3.1.0 was release with more recent version, slightly earlier than 1.18.0.
User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: OpenAL may randomly fail to initialize

Post by Major Cooke »

That might explain it. Okay. I'll give it a try.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: OpenAL may randomly fail to initialize

Post by Graf Zahl »

So, any feedback?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: OpenAL may randomly fail to initialize

Post by Graf Zahl »

Since there hasn't been any feedback for 6 months, off this goes.
User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: OpenAL may randomly fail to initialize

Post by Major Cooke »

Oh. I thought I replied to this. Yeah it's working fine.
Post Reply

Return to “Closed Bugs [GZDoom]”