OpenAL may randomly fail to initialize
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.
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.
- Major Cooke
- Posts: 8175
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
OpenAL may randomly fail to initialize
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.
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.
Re: OpenAL may randomly fail to initialize
Which OpenAL binaries are you using?
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49067
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: OpenAL may randomly fail to initialize
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.
- Chris
- Posts: 2942
- Joined: Thu Jul 17, 2003 12:07 am
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
Re: OpenAL may randomly fail to initialize
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.
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.
- Major Cooke
- Posts: 8175
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: OpenAL may randomly fail to initialize
If you're asking about for compiling, then the ones available in the instruction setup for Windows.Rachael wrote:Which OpenAL binaries are you using?
If you're asking for actual running, then I'm just using an OpenAL32.dll from one of the devbuilds.
Hmmm... Could be. I'll try a few things and see what happens.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.
Re: OpenAL may randomly fail to initialize
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.
- Major Cooke
- Posts: 8175
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: OpenAL may randomly fail to initialize
That might explain it. Okay. I'll give it a try.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49067
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: OpenAL may randomly fail to initialize
So, any feedback?
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49067
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: OpenAL may randomly fail to initialize
Since there hasn't been any feedback for 6 months, off this goes.
- Major Cooke
- Posts: 8175
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: OpenAL may randomly fail to initialize
Oh. I thought I replied to this. Yeah it's working fine.