mojira.dev
MCL-169

Legacy: LWJGL OpenAL: Failed to initialize audio client

Sound isn't working anymore (it did in all previous versions)

That's what the Launcher says:

Client> 2013-04-25 16:02:45 [CLIENT] [INFO] LWJGL Version: 2.9.0
Client> 
Client> Starting up SoundSystem...
Client> Initializing LWJGL OpenAL
Client>     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
Client> AL lib: (EE) DoReset: Unhandled channel config: 8 -- 0x000000ff
Client> AL lib: (EE) DoReset: Unhandled extensible channels: 8 -- 0x000000ff
Client> AL lib: (EE) DoReset: Failed to initialize audio client: 0x80070057
Client> Exception in thread "Thread-6" org.lwjgl.openal.OpenALException: Invalid Device
Client> 	at org.lwjgl.openal.Util.checkALCError(Util.java:55)
Client> 	at org.lwjgl.openal.ALC10.alcCreateContext(ALC10.java:251)
Client> 	at org.lwjgl.openal.AL.init(AL.java:168)
Client> 	at org.lwjgl.openal.AL.create(AL.java:138)
Client> 	at org.lwjgl.openal.AL.create(AL.java:102)
Client> 	at org.lwjgl.openal.AL.create(AL.java:201)
Client> 	at paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164)
Client> 	at paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576)
Client> 	at paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572)
Client> 	at paulscode.sound.CommandThread.run(CommandThread.java:121)
Client>     ERROR MESSAGE:
Client>         SoundSystem did not load after 30 seconds.
Client> 
Client> Starting up SoundSystem...
Client> Switching to No Sound
Client>     (Silent Mode)

Update:

Sound is only working when i start minecraft with the old launcher.
For example: Audio is working when i start 1.5.2 with the old launcher.
But it doesnt work when i start it with the new launcher.

Related issues

Attachments

Comments

migrated
[media]
Erik Broes

This might be a problem that only lwjgl can solve though. Or perhaps paulscode.com :/

migrated

I updated to the newest version, but the bug is still there.

alex_dlc

This just happened to me on the newest launcher with 1.6 PR

Im on Mac OSX 10.8.2 with Java version 7 update 25

migrated

This just happened to me today with the 1.6 pre-release. I have Mac OSX 10.8.4. So I guess this hasn't been fixed yet?

migrated

Have this same issue with new launcher (1.0.8) and 1.6.1 as reported in MCL-815

Win7 64b with 64b java SBLive4.1 running on kX driver

No more sound - worked fine before.

migrated

it seems to work fine on -1.0.8

migrated

I am running 1.0.8 and the error still occurs

migrated

More info about offline fix and such -> MCL-815

Anyways adding the relevant information about OpenAL32/64.dll's from lwjgl versions what I tested out.

lwjgl 2.3 Sound muted
lwjgl 2.4 Sound muted
lwjgl 2.4.1 Sound muted
lwjgl 2.4.2 Sound muted
lwjgl 2.5 Sound working
lwjgl 2.6 Sound working
lwjgl 2.7 Sound working
lwjgl 2.7.1 Sound working
lwjgl 2.8.0 Sound muted
lwjgl 2.8.1 Sound muted
lwjgl 2.8.2 Sound muted
lwjgl 2.8.3 Sound muted
lwjgl 2.8.4 Sound muted
lwjgl 2.8.5 Sound muted
lwjgl 2.9.0 Sound muted
lwjgl 2.9.1 Sound muted

migrated

...so would it be possible to make launcher NOT to forcefully update \.minecraft\libraries\org\lwjgl\lwjgl\lwjgl-platform\2.9.0\lwjgl-platform-2.9.0-natives-windows.jar if manual changes have been made

...or to give us check box to use OpenAL32.dll + OpenAL64.dll from lwjgl 2.7.1 pagage by default?

Erik Broes

You can do this indeed, but it is not really trivial to do :/

The short gist of the idea is:

In the .minecraft/libraries/org/lwjgl/lwjgl/lwjgl-platform/ folder:

  • Copy the folder 2.9.0 to 2.9.0-sound

  • Go into this folder, rename lwjgl-platform-2.9.0-natives-windows.jar to lwjgl-platform-2.9.0-sound-natives-windows.jar

  • Open up the jar and shove your files into it

In the .minecraft/version folder:

  • Copy a version (eg: 1.6.1 -> 1.6.1-sound), rename all the files that have 1.6.1 in that folder to 1.6.1-sound; edit the json file to say 1.6.1-sound where it says 1.6.1 as well

  • Now in that json find the line with: "name": "org.lwjgl.lwjgl:lwjgl-platform:2.9.0", and change it to say: "name": "org.lwjgl.lwjgl:lwjgl-platform:2.9.0-sound",

Save & Close all files, run the launcher, select the new 1.6.1-sound version in your profile and if what you say works, you should have sound again.

migrated

Well thank you 🙂

Wasn't the most convenient way, but as you said -> solved the problem.
Sound works (with 2.7.1 openAL dll's) and can go online again.

Good work and thanks for the detailed info.

migrated

Workaround: Open Minecraft, go to Options, click Resource Packs and switch resource pack or click on the Default.

With this the audio starts working...

migrated

Switching the Resource Pack doesn't help,
it has nothing to do with this bug here.

migrated

Many thanks to Grum (Erik Broes) for the work-around steps. I don't actually have the problem being discussed here but this issue is not the only case where a user might want to use a different OpenAL library. My case is that I have a superior OpenAL implementation called Rapture3D that I want to use.

I think that the best solution to this problem would be to provide the player with the option to change the OpenAL device in the game's options menu. The way I see it, it would look something like this...

There would be a button called "OpenAL audio device..." in the options menu. When you click it, it would open a new screen that looks similar to the language selection screen.

The first item in the list would be the default and it would be called something like "Use the OpenAL device provided by Minecraft (recommended)". This option would be for using the OpenAL library contained within the lwjgl-platform-2.9.0-natives-windows.jar file.

The rest of the items in the list would be the names of other OpenAL devices that are available on the user's system (if any). On Windows, these libraries can be found in System32 and SysWOW64. As far as I know, the OpenAL API provides the ability for a programmer to get a list of devices available on the system, so hopefully this wouldn't be too hard. Also many other games that use OpenAL provide this sort of selection box in their options menus.

http://connect.creativelabs.com/openal/OpenAL%20Wiki/Enumeration%20with%20OpenAL%20on%20Windows.aspx

----------------------

Alternative solutions would be:

  1. Create the same solution as described above but without any user interface. Instead, the configuration would have to be done manually in the options.txt file. There would be a new line in there called something like "openALDeviceName" with default value of "Generic Software" (or perhaps "0" or just "" to represent the default device stored in the LWJGL jar file). Changing the value to something else like "Rapture3D" would cause the game to look for a system OpenAL device by that name (ie: one located in System32 or SysWOW64).

  2. Program the launcher to look for the OpenAL files in another directory before looking in the LWJGL jar file. If they exist, use them instead of extracting the ones in the jar.

  3. Add a check-box option to the launcher: "Don't do consistency check of LWJGL." or something like that.

  4. Create functionality for resource packs to include mods to libraries.

migrated

this bug will effect linux too.
for now, i did not find a way to solve it.
this problem is only occur in minecraft 1.6.X

migrated

I tried Erik Broe's workaround, but now the launcher refuses to start Minecraft with that profile, and I get "Couldn't download" errors in the Development Console. The exact messages that were in the Development Console are in the link below.

http://pastebin.com/g1xpcRsN

Help would be much appreciated, 1.7 is being developed and I'm still having issues with the 1.6 launcher. 😞

migrated

I have a problem with the last snapshot (13w42a), i hope you can help me. My log is attached below

migrated

I found a very suitable workaround. When changing resource packs, the audio system is re-initialized. This doesn't work right away but only after a "command thread did not die" and the system only realizes this after a while.

See the bottom of this log:

tarting up SoundSystem...
Initializing LWJGL OpenAL
    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
Exception in thread "Thread-24" java.lang.IllegalStateException: Only one OpenAL context may be instantiated at any one time.
    at org.lwjgl.openal.AL.create(AL.java:113)
    at org.lwjgl.openal.AL.create(AL.java:102)
    at org.lwjgl.openal.AL.create(AL.java:201)
    at paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164)
    at paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576)
    at paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572)
    at paulscode.sound.CommandThread.run(CommandThread.java:121)
2013-11-06 11:18:52 [CLIENT] [INFO] Reloading ResourceManager: Default, Find Strongholds

Starting up SoundSystem...
2013-11-06 11:18:53 [CLIENT] [INFO] Reloading ResourceManager: Default, ZoltarrCraft.zip
Initializing LWJGL OpenAL
    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
Exception in thread "Thread-27" java.lang.IllegalStateException: Only one OpenAL context may be instantiated at any one time.
    at org.lwjgl.openal.AL.create(AL.java:113)
    at org.lwjgl.openal.AL.create(AL.java:102)
    at org.lwjgl.openal.AL.create(AL.java:201)
    at paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164)
    at paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576)
    at paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572)
    at paulscode.sound.CommandThread.run(CommandThread.java:121)

Starting up SoundSystem...
Initializing LWJGL OpenAL
    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
Exception in thread "Thread-30" java.lang.IllegalStateException: Only one OpenAL context may be instantiated at any one time.
    at org.lwjgl.openal.AL.create(AL.java:113)
    at org.lwjgl.openal.AL.create(AL.java:102)
    at org.lwjgl.openal.AL.create(AL.java:201)
    at paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164)
    at paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576)
    at paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572)
    at paulscode.sound.CommandThread.run(CommandThread.java:121)
2013-11-06 11:18:56 [SERVER] [INFO] Saving and pausing game...
2013-11-06 11:18:56 [SERVER] [INFO] Saving chunks for level 'redstone test'/Overworld
2013-11-06 11:18:56 [SERVER] [INFO] Saving chunks for level 'redstone test'/Nether
2013-11-06 11:18:56 [SERVER] [INFO] Saving chunks for level 'redstone test'/The End
2013-11-06 11:19:02 [CLIENT] [INFO] Reloading ResourceManager: Default, Transparent

Starting up SoundSystem...
Initializing LWJGL OpenAL
    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
Exception in thread "Thread-35" java.lang.IllegalStateException: Only one OpenAL context may be instantiated at any one time.
    at org.lwjgl.openal.AL.create(AL.java:113)
    at org.lwjgl.openal.AL.create(AL.java:102)
    at org.lwjgl.openal.AL.create(AL.java:201)
    at paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164)
    at paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576)
    at paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572)
    at paulscode.sound.CommandThread.run(CommandThread.java:121)
2013-11-06 11:19:07 [CLIENT] [INFO] Reloading ResourceManager: Default, ZoltarrCraft.zip

Starting up SoundSystem...
Initializing LWJGL OpenAL
    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
Exception in thread "Thread-39" java.lang.IllegalStateException: Only one OpenAL context may be instantiated at any one time.
    at org.lwjgl.openal.AL.create(AL.java:113)
    at org.lwjgl.openal.AL.create(AL.java:102)
    at org.lwjgl.openal.AL.create(AL.java:201)
    at paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164)
    at paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576)
    at paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572)
    at paulscode.sound.CommandThread.run(CommandThread.java:121)
2013-11-06 11:19:09 [CLIENT] [INFO] Reloading ResourceManager: Default, Transparent.zip

Starting up SoundSystem...
Initializing LWJGL OpenAL
    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
Exception in thread "Thread-42" java.lang.IllegalStateException: Only one OpenAL context may be instantiated at any one time.
    at org.lwjgl.openal.AL.create(AL.java:113)
    at org.lwjgl.openal.AL.create(AL.java:102)
    at org.lwjgl.openal.AL.create(AL.java:201)
    at paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164)
    at paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576)
    at paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572)
    at paulscode.sound.CommandThread.run(CommandThread.java:121)
2013-11-06 11:19:10 [CLIENT] [INFO] Reloading ResourceManager: Default, ZoltarrCraft.zip

Starting up SoundSystem...
Initializing LWJGL OpenAL
    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
Exception in thread "Thread-45" java.lang.IllegalStateException: Only one OpenAL context may be instantiated at any one time.
    at org.lwjgl.openal.AL.create(AL.java:113)
    at org.lwjgl.openal.AL.create(AL.java:102)
    at org.lwjgl.openal.AL.create(AL.java:201)
    at paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164)
    at paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576)
    at paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572)
    at paulscode.sound.CommandThread.run(CommandThread.java:121)
2013-11-06 11:19:17 [CLIENT] [INFO] Reloading ResourceManager: Default, Transparent.zip

Starting up SoundSystem...
Initializing LWJGL OpenAL
    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
Exception in thread "Thread-50" java.lang.IllegalStateException: Only one OpenAL context may be instantiated at any one time.
    at org.lwjgl.openal.AL.create(AL.java:113)
    at org.lwjgl.openal.AL.create(AL.java:102)
    at org.lwjgl.openal.AL.create(AL.java:201)
    at paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164)
    at paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576)
    at paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572)
    at paulscode.sound.CommandThread.run(CommandThread.java:121)
    ERROR MESSAGE:
        SoundSystem did not load after 30 seconds.

Starting up SoundSystem...
2013-11-06 11:19:19 [CLIENT] [INFO] Reloading ResourceManager: Default, ZoltarrCraft.zip
Switching to No Sound
    (Silent Mode)









SoundSystem shutting down...


Error in class 'SoundSystem'
    Command thread did not die!
Ignoring errors... continuing clean-up.
    Author: Paul Lamb, www.paulscode.com


Starting up SoundSystem...
Initializing LWJGL OpenAL
    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
OpenAL initialized.
migrated

Well, the sneaky music update didn't fix this issue for me. Nor did repeatedly selecting resource packs or language packs. Though I'll try it again in case I've been doing it wrong.

migrated

I'm having the same issue with any version using the new 1.3.8 launcher. I've tried everything from changing resource packs, updating LWJGL, replacing OpenAl, deleting everything, and using the F3+S to reinitialize the sound engine. Below is my error:

17:42:00 INFO: Client> Starting up SoundSystem...
17:42:00 INFO: Client> Initializing LWJGL OpenAL
17:42:00 INFO: Client> (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
17:42:00 INFO: Client> AL lib: (EE) DoReset: Unhandled channel config: 4 – 0x00000107
17:42:00 INFO: Client> AL lib: (EE) DoReset: Unhandled extensible channels: 4 – 0x00000107
17:42:00 INFO: Client> AL lib: (EE) DoReset: Failed to initialize audio client: 0x80070057
17:42:00 INFO: Client> Exception in thread "Thread-5" org.lwjgl.openal.OpenALException: Invalid Device
17:42:00 INFO: Client> at org.lwjgl.openal.Util.checkALCError(Util.java:55)
17:42:00 INFO: Client> at org.lwjgl.openal.ALC10.alcCreateContext(ALC10.java:251)
17:42:00 INFO: Client> at org.lwjgl.openal.AL.init(AL.java:168)
17:42:00 INFO: Client> at org.lwjgl.openal.AL.create(AL.java:138)
17:42:00 INFO: Client> at org.lwjgl.openal.AL.create(AL.java:102)
17:42:00 INFO: Client> at org.lwjgl.openal.AL.create(AL.java:201)
17:42:00 INFO: Client> at paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164)
17:42:00 INFO: Client> at paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576)
17:42:00 INFO: Client> at paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572)
17:42:00 INFO: Client> at paulscode.sound.CommandThread.run(CommandThread.java:121)
migrated

Is this still a concern in the current Minecraft version 1.7.9 / Launcher version 1.3.11 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

migrated

Yes, unfortunately it still appears to have no sound in version 1.7.9.

migrated

Is this still a concern in the current Minecraft version 14w21b / Launcher version 1.4.4 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

migrated

I still have the problem in version 14w28b. I'm not sure how to update the affected versions, unless that's something the original Reporter has to do.

migrated

This issue is no longer present after I bought a new computer and reinstalled Minecraft. Below is a DxDiag of my computer:

http://pastebin.com/z9ixqvpD

migrated

Guys, I found a simple fix for this that doesn't involve overwriting DLLs or stuff like that. The problem is that the kX driver sets up eight audio channels which makes OpenAL think that the channel configuration should be 7.1 (7+subwoofer). However, the EMU10K1/2 chips only support 5.1 audio, which causes OpenAL to freak out.

THE EASY FIX

Set your default audio playback device in windows to "Wave Out 2/3", NOT "Master Mixer". This will cause OpenAL to use the stereo channel configuration and all is well.

Disclaimer

I did not try this with Minecraft. I'm developing a game with LWJGL 2.9.0 and this fixed audio for me. It should work for all LWJGL games, though. Also, this will set your audio output to stereo, so change it back when you want 5.1 sound.

migrated

That's the workaround i already use.
But this is a workaround and not a fix, because i always have to switch the playback device and it's only stereo.
Before LWJGL got updated i had surround sound in minecraft (With the same hardware and drivers).
So it would be nice if the devs would forward this to LWJGL.

(This also happens with other games using LWJGL, so it would be nice if that could be fixed)

But there's one thing the minecraft developers could do for now:

Add an option to the launcher to select the audio device minecraft will use.

migrated

Just loaded up 1.8.2, this issue is random for me, sometimes the game load without sound, but a simple reload fixes it.

migrated

I found a fix that works for me. In the sound panel right click on your device and click "Configure Speakers". I had to change my device from "Surround" to "5.1 Surround".

migrated

I have had a similar problem, and I am unsure if it is the same problem. It was on 2.0.847, and the log can be found here: log. I am on Windows 10.

galaxy_2alex

The sound system in the game has recently been rewritten, does anyone still have this issue?

migrated

(Unassigned)

Community Consensus

OpenAL, sound

Retrieved