[openal] MMDevApiOpenPlayback: Device init failed: 0x80004005

Chris Robinson chris.kcat at gmail.com
Sun May 14 22:17:02 EDT 2017

On 05/14/2017 06:53 PM, Pokechu22 wrote:
> Hello!
> I do some development with Minecraft, and occasionally, the sound
> engine for the game will fail to start (see
> https://bugs.mojang.com/browse/MC-9974).  I've traced this down to an
> OpenAL issue, where very rarely OpenAL will not start with the given
> error (rarely means between 1 in 10 times and 1 in 200 times,
> depending on the mood).
> Here's the full output from OpenAL when it fails to start (with
> ALSOFT_LOGLEVEL set to 3):
> ...
> What causes this?  Is it a known bug?


As far as I can see, this is an old race condition in the mmdevapi 
backend, where it started up the background message-handling thread and 
tried to post a message to the background thread before its message 
queue was initialized. This was fixed with commit 
29e0af5ef052a3602f9b7935d6002c6d2ae5e8cb, included in OpenAL Soft's 
v1.16 release.

More information about the openal mailing list