Initialization of OpenAL fails sometimes
If you experience this bug, you can press F3+T while ingame to reload the sound engine, which should fix it temporarily.
If the bug persists for an extended period of time, you should instead contact 💬 Community Support as it is likely a driver issue or another configuration issue on your end.
Occasionally when resources are loaded, OpenAL fails to start and there is no sound. Generally it works fine, but very rarely it fails.
In that case, it switches to no-sound version.
This is a game log from when it failed to start:
[09:46:32] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:32] [Thread-6/INFO]: Initializing LWJGL OpenAL [09:46:32] [Thread-6/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 [09:46:32] [Thread-6/ERROR]: Error in class 'LibraryLWJGLOpenAL' [09:46:32] [Thread-6/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [09:46:32] [Thread-6/WARN]: ERROR MESSAGE: [09:46:32] [Thread-6/INFO]: Could not locate OpenAL library. [09:46:32] [Thread-6/WARN]: STACK TRACE: [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [09:46:32] [Thread-6/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [09:46:32] [Thread-6/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [09:46:33] [Sound Library Loader/WARN]: ERROR MESSAGE: [09:46:33] [Sound Library Loader/INFO]: Could not locate OpenAL library. [09:46:33] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:33] [Thread-8/INFO]: Switching to No Sound [09:46:33] [Thread-8/INFO]: (Silent Mode)
A second reproduction with a debug log4j config, and with -Dorg.lwjgl.util.Debug=true in the launcher args, and with the system environment variable ALSOFT_LOGLEVEL set to 3, gives this:
[21:00:54.655] [Client thread/INFO]: Setting user: pokechu22 [21:00:54.662] [Client thread/DEBUG]: (Session ID is token:<censored>) [21:01:01.502] [Client thread/INFO]: Loaded 482 advancements [21:01:02.371] [Client thread/INFO]: LWJGL Version: 2.9.4 [21:01:02.517] [Client thread/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Initial mode: 1366 x 768 x 32 @60Hz [21:01:02.826] [Client thread/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] MemoryUtil Accessor: AccessorUnsafe [21:01:03.520] [Client thread/INFO]: Reloading ResourceManager: Default, SoundDemo [21:01:07.891] [Client thread/DEBUG]: Replaced sound event location minecraft:music.creative [21:01:07.894] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.creative' to registry [21:01:07.910] [Client thread/DEBUG]: Replaced sound event location minecraft:music.credits [21:01:07.911] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.credits' to registry [21:01:07.914] [Client thread/DEBUG]: Replaced sound event location minecraft:music.dragon [21:01:07.914] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.dragon' to registry [21:01:07.917] [Client thread/DEBUG]: Replaced sound event location minecraft:music.end [21:01:07.917] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.end' to registry [21:01:07.919] [Client thread/DEBUG]: Replaced sound event location minecraft:music.game [21:01:07.920] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.game' to registry [21:01:07.937] [Client thread/DEBUG]: Replaced sound event location minecraft:music.menu [21:01:07.937] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.menu' to registry [21:01:07.942] [Client thread/DEBUG]: Replaced sound event location minecraft:music.nether [21:01:07.943] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.nether' to registry [21:01:07.955] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.hurt_drown [21:01:07.958] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.hurt_on_fire [21:01:07.988] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:01:08.221] [Thread-3/INFO]: Initializing LWJGL OpenAL [21:01:08.225] [Thread-3/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [21:01:08.236] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] getPathFromClassLoader: searching for: OpenAL64 AL lib: (II) alc_initconfig: Supported backends: mmdevapi, dsound, winmm, null, wave AL lib: (II) GetConfigValue: Key general:disable-cpu-exts not found AL lib: (II) FillCPUCaps: Got caps: SSE AL lib: (II) GetConfigValue: Key general:rt-prio not found AL lib: (II) GetConfigValue: Key general:resampler not found AL lib: (II) GetConfigValue: Key general:trap-al-error not found AL lib: (II) GetConfigValue: Key general:trap-alc-error not found AL lib: (II) GetConfigValue: Key reverb:boost not found AL lib: (II) GetConfigValue: Key reverb:emulate-eax not found AL lib: (II) GetConfigValue: Key general:drivers not found [21:01:08.239] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String) AL lib: (II) MMDevApiMsgProc: Starting message thread AL lib: (II) alc_initconfig: Initialized backend "mmdevapi" AL lib: (II) alc_initconfig: Added "mmdevapi" for playback AL lib: (II) alc_initconfig: Initialized backend "dsound" AL lib: (II) alc_initconfig: Added "dsound" for capture AL lib: (II) GetConfigValue: Key general:excludefx not found AL lib: (II) GetConfigValue: Key general:default-reverb not found AL lib: (II) GetConfigValue: Key general:channels not found AL lib: (II) GetConfigValue: Key general:sample-type not found AL lib: (II) GetConfigValue: Key general:format not found AL lib: (II) GetConfigValue: Key general:frequency not found AL lib: (II) GetConfigValue: Key general:periods not found AL lib: (II) GetConfigValue: Key general:period_size not found AL lib: (II) GetConfigValue: Key general:sources not found AL lib: (II) GetConfigValue: Key general:slots not found AL lib: (II) GetConfigValue: Key general:sends not found AL lib: (II) GetConfigValue: Key general:cf_level not found AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (II) GetConfigValue: Key general:channels not found AL lib: (II) GetConfigValue: Key general:sample-type not found AL lib: (II) GetConfigValue: Key general:format not found AL lib: (II) GetConfigValue: Key general:frequency not found AL lib: (II) GetConfigValue: Key general:periods not found AL lib: (II) GetConfigValue: Key general:period_size not found AL lib: (II) GetConfigValue: Key general:sources not found AL lib: (II) GetConfigValue: Key general:slots not found AL lib: (II) GetConfigValue: Key general:sends not found AL lib: (II) GetConfigValue: Key general:cf_level not found AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (II) MMDevApiMsgProc: Starting message loop [21:01:08.242] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String) [21:01:08.242] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String) [21:01:08.250] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] getPathFromClassLoader: searching for: lwjgl [21:01:08.250] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String) [21:01:08.252] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String) [21:01:08.252] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String) [21:01:08.276] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found 3 OpenAL paths [21:01:08.277] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll' [21:01:08.282] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found OpenAL at 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll' [21:01:08.348] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll: Could not open ALC device [21:01:08.349] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll' [21:01:08.350] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll: Could not load OpenAL library (126) [21:01:08.351] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'OpenAL64.dll' [21:01:08.357] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found OpenAL at 'OpenAL64.dll' [21:01:08.360] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load OpenAL64.dll: Could not open ALC device [21:01:08.362] [Thread-3/ERROR]: Error in class 'LibraryLWJGLOpenAL' [21:01:08.363] [Thread-3/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [21:01:08.363] [Thread-3/WARN]: ERROR MESSAGE: [21:01:08.363] [Thread-3/INFO]: Could not locate OpenAL library. [21:01:08.363] [Thread-3/WARN]: STACK TRACE: [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [21:01:08.364] [Thread-3/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [21:01:08.598] [Sound Library Loader/WARN]: ERROR MESSAGE: [21:01:08.599] [Sound Library Loader/INFO]: Could not locate OpenAL library. [21:01:08.599] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:01:08.936] [Thread-5/INFO]: Switching to No Sound [21:01:08.938] [Thread-5/INFO]: (Silent Mode) [21:01:09.212] [Sound Library Loader/INFO]: Sound engine started [21:01:28.017] [Client thread/INFO]: Created: 1024x512 textures-atlas [21:01:34.657] [Client thread/INFO]: [STDOUT]@.(NarratorWindows.java:20): Narrator library for x64 successfully loaded [21:01:39.821] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel d8c5b63b-c0f9-4858-8689-ab8f92918a44 [21:01:40.861] [Client thread/DEBUG]: Removed channel d8c5b63b-c0f9-4858-8689-ab8f92918a44 because it's not playing anymore [21:01:40.894] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel 558503eb-5f3b-4f9e-a925-f13464f9493a [21:01:41.960] [Client thread/DEBUG]: Removed channel 558503eb-5f3b-4f9e-a925-f13464f9493a because it's not playing anymore [21:01:41.993] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 730fee9b-fcfd-4261-a427-ce33b23d8dcb [21:01:43.028] [Client thread/DEBUG]: Removed channel 730fee9b-fcfd-4261-a427-ce33b23d8dcb because it's not playing anymore [21:02:04.899] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 89e96207-569a-4b2e-9760-a3cceacebd50 [21:02:05.865] [Client thread/DEBUG]: Removed channel 89e96207-569a-4b2e-9760-a3cceacebd50 because it's not playing anymore [21:02:23.418] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu2 for event minecraft:music.menu as channel a78416a6-5d39-4bef-ac14-5092f42eb20d [21:02:24.351] [Client thread/DEBUG]: Removed channel a78416a6-5d39-4bef-ac14-5092f42eb20d because it's not playing anymore [21:02:31.051] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu3 for event minecraft:music.menu as channel 2905b576-5eb4-4059-a7e8-83dd15f314c9 [21:02:32.017] [Client thread/DEBUG]: Removed channel 2905b576-5eb4-4059-a7e8-83dd15f314c9 because it's not playing anymore [21:02:44.351] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu3 for event minecraft:music.menu as channel ae31f3f9-fa8b-43a8-8feb-635fc79b3ba1 [21:02:45.317] [Client thread/DEBUG]: Removed channel ae31f3f9-fa8b-43a8-8feb-635fc79b3ba1 because it's not playing anymore [21:03:00.152] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 271cec83-88d6-4d8e-a7ac-671891e4a219 [21:03:01.122] [Client thread/DEBUG]: Removed channel 271cec83-88d6-4d8e-a7ac-671891e4a219 because it's not playing anymore [21:03:20.110] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel b37436b6-ea17-4a68-a2ac-8f704d664e73 [21:03:20.141] [Client thread/INFO]: Stopping! [21:03:20.147] [Client thread/INFO]: SoundSystem shutting down... [21:03:20.348] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com Could not locate symbol glEnableClientStateiEXT Could not locate symbol glDisableClientStateiEXT Could not locate symbol glGetFloati_vEXT Could not locate symbol glGetDoublei_vEXT Could not locate symbol glGetPointeri_vEXT
Note that the 3 failures after each instance of "getPathFromClassLoader: searching for:" happen even when audio works successfully - it's likely a platform thing. Additionally, "Could not locate symbol" at the bottom also occurs each time. Finally, note that C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll does not exist and never should exist (as it is only supposed to be located in the temporary natives folder) - the "Could not load OpenAL library" message from it probably is a red herring; the earlier "Could not open ALC device" and "MMDevApiOpenPlayback: Device init failed: 0x80004005" are probably more useful. Also, note that 0x80004005 is a meaningless error code; it just represents E_FAIL which means "Unspecified failure".
After asking the OpenAL mailing list for additional information, it turns out that this is a fairly old OpenAL bug, which was fixed in OpenAL Soft version 1.16. Minecraft is using version 1.15.1 (as LWJGL 2 uses it). This can be fixed by updating OpenAL, either by migrating to LWJGL 3, or just directly updating the OpenAL dll using the one from LWJGL 3 on LWJGL 2.
I would suggest having Minecraft detect when this happens, and try to restart OpenAL. If it fails multiple times, then it should force a no sound mode. At minimum, a message should be displayed on the title screen in some way, advising the user to use F3+T to reload the sound engine.
MC does attempt to detect this happening in SoundManager, but the sound is loaded in a separate thread from which the catch statement happens. Thread.setUncaughtExceptionHandler should be used instead. Even then, that handler only logs an error and mutes audio; for the general user this behavior isn't entirely obvious ("Why did my game just mute itself‽") although (IIRC) doing that does reload the sound engine when it's unmuted.
MC also has a custom SoundSystemLogger (also declared in SoundManager); that could be used to identify such errors as well.
Linked Issues
is duplicated by48
relates to8
- Fixed
[Mod] Pokechu22- 25
- 23
- Confirmed
- audio lwjgl openal
1.4.6 - 1.12.2
1.4.6 1.4.7 13w06a 13w07a 1.8.8 15w47a 1.8.9 16w03a 16w04a 1.9-pre4 1.9 1.9.1 1.9.2 1.9.3-pre3 1.9.4 16w20a 16w21b 1.10-pre1 1.10-pre2 1.10 1.10.2 16w32a 16w32b 16w35a 16w36a 16w39a 16w39c 16w40a 16w41a 16w42a 16w43a 16w44a 1.11-pre1 1.11 16w50a 1.11.2 17w06a 17w18b 1.12-pre1 1.12-pre2 1.12-pre5 1.12 1.12.1-pre1 1.12.1 1.12.2- 17w43a
Created Issue:
OpenAL isue
Environment
Experienced on windows 7&8, java 6&7, seems to be non-specific.
Linked Issues
testing discovered1
Ocasionaly when Minecraft is starting,
Ocasionaly when Minecraft is starting,
Ocasionaly when Minecraft is launched, OpenAL fails to start and there is no sound. Generally it works fine, but with a less than 10% chance, it fails.
In that case, it switches to no-sound version.
This is a game log from when it failed to start:
{{
asdf
27 achievements
210 recipes
Setting user: pokechu22, 8172470959570797165
LWJGL Version: 2.4.2Starting up SoundSystem...
Initializing LWJGL OpenAL
(The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.or
g)
Error in class 'LibraryLWJGLOpenAL'
Unable to initialize OpenAL. Probable cause: OpenAL not supported.
ERROR MESSAGE:
Could not locate OpenAL library.
STACK TRACE:
org.lwjgl.openal.AL.create(AL.java:153)
org.lwjgl.openal.AL.create(AL.java:104)
org.lwjgl.openal.AL.create(AL.java:191)
paulscode.sound.libraries.LibraryLWJGLOpenAL.init(SourceFile:164)
paulscode.sound.SoundSystem.CommandNewLibrary(SourceFile:1576)
paulscode.sound.SoundSystem.CommandQueue(SourceFile:2572)
paulscode.sound.CommandThread.run(SourceFile:121)
ERROR MESSAGE:
Could not locate OpenAL library.Starting up SoundSystem...
Switching to No Sound
(Silent Mode)}}
Ocasionaly when Minecraft is launched, OpenAL fails to start and there is no sound. Generally it works fine, but with a less than 10% chance, it fails.
In that case, it switches to no-sound version.
This is a game log from when it failed to start:
{{
asdf
27 achievements
210 recipes
Setting user: pokechu22, 8172470959570797165
LWJGL Version: 2.4.2Starting up SoundSystem...
Initializing LWJGL OpenAL
(The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.or
g)
Error in class 'LibraryLWJGLOpenAL'
Unable to initialize OpenAL. Probable cause: OpenAL not supported.
ERROR MESSAGE:
Could not locate OpenAL library.
STACK TRACE:
org.lwjgl.openal.AL.create(AL.java:153)
org.lwjgl.openal.AL.create(AL.java:104)
org.lwjgl.openal.AL.create(AL.java:191)
paulscode.sound.libraries.LibraryLWJGLOpenAL.init(SourceFile:164)
paulscode.sound.SoundSystem.CommandNewLibrary(SourceFile:1576)
paulscode.sound.SoundSystem.CommandQueue(SourceFile:2572)
paulscode.sound.CommandThread.run(SourceFile:121)
ERROR MESSAGE:
Could not locate OpenAL library.Starting up SoundSystem...
Switching to No Sound
(Silent Mode)}}
Ocasionaly when Minecraft is launched, OpenAL fails to start and there is no sound. Generally it works fine, but with a less than 10% chance, it fails.
In that case, it switches to no-sound version.
This is a game log from when it failed to start:asdf 27 achievements 210 recipes Setting user: pokechu22, 8172470959570797165 LWJGL Version: 2.4.2 Starting up SoundSystem... Initializing LWJGL OpenAL (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.or g) Error in class 'LibraryLWJGLOpenAL' Unable to initialize OpenAL. Probable cause: OpenAL not supported. ERROR MESSAGE: Could not locate OpenAL library. STACK TRACE: org.lwjgl.openal.AL.create(AL.java:153) org.lwjgl.openal.AL.create(AL.java:104) org.lwjgl.openal.AL.create(AL.java:191) paulscode.sound.libraries.LibraryLWJGLOpenAL.init(SourceFile:164) paulscode.sound.SoundSystem.CommandNewLibrary(SourceFile:1576) paulscode.sound.SoundSystem.CommandQueue(SourceFile:2572) paulscode.sound.CommandThread.run(SourceFile:121) ERROR MESSAGE: Could not locate OpenAL library. Starting up SoundSystem... Switching to No Sound (Silent Mode)I would suggest having Minecraft detect when this happens, and try to restart OpenAL. If it fails multiple times, then it should force a no sound mode.
testing discovered
testing discovered
OpenAL isueInitialization of OpenAL fails sometimes
is duplicated by
is duplicated by
relates to
Ocasionaly when Minecraft is launched, OpenAL fails to start and there is no sound. Generally it works fine, but
with a less than 10% chance,it fails.
In that case, it switches to no-sound version.
This is a game log from when it failed to start:asdf 27 achievements 210 recipes Setting user: pokechu22, 8172470959570797165 LWJGL Version: 2.4.2 Starting up SoundSystem... Initializing LWJGL OpenAL (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.or g) Error in class 'LibraryLWJGLOpenAL' Unable to initialize OpenAL. Probable cause: OpenAL not supported. ERROR MESSAGE: Could not locate OpenAL library. STACK TRACE: org.lwjgl.openal.AL.create(AL.java:153) org.lwjgl.openal.AL.create(AL.java:104) org.lwjgl.openal.AL.create(AL.java:191) paulscode.sound.libraries.LibraryLWJGLOpenAL.init(SourceFile:164) paulscode.sound.SoundSystem.CommandNewLibrary(SourceFile:1576) paulscode.sound.SoundSystem.CommandQueue(SourceFile:2572) paulscode.sound.CommandThread.run(SourceFile:121) ERROR MESSAGE: Could not locate OpenAL library. Starting up SoundSystem... Switching to No Sound (Silent Mode)I would suggest having Minecraft detect when this happens, and try to restart OpenAL. If it fails multiple times, then it should force a no sound mode.
Ocasionaly when Minecraft is launched, OpenAL fails to start and there is no sound. Generally it works fine, but very rarely it fails.
In that case, it switches to no-sound version.
This is a game log from when it failed to start:[09:46:32] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:32] [Thread-6/INFO]: Initializing LWJGL OpenAL [09:46:32] [Thread-6/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 [09:46:32] [Thread-6/ERROR]: Error in class 'LibraryLWJGLOpenAL' [09:46:32] [Thread-6/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [09:46:32] [Thread-6/WARN]: ERROR MESSAGE: [09:46:32] [Thread-6/INFO]: Could not locate OpenAL library. [09:46:32] [Thread-6/WARN]: STACK TRACE: [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [09:46:32] [Thread-6/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [09:46:32] [Thread-6/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [09:46:33] [Sound Library Loader/WARN]: ERROR MESSAGE: [09:46:33] [Sound Library Loader/INFO]: Could not locate OpenAL library. [09:46:33] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:33] [Thread-8/INFO]: Switching to No Sound [09:46:33] [Thread-8/INFO]: (Silent Mode)I would suggest having Minecraft detect when this happens, and try to restart OpenAL. If it fails multiple times, then it should force a no sound mode.
is duplicated by
relates to
is duplicated by
relates to
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
relates to
is duplicated by
Experienced on
windows 7, 8, and 10; Java 6, 7, and 8; seems to be non-specific.Experienced on Windows Vista, 7, 8, and 10; Java 6, 7, and 8; seems to be non-specific.
is duplicated by
is duplicated by
relates to
is duplicated by
is duplicated by
Ocasionaly when
Minecraft is launched, OpenAL fails to start and there is no sound. Generally it works fine, but very rarely it fails.
In that case, it switches to no-sound version.
This is a game log from when it failed to start:[09:46:32] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:32] [Thread-6/INFO]: Initializing LWJGL OpenAL [09:46:32] [Thread-6/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 [09:46:32] [Thread-6/ERROR]: Error in class 'LibraryLWJGLOpenAL' [09:46:32] [Thread-6/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [09:46:32] [Thread-6/WARN]: ERROR MESSAGE: [09:46:32] [Thread-6/INFO]: Could not locate OpenAL library. [09:46:32] [Thread-6/WARN]: STACK TRACE: [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [09:46:32] [Thread-6/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [09:46:32] [Thread-6/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [09:46:33] [Sound Library Loader/WARN]: ERROR MESSAGE: [09:46:33] [Sound Library Loader/INFO]: Could not locate OpenAL library. [09:46:33] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:33] [Thread-8/INFO]: Switching to No Sound [09:46:33] [Thread-8/INFO]: (Silent Mode)I would suggest having Minecraft detect when this happens, and try to restart OpenAL. If it fails multiple times, then it should force a no sound mode.
Ocasionaly when resources are loaded, OpenAL fails to start and there is no sound. Generally it works fine, but very rarely it fails.
In that case, it switches to no-sound version.
This is a game log from when it failed to start:[09:46:32] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:32] [Thread-6/INFO]: Initializing LWJGL OpenAL [09:46:32] [Thread-6/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 [09:46:32] [Thread-6/ERROR]: Error in class 'LibraryLWJGLOpenAL' [09:46:32] [Thread-6/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [09:46:32] [Thread-6/WARN]: ERROR MESSAGE: [09:46:32] [Thread-6/INFO]: Could not locate OpenAL library. [09:46:32] [Thread-6/WARN]: STACK TRACE: [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [09:46:32] [Thread-6/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [09:46:32] [Thread-6/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [09:46:33] [Sound Library Loader/WARN]: ERROR MESSAGE: [09:46:33] [Sound Library Loader/INFO]: Could not locate OpenAL library. [09:46:33] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:33] [Thread-8/INFO]: Switching to No Sound [09:46:33] [Thread-8/INFO]: (Silent Mode)I would suggest having Minecraft detect when this happens, and try to restart OpenAL. If it fails multiple times, then it should force a no sound mode.
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
Ocasionaly when resources are loaded, OpenAL fails to start and there is no sound. Generally it works fine, but very rarely it fails.
In that case, it switches to no-sound version.
This is a game log from when it failed to start:[09:46:32] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:32] [Thread-6/INFO]: Initializing LWJGL OpenAL [09:46:32] [Thread-6/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 [09:46:32] [Thread-6/ERROR]: Error in class 'LibraryLWJGLOpenAL' [09:46:32] [Thread-6/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [09:46:32] [Thread-6/WARN]: ERROR MESSAGE: [09:46:32] [Thread-6/INFO]: Could not locate OpenAL library. [09:46:32] [Thread-6/WARN]: STACK TRACE: [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [09:46:32] [Thread-6/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [09:46:32] [Thread-6/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [09:46:33] [Sound Library Loader/WARN]: ERROR MESSAGE: [09:46:33] [Sound Library Loader/INFO]: Could not locate OpenAL library. [09:46:33] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:33] [Thread-8/INFO]: Switching to No Sound [09:46:33] [Thread-8/INFO]: (Silent Mode)I would suggest having Minecraft detect when this happens, and try to restart OpenAL. If it fails multiple times, then it should force a no sound mode.
Occasionally when resources are loaded, OpenAL fails to start and there is no sound. Generally it works fine, but very rarely it fails.
In that case, it switches to no-sound version.
This is a game log from when it failed to start:[09:46:32] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:32] [Thread-6/INFO]: Initializing LWJGL OpenAL [09:46:32] [Thread-6/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 [09:46:32] [Thread-6/ERROR]: Error in class 'LibraryLWJGLOpenAL' [09:46:32] [Thread-6/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [09:46:32] [Thread-6/WARN]: ERROR MESSAGE: [09:46:32] [Thread-6/INFO]: Could not locate OpenAL library. [09:46:32] [Thread-6/WARN]: STACK TRACE: [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [09:46:32] [Thread-6/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [09:46:32] [Thread-6/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [09:46:33] [Sound Library Loader/WARN]: ERROR MESSAGE: [09:46:33] [Sound Library Loader/INFO]: Could not locate OpenAL library. [09:46:33] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:33] [Thread-8/INFO]: Switching to No Sound [09:46:33] [Thread-8/INFO]: (Silent Mode)A second reproduction with a debug log4j config, and with -Dorg.lwjgl.util.Debug=true in the launcher args, gives this:
[21:00:54.655] [Client thread/INFO]: Setting user: pokechu22 [21:00:54.662] [Client thread/DEBUG]: (Session ID is token:<censored>) [21:01:01.502] [Client thread/INFO]: Loaded 482 advancements [21:01:02.371] [Client thread/INFO]: LWJGL Version: 2.9.4 [21:01:02.517] [Client thread/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Initial mode: 1366 x 768 x 32 @60Hz [21:01:02.826] [Client thread/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] MemoryUtil Accessor: AccessorUnsafe [21:01:03.520] [Client thread/INFO]: Reloading ResourceManager: Default, SoundDemo [21:01:07.891] [Client thread/DEBUG]: Replaced sound event location minecraft:music.creative [21:01:07.894] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.creative' to registry [21:01:07.910] [Client thread/DEBUG]: Replaced sound event location minecraft:music.credits [21:01:07.911] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.credits' to registry [21:01:07.914] [Client thread/DEBUG]: Replaced sound event location minecraft:music.dragon [21:01:07.914] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.dragon' to registry [21:01:07.917] [Client thread/DEBUG]: Replaced sound event location minecraft:music.end [21:01:07.917] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.end' to registry [21:01:07.919] [Client thread/DEBUG]: Replaced sound event location minecraft:music.game [21:01:07.920] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.game' to registry [21:01:07.937] [Client thread/DEBUG]: Replaced sound event location minecraft:music.menu [21:01:07.937] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.menu' to registry [21:01:07.942] [Client thread/DEBUG]: Replaced sound event location minecraft:music.nether [21:01:07.943] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.nether' to registry [21:01:07.955] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.hurt_drown [21:01:07.958] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.hurt_on_fire [21:01:07.988] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:01:08.221] [Thread-3/INFO]: Initializing LWJGL OpenAL [21:01:08.225] [Thread-3/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [21:01:08.236] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] getPathFromClassLoader: searching for: OpenAL64 [21:01:08.239] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String) [21:01:08.242] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String) [21:01:08.242] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String) [21:01:08.250] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] getPathFromClassLoader: searching for: lwjgl [21:01:08.250] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String) [21:01:08.252] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String) [21:01:08.252] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String) [21:01:08.276] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found 3 OpenAL paths [21:01:08.277] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll' [21:01:08.282] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found OpenAL at 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll' [21:01:08.348] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll: Could not open ALC device [21:01:08.349] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll' [21:01:08.350] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll: Could not load OpenAL library (126) [21:01:08.351] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'OpenAL64.dll' [21:01:08.357] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found OpenAL at 'OpenAL64.dll' [21:01:08.360] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load OpenAL64.dll: Could not open ALC device [21:01:08.362] [Thread-3/ERROR]: Error in class 'LibraryLWJGLOpenAL' [21:01:08.363] [Thread-3/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [21:01:08.363] [Thread-3/WARN]: ERROR MESSAGE: [21:01:08.363] [Thread-3/INFO]: Could not locate OpenAL library. [21:01:08.363] [Thread-3/WARN]: STACK TRACE: [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [21:01:08.364] [Thread-3/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [21:01:08.598] [Sound Library Loader/WARN]: ERROR MESSAGE: [21:01:08.599] [Sound Library Loader/INFO]: Could not locate OpenAL library. [21:01:08.599] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:01:08.936] [Thread-5/INFO]: Switching to No Sound [21:01:08.938] [Thread-5/INFO]: (Silent Mode) [21:01:09.212] [Sound Library Loader/INFO]: Sound engine started [21:01:28.017] [Client thread/INFO]: Created: 1024x512 textures-atlas [21:01:34.657] [Client thread/INFO]: [STDOUT]@.(NarratorWindows.java:20): Narrator library for x64 successfully loaded [21:01:39.821] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel d8c5b63b-c0f9-4858-8689-ab8f92918a44 [21:01:40.861] [Client thread/DEBUG]: Removed channel d8c5b63b-c0f9-4858-8689-ab8f92918a44 because it's not playing anymore [21:01:40.894] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel 558503eb-5f3b-4f9e-a925-f13464f9493a [21:01:41.960] [Client thread/DEBUG]: Removed channel 558503eb-5f3b-4f9e-a925-f13464f9493a because it's not playing anymore [21:01:41.993] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 730fee9b-fcfd-4261-a427-ce33b23d8dcb [21:01:43.028] [Client thread/DEBUG]: Removed channel 730fee9b-fcfd-4261-a427-ce33b23d8dcb because it's not playing anymore [21:02:04.899] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 89e96207-569a-4b2e-9760-a3cceacebd50 [21:02:05.865] [Client thread/DEBUG]: Removed channel 89e96207-569a-4b2e-9760-a3cceacebd50 because it's not playing anymore [21:02:23.418] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu2 for event minecraft:music.menu as channel a78416a6-5d39-4bef-ac14-5092f42eb20d [21:02:24.351] [Client thread/DEBUG]: Removed channel a78416a6-5d39-4bef-ac14-5092f42eb20d because it's not playing anymore [21:02:31.051] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu3 for event minecraft:music.menu as channel 2905b576-5eb4-4059-a7e8-83dd15f314c9 [21:02:32.017] [Client thread/DEBUG]: Removed channel 2905b576-5eb4-4059-a7e8-83dd15f314c9 because it's not playing anymore [21:02:44.351] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu3 for event minecraft:music.menu as channel ae31f3f9-fa8b-43a8-8feb-635fc79b3ba1 [21:02:45.317] [Client thread/DEBUG]: Removed channel ae31f3f9-fa8b-43a8-8feb-635fc79b3ba1 because it's not playing anymore [21:03:00.152] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 271cec83-88d6-4d8e-a7ac-671891e4a219 [21:03:01.122] [Client thread/DEBUG]: Removed channel 271cec83-88d6-4d8e-a7ac-671891e4a219 because it's not playing anymore [21:03:20.110] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel b37436b6-ea17-4a68-a2ac-8f704d664e73 [21:03:20.141] [Client thread/INFO]: Stopping! [21:03:20.147] [Client thread/INFO]: SoundSystem shutting down... [21:03:20.348] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.comNote that I brute-forced this reproduction with a script; unfortunately that script wasn't smart enough to handle standard error output, so the actual MMDevApiOpenPlayback: Device init failed messages aren't included but still likely happened. Also, the 3 failures after each instance of "getPathFromClassLoader: searching for:" happen even when audio works successfully - it's likely a platform thing. Also, note that C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll does not exist and never should exist - the "Could not load OpenAL library" message from it probably is a red herring; the earlier Could not open ALC device is probably more useful.
I would suggest having Minecraft detect when this happens, and try to restart OpenAL. If it fails multiple times, then it should force a no sound mode. At minimum, a message should be displayed on the title screen in some way, advising the user to use F3+T to reload the sound engine.
MC does attempt to detect this happening in SoundManager, but the sound is loaded in a separate thread from which the catch statement happens. Thread.setUncaughtExceptionHandler should be used instead. Even then, that handler only logs an error and mutes audio; for the general user this behavior isn't entirely obvious ("Why did my game just mute itself‽") although (IIRC) doing that does reload the sound engine when it's unmuted.
MC also has a custom SoundSystemLogger (also declared in SoundManager); that could be used to identify such errors as well.
Occasionally when resources are loaded, OpenAL fails to start and there is no sound. Generally it works fine, but very rarely it fails.
In that case, it switches to no-sound version.
This is a game log from when it failed to start:[09:46:32] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:32] [Thread-6/INFO]: Initializing LWJGL OpenAL [09:46:32] [Thread-6/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 [09:46:32] [Thread-6/ERROR]: Error in class 'LibraryLWJGLOpenAL' [09:46:32] [Thread-6/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [09:46:32] [Thread-6/WARN]: ERROR MESSAGE: [09:46:32] [Thread-6/INFO]: Could not locate OpenAL library. [09:46:32] [Thread-6/WARN]: STACK TRACE: [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [09:46:32] [Thread-6/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [09:46:32] [Thread-6/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [09:46:33] [Sound Library Loader/WARN]: ERROR MESSAGE: [09:46:33] [Sound Library Loader/INFO]: Could not locate OpenAL library. [09:46:33] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:33] [Thread-8/INFO]: Switching to No Sound [09:46:33] [Thread-8/INFO]: (Silent Mode)A second reproduction with a debug log4j config, and with -Dorg.lwjgl.util.Debug=true in the launcher args, gives this:
[21:00:54.655] [Client thread/INFO]: Setting user: pokechu22 [21:00:54.662] [Client thread/DEBUG]: (Session ID is token:<censored>) [21:01:01.502] [Client thread/INFO]: Loaded 482 advancements [21:01:02.371] [Client thread/INFO]: LWJGL Version: 2.9.4 [21:01:02.517] [Client thread/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Initial mode: 1366 x 768 x 32 @60Hz [21:01:02.826] [Client thread/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] MemoryUtil Accessor: AccessorUnsafe [21:01:03.520] [Client thread/INFO]: Reloading ResourceManager: Default, SoundDemo [21:01:07.891] [Client thread/DEBUG]: Replaced sound event location minecraft:music.creative [21:01:07.894] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.creative' to registry [21:01:07.910] [Client thread/DEBUG]: Replaced sound event location minecraft:music.credits [21:01:07.911] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.credits' to registry [21:01:07.914] [Client thread/DEBUG]: Replaced sound event location minecraft:music.dragon [21:01:07.914] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.dragon' to registry [21:01:07.917] [Client thread/DEBUG]: Replaced sound event location minecraft:music.end [21:01:07.917] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.end' to registry [21:01:07.919] [Client thread/DEBUG]: Replaced sound event location minecraft:music.game [21:01:07.920] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.game' to registry [21:01:07.937] [Client thread/DEBUG]: Replaced sound event location minecraft:music.menu [21:01:07.937] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.menu' to registry [21:01:07.942] [Client thread/DEBUG]: Replaced sound event location minecraft:music.nether [21:01:07.943] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.nether' to registry [21:01:07.955] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.hurt_drown [21:01:07.958] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.hurt_on_fire [21:01:07.988] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:01:08.221] [Thread-3/INFO]: Initializing LWJGL OpenAL [21:01:08.225] [Thread-3/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [21:01:08.236] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] getPathFromClassLoader: searching for: OpenAL64 [21:01:08.239] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String) [21:01:08.242] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String) [21:01:08.242] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String) [21:01:08.250] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] getPathFromClassLoader: searching for: lwjgl [21:01:08.250] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String) [21:01:08.252] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String) [21:01:08.252] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String) [21:01:08.276] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found 3 OpenAL paths [21:01:08.277] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll' [21:01:08.282] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found OpenAL at 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll' [21:01:08.348] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll: Could not open ALC device [21:01:08.349] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll' [21:01:08.350] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll: Could not load OpenAL library (126) [21:01:08.351] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'OpenAL64.dll' [21:01:08.357] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found OpenAL at 'OpenAL64.dll' [21:01:08.360] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load OpenAL64.dll: Could not open ALC device [21:01:08.362] [Thread-3/ERROR]: Error in class 'LibraryLWJGLOpenAL' [21:01:08.363] [Thread-3/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [21:01:08.363] [Thread-3/WARN]: ERROR MESSAGE: [21:01:08.363] [Thread-3/INFO]: Could not locate OpenAL library. [21:01:08.363] [Thread-3/WARN]: STACK TRACE: [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [21:01:08.364] [Thread-3/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [21:01:08.598] [Sound Library Loader/WARN]: ERROR MESSAGE: [21:01:08.599] [Sound Library Loader/INFO]: Could not locate OpenAL library. [21:01:08.599] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:01:08.936] [Thread-5/INFO]: Switching to No Sound [21:01:08.938] [Thread-5/INFO]: (Silent Mode) [21:01:09.212] [Sound Library Loader/INFO]: Sound engine started [21:01:28.017] [Client thread/INFO]: Created: 1024x512 textures-atlas [21:01:34.657] [Client thread/INFO]: [STDOUT]@.(NarratorWindows.java:20): Narrator library for x64 successfully loaded [21:01:39.821] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel d8c5b63b-c0f9-4858-8689-ab8f92918a44 [21:01:40.861] [Client thread/DEBUG]: Removed channel d8c5b63b-c0f9-4858-8689-ab8f92918a44 because it's not playing anymore [21:01:40.894] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel 558503eb-5f3b-4f9e-a925-f13464f9493a [21:01:41.960] [Client thread/DEBUG]: Removed channel 558503eb-5f3b-4f9e-a925-f13464f9493a because it's not playing anymore [21:01:41.993] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 730fee9b-fcfd-4261-a427-ce33b23d8dcb [21:01:43.028] [Client thread/DEBUG]: Removed channel 730fee9b-fcfd-4261-a427-ce33b23d8dcb because it's not playing anymore [21:02:04.899] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 89e96207-569a-4b2e-9760-a3cceacebd50 [21:02:05.865] [Client thread/DEBUG]: Removed channel 89e96207-569a-4b2e-9760-a3cceacebd50 because it's not playing anymore [21:02:23.418] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu2 for event minecraft:music.menu as channel a78416a6-5d39-4bef-ac14-5092f42eb20d [21:02:24.351] [Client thread/DEBUG]: Removed channel a78416a6-5d39-4bef-ac14-5092f42eb20d because it's not playing anymore [21:02:31.051] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu3 for event minecraft:music.menu as channel 2905b576-5eb4-4059-a7e8-83dd15f314c9 [21:02:32.017] [Client thread/DEBUG]: Removed channel 2905b576-5eb4-4059-a7e8-83dd15f314c9 because it's not playing anymore [21:02:44.351] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu3 for event minecraft:music.menu as channel ae31f3f9-fa8b-43a8-8feb-635fc79b3ba1 [21:02:45.317] [Client thread/DEBUG]: Removed channel ae31f3f9-fa8b-43a8-8feb-635fc79b3ba1 because it's not playing anymore [21:03:00.152] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 271cec83-88d6-4d8e-a7ac-671891e4a219 [21:03:01.122] [Client thread/DEBUG]: Removed channel 271cec83-88d6-4d8e-a7ac-671891e4a219 because it's not playing anymore [21:03:20.110] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel b37436b6-ea17-4a68-a2ac-8f704d664e73 [21:03:20.141] [Client thread/INFO]: Stopping! [21:03:20.147] [Client thread/INFO]: SoundSystem shutting down... [21:03:20.348] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.comNote that
I brute-forced this reproduction with a script; unfortunately that script wasn't smart enough to handle standard error output, so the actualMMDevApiOpenPlayback: Device init failedmessages aren't included but still likely happened. Also, the 3 failures after each instance of "getPathFromClassLoader: searching for:" happen even when audio works successfully - it's likely a platform thing. Also, note thatC:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll does not exist and never should exist - the "Could not load OpenAL library" message from it probably is a red herring; the earlier Could not open ALC device is probably more useful.I would suggest having Minecraft detect when this happens, and try to restart OpenAL. If it fails multiple times, then it should force a no sound mode. At minimum, a message should be displayed on the title screen in some way, advising the user to use F3+T to reload the sound engine.
MC does attempt to detect this happening in SoundManager, but the sound is loaded in a separate thread from which the catch statement happens. Thread.setUncaughtExceptionHandler should be used instead. Even then, that handler only logs an error and mutes audio; for the general user this behavior isn't entirely obvious ("Why did my game just mute itself‽") although (IIRC) doing that does reload the sound engine when it's unmuted.
MC also has a custom SoundSystemLogger (also declared in SoundManager); that could be used to identify such errors as well.
Occasionally when resources are loaded, OpenAL fails to start and there is no sound. Generally it works fine, but very rarely it fails.
In that case, it switches to no-sound version.
This is a game log from when it failed to start:[09:46:32] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:32] [Thread-6/INFO]: Initializing LWJGL OpenAL [09:46:32] [Thread-6/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 [09:46:32] [Thread-6/ERROR]: Error in class 'LibraryLWJGLOpenAL' [09:46:32] [Thread-6/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [09:46:32] [Thread-6/WARN]: ERROR MESSAGE: [09:46:32] [Thread-6/INFO]: Could not locate OpenAL library. [09:46:32] [Thread-6/WARN]: STACK TRACE: [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [09:46:32] [Thread-6/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [09:46:32] [Thread-6/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [09:46:33] [Sound Library Loader/WARN]: ERROR MESSAGE: [09:46:33] [Sound Library Loader/INFO]: Could not locate OpenAL library. [09:46:33] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:33] [Thread-8/INFO]: Switching to No Sound [09:46:33] [Thread-8/INFO]: (Silent Mode)A second reproduction with a debug log4j config, and with -Dorg.lwjgl.util.Debug=true in the launcher args, gives this:
[21:00:54.655] [Client thread/INFO]: Setting user: pokechu22 [21:00:54.662] [Client thread/DEBUG]: (Session ID is token:<censored>) [21:01:01.502] [Client thread/INFO]: Loaded 482 advancements [21:01:02.371] [Client thread/INFO]: LWJGL Version: 2.9.4 [21:01:02.517] [Client thread/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Initial mode: 1366 x 768 x 32 @60Hz [21:01:02.826] [Client thread/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] MemoryUtil Accessor: AccessorUnsafe [21:01:03.520] [Client thread/INFO]: Reloading ResourceManager: Default, SoundDemo [21:01:07.891] [Client thread/DEBUG]: Replaced sound event location minecraft:music.creative [21:01:07.894] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.creative' to registry [21:01:07.910] [Client thread/DEBUG]: Replaced sound event location minecraft:music.credits [21:01:07.911] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.credits' to registry [21:01:07.914] [Client thread/DEBUG]: Replaced sound event location minecraft:music.dragon [21:01:07.914] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.dragon' to registry [21:01:07.917] [Client thread/DEBUG]: Replaced sound event location minecraft:music.end [21:01:07.917] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.end' to registry [21:01:07.919] [Client thread/DEBUG]: Replaced sound event location minecraft:music.game [21:01:07.920] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.game' to registry [21:01:07.937] [Client thread/DEBUG]: Replaced sound event location minecraft:music.menu [21:01:07.937] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.menu' to registry [21:01:07.942] [Client thread/DEBUG]: Replaced sound event location minecraft:music.nether [21:01:07.943] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.nether' to registry [21:01:07.955] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.hurt_drown [21:01:07.958] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.hurt_on_fire [21:01:07.988] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:01:08.221] [Thread-3/INFO]: Initializing LWJGL OpenAL [21:01:08.225] [Thread-3/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [21:01:08.236] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] getPathFromClassLoader: searching for: OpenAL64 [21:01:08.239] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String) [21:01:08.242] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String) [21:01:08.242] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String) [21:01:08.250] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] getPathFromClassLoader: searching for: lwjgl [21:01:08.250] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String) [21:01:08.252] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String) [21:01:08.252] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String) [21:01:08.276] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found 3 OpenAL paths [21:01:08.277] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll' [21:01:08.282] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found OpenAL at 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll' [21:01:08.348] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll: Could not open ALC device AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 [21:01:08.349] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll' [21:01:08.350] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll: Could not load OpenAL library (126) [21:01:08.351] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'OpenAL64.dll' [21:01:08.357] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found OpenAL at 'OpenAL64.dll' [21:01:08.360] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load OpenAL64.dll: Could not open ALC device AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 [21:01:08.362] [Thread-3/ERROR]: Error in class 'LibraryLWJGLOpenAL' [21:01:08.363] [Thread-3/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [21:01:08.363] [Thread-3/WARN]: ERROR MESSAGE: [21:01:08.363] [Thread-3/INFO]: Could not locate OpenAL library. [21:01:08.363] [Thread-3/WARN]: STACK TRACE: [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [21:01:08.364] [Thread-3/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [21:01:08.598] [Sound Library Loader/WARN]: ERROR MESSAGE: [21:01:08.599] [Sound Library Loader/INFO]: Could not locate OpenAL library. [21:01:08.599] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:01:08.936] [Thread-5/INFO]: Switching to No Sound [21:01:08.938] [Thread-5/INFO]: (Silent Mode) [21:01:09.212] [Sound Library Loader/INFO]: Sound engine started [21:01:28.017] [Client thread/INFO]: Created: 1024x512 textures-atlas [21:01:34.657] [Client thread/INFO]: [STDOUT]@.(NarratorWindows.java:20): Narrator library for x64 successfully loaded [21:01:39.821] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel d8c5b63b-c0f9-4858-8689-ab8f92918a44 [21:01:40.861] [Client thread/DEBUG]: Removed channel d8c5b63b-c0f9-4858-8689-ab8f92918a44 because it's not playing anymore [21:01:40.894] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel 558503eb-5f3b-4f9e-a925-f13464f9493a [21:01:41.960] [Client thread/DEBUG]: Removed channel 558503eb-5f3b-4f9e-a925-f13464f9493a because it's not playing anymore [21:01:41.993] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 730fee9b-fcfd-4261-a427-ce33b23d8dcb [21:01:43.028] [Client thread/DEBUG]: Removed channel 730fee9b-fcfd-4261-a427-ce33b23d8dcb because it's not playing anymore [21:02:04.899] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 89e96207-569a-4b2e-9760-a3cceacebd50 [21:02:05.865] [Client thread/DEBUG]: Removed channel 89e96207-569a-4b2e-9760-a3cceacebd50 because it's not playing anymore [21:02:23.418] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu2 for event minecraft:music.menu as channel a78416a6-5d39-4bef-ac14-5092f42eb20d [21:02:24.351] [Client thread/DEBUG]: Removed channel a78416a6-5d39-4bef-ac14-5092f42eb20d because it's not playing anymore [21:02:31.051] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu3 for event minecraft:music.menu as channel 2905b576-5eb4-4059-a7e8-83dd15f314c9 [21:02:32.017] [Client thread/DEBUG]: Removed channel 2905b576-5eb4-4059-a7e8-83dd15f314c9 because it's not playing anymore [21:02:44.351] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu3 for event minecraft:music.menu as channel ae31f3f9-fa8b-43a8-8feb-635fc79b3ba1 [21:02:45.317] [Client thread/DEBUG]: Removed channel ae31f3f9-fa8b-43a8-8feb-635fc79b3ba1 because it's not playing anymore [21:03:00.152] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 271cec83-88d6-4d8e-a7ac-671891e4a219 [21:03:01.122] [Client thread/DEBUG]: Removed channel 271cec83-88d6-4d8e-a7ac-671891e4a219 because it's not playing anymore [21:03:20.110] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel b37436b6-ea17-4a68-a2ac-8f704d664e73 [21:03:20.141] [Client thread/INFO]: Stopping! [21:03:20.147] [Client thread/INFO]: SoundSystem shutting down... [21:03:20.348] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com Could not locate symbol glEnableClientStateiEXT Could not locate symbol glDisableClientStateiEXT Could not locate symbol glGetFloati_vEXT Could not locate symbol glGetDoublei_vEXT Could not locate symbol glGetPointeri_vEXTNote that the 3 failures after each instance of "getPathFromClassLoader: searching for:" happen even when audio works successfully - it's likely a platform thing. Additionally, "Could not locate symbol" at the bottom also occurs each time. Finally, note that C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll does not exist and never should exist - the "Could not load OpenAL library" message from it probably is a red herring; the earlier Could not open ALC device and "MMDevApiOpenPlayback: Device init failed: 0x80004005" are probably more useful.
I would suggest having Minecraft detect when this happens, and try to restart OpenAL. If it fails multiple times, then it should force a no sound mode. At minimum, a message should be displayed on the title screen in some way, advising the user to use F3+T to reload the sound engine.
MC does attempt to detect this happening in SoundManager, but the sound is loaded in a separate thread from which the catch statement happens. Thread.setUncaughtExceptionHandler should be used instead. Even then, that handler only logs an error and mutes audio; for the general user this behavior isn't entirely obvious ("Why did my game just mute itself‽") although (IIRC) doing that does reload the sound engine when it's unmuted.
MC also has a custom SoundSystemLogger (also declared in SoundManager); that could be used to identify such errors as well.
Occasionally when resources are loaded, OpenAL fails to start and there is no sound. Generally it works fine, but very rarely it fails.
In that case, it switches to no-sound version.
This is a game log from when it failed to start:[09:46:32] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:32] [Thread-6/INFO]: Initializing LWJGL OpenAL [09:46:32] [Thread-6/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 [09:46:32] [Thread-6/ERROR]: Error in class 'LibraryLWJGLOpenAL' [09:46:32] [Thread-6/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [09:46:32] [Thread-6/WARN]: ERROR MESSAGE: [09:46:32] [Thread-6/INFO]: Could not locate OpenAL library. [09:46:32] [Thread-6/WARN]: STACK TRACE: [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [09:46:32] [Thread-6/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [09:46:32] [Thread-6/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [09:46:33] [Sound Library Loader/WARN]: ERROR MESSAGE: [09:46:33] [Sound Library Loader/INFO]: Could not locate OpenAL library. [09:46:33] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:33] [Thread-8/INFO]: Switching to No Sound [09:46:33] [Thread-8/INFO]: (Silent Mode)A second reproduction with a debug log4j config, and with -Dorg.lwjgl.util.Debug=true in the launcher args, gives this:
[21:00:54.655] [Client thread/INFO]: Setting user: pokechu22 [21:00:54.662] [Client thread/DEBUG]: (Session ID is token:<censored>) [21:01:01.502] [Client thread/INFO]: Loaded 482 advancements [21:01:02.371] [Client thread/INFO]: LWJGL Version: 2.9.4 [21:01:02.517] [Client thread/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Initial mode: 1366 x 768 x 32 @60Hz [21:01:02.826] [Client thread/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] MemoryUtil Accessor: AccessorUnsafe [21:01:03.520] [Client thread/INFO]: Reloading ResourceManager: Default, SoundDemo [21:01:07.891] [Client thread/DEBUG]: Replaced sound event location minecraft:music.creative [21:01:07.894] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.creative' to registry [21:01:07.910] [Client thread/DEBUG]: Replaced sound event location minecraft:music.credits [21:01:07.911] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.credits' to registry [21:01:07.914] [Client thread/DEBUG]: Replaced sound event location minecraft:music.dragon [21:01:07.914] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.dragon' to registry [21:01:07.917] [Client thread/DEBUG]: Replaced sound event location minecraft:music.end [21:01:07.917] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.end' to registry [21:01:07.919] [Client thread/DEBUG]: Replaced sound event location minecraft:music.game [21:01:07.920] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.game' to registry [21:01:07.937] [Client thread/DEBUG]: Replaced sound event location minecraft:music.menu [21:01:07.937] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.menu' to registry [21:01:07.942] [Client thread/DEBUG]: Replaced sound event location minecraft:music.nether [21:01:07.943] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.nether' to registry [21:01:07.955] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.hurt_drown [21:01:07.958] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.hurt_on_fire [21:01:07.988] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:01:08.221] [Thread-3/INFO]: Initializing LWJGL OpenAL [21:01:08.225] [Thread-3/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [21:01:08.236] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] getPathFromClassLoader: searching for: OpenAL64 [21:01:08.239] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String) [21:01:08.242] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String) [21:01:08.242] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String) [21:01:08.250] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] getPathFromClassLoader: searching for: lwjgl [21:01:08.250] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String) [21:01:08.252] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String) [21:01:08.252] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String) [21:01:08.276] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found 3 OpenAL paths [21:01:08.277] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll' [21:01:08.282] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found OpenAL at 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll' [21:01:08.348] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll: Could not open ALC device AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 [21:01:08.349] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll' [21:01:08.350] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll: Could not load OpenAL library (126) [21:01:08.351] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'OpenAL64.dll' [21:01:08.357] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found OpenAL at 'OpenAL64.dll' [21:01:08.360] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load OpenAL64.dll: Could not open ALC device AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 [21:01:08.362] [Thread-3/ERROR]: Error in class 'LibraryLWJGLOpenAL' [21:01:08.363] [Thread-3/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [21:01:08.363] [Thread-3/WARN]: ERROR MESSAGE: [21:01:08.363] [Thread-3/INFO]: Could not locate OpenAL library. [21:01:08.363] [Thread-3/WARN]: STACK TRACE: [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [21:01:08.364] [Thread-3/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [21:01:08.598] [Sound Library Loader/WARN]: ERROR MESSAGE: [21:01:08.599] [Sound Library Loader/INFO]: Could not locate OpenAL library. [21:01:08.599] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:01:08.936] [Thread-5/INFO]: Switching to No Sound [21:01:08.938] [Thread-5/INFO]: (Silent Mode) [21:01:09.212] [Sound Library Loader/INFO]: Sound engine started [21:01:28.017] [Client thread/INFO]: Created: 1024x512 textures-atlas [21:01:34.657] [Client thread/INFO]: [STDOUT]@.(NarratorWindows.java:20): Narrator library for x64 successfully loaded [21:01:39.821] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel d8c5b63b-c0f9-4858-8689-ab8f92918a44 [21:01:40.861] [Client thread/DEBUG]: Removed channel d8c5b63b-c0f9-4858-8689-ab8f92918a44 because it's not playing anymore [21:01:40.894] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel 558503eb-5f3b-4f9e-a925-f13464f9493a [21:01:41.960] [Client thread/DEBUG]: Removed channel 558503eb-5f3b-4f9e-a925-f13464f9493a because it's not playing anymore [21:01:41.993] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 730fee9b-fcfd-4261-a427-ce33b23d8dcb [21:01:43.028] [Client thread/DEBUG]: Removed channel 730fee9b-fcfd-4261-a427-ce33b23d8dcb because it's not playing anymore [21:02:04.899] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 89e96207-569a-4b2e-9760-a3cceacebd50 [21:02:05.865] [Client thread/DEBUG]: Removed channel 89e96207-569a-4b2e-9760-a3cceacebd50 because it's not playing anymore [21:02:23.418] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu2 for event minecraft:music.menu as channel a78416a6-5d39-4bef-ac14-5092f42eb20d [21:02:24.351] [Client thread/DEBUG]: Removed channel a78416a6-5d39-4bef-ac14-5092f42eb20d because it's not playing anymore [21:02:31.051] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu3 for event minecraft:music.menu as channel 2905b576-5eb4-4059-a7e8-83dd15f314c9 [21:02:32.017] [Client thread/DEBUG]: Removed channel 2905b576-5eb4-4059-a7e8-83dd15f314c9 because it's not playing anymore [21:02:44.351] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu3 for event minecraft:music.menu as channel ae31f3f9-fa8b-43a8-8feb-635fc79b3ba1 [21:02:45.317] [Client thread/DEBUG]: Removed channel ae31f3f9-fa8b-43a8-8feb-635fc79b3ba1 because it's not playing anymore [21:03:00.152] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 271cec83-88d6-4d8e-a7ac-671891e4a219 [21:03:01.122] [Client thread/DEBUG]: Removed channel 271cec83-88d6-4d8e-a7ac-671891e4a219 because it's not playing anymore [21:03:20.110] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel b37436b6-ea17-4a68-a2ac-8f704d664e73 [21:03:20.141] [Client thread/INFO]: Stopping! [21:03:20.147] [Client thread/INFO]: SoundSystem shutting down... [21:03:20.348] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com Could not locate symbol glEnableClientStateiEXT Could not locate symbol glDisableClientStateiEXT Could not locate symbol glGetFloati_vEXT Could not locate symbol glGetDoublei_vEXT Could not locate symbol glGetPointeri_vEXTNote that the 3 failures after each instance of "getPathFromClassLoader: searching for:" happen even when audio works successfully - it's likely a platform thing. Additionally, "Could not locate symbol" at the bottom also occurs each time. Finally, note that C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll does not exist and never should exist - the "Could not load OpenAL library" message from it probably is a red herring; the earlier Could not open ALC device and "MMDevApiOpenPlayback: Device init failed: 0x80004005" are probably more useful.
On further inspection, here's the code that generates that error. Note that 0x80004005 is a completely useless error code; it just represents E_FAIL which means "Unspecified failure". It seems that the OpenAL code doesn't even make more specific errors, but I don't know enough of the Windows API (or C in general) to understand it.
I would suggest having Minecraft detect when this happens, and try to restart OpenAL. If it fails multiple times, then it should force a no sound mode. At minimum, a message should be displayed on the title screen in some way, advising the user to use F3+T to reload the sound engine.
MC does attempt to detect this happening in SoundManager, but the sound is loaded in a separate thread from which the catch statement happens. Thread.setUncaughtExceptionHandler should be used instead. Even then, that handler only logs an error and mutes audio; for the general user this behavior isn't entirely obvious ("Why did my game just mute itself‽") although (IIRC) doing that does reload the sound engine when it's unmuted.
MC also has a custom SoundSystemLogger (also declared in SoundManager); that could be used to identify such errors as well.
relates to
Occasionally when resources are loaded, OpenAL fails to start and there is no sound. Generally it works fine, but very rarely it fails.
In that case, it switches to no-sound version.
This is a game log from when it failed to start:[09:46:32] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:32] [Thread-6/INFO]: Initializing LWJGL OpenAL [09:46:32] [Thread-6/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 [09:46:32] [Thread-6/ERROR]: Error in class 'LibraryLWJGLOpenAL' [09:46:32] [Thread-6/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [09:46:32] [Thread-6/WARN]: ERROR MESSAGE: [09:46:32] [Thread-6/INFO]: Could not locate OpenAL library. [09:46:32] [Thread-6/WARN]: STACK TRACE: [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [09:46:32] [Thread-6/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [09:46:32] [Thread-6/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [09:46:33] [Sound Library Loader/WARN]: ERROR MESSAGE: [09:46:33] [Sound Library Loader/INFO]: Could not locate OpenAL library. [09:46:33] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:33] [Thread-8/INFO]: Switching to No Sound [09:46:33] [Thread-8/INFO]: (Silent Mode)A second reproduction with a debug log4j config, and with -Dorg.lwjgl.util.Debug=true in the launcher args,
gives this:[21:00:54.655] [Client thread/INFO]: Setting user: pokechu22 [21:00:54.662] [Client thread/DEBUG]: (Session ID is token:<censored>) [21:01:01.502] [Client thread/INFO]: Loaded 482 advancements [21:01:02.371] [Client thread/INFO]: LWJGL Version: 2.9.4 [21:01:02.517] [Client thread/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Initial mode: 1366 x 768 x 32 @60Hz [21:01:02.826] [Client thread/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] MemoryUtil Accessor: AccessorUnsafe [21:01:03.520] [Client thread/INFO]: Reloading ResourceManager: Default, SoundDemo [21:01:07.891] [Client thread/DEBUG]: Replaced sound event location minecraft:music.creative [21:01:07.894] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.creative' to registry [21:01:07.910] [Client thread/DEBUG]: Replaced sound event location minecraft:music.credits [21:01:07.911] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.credits' to registry [21:01:07.914] [Client thread/DEBUG]: Replaced sound event location minecraft:music.dragon [21:01:07.914] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.dragon' to registry [21:01:07.917] [Client thread/DEBUG]: Replaced sound event location minecraft:music.end [21:01:07.917] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.end' to registry [21:01:07.919] [Client thread/DEBUG]: Replaced sound event location minecraft:music.game [21:01:07.920] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.game' to registry [21:01:07.937] [Client thread/DEBUG]: Replaced sound event location minecraft:music.menu [21:01:07.937] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.menu' to registry [21:01:07.942] [Client thread/DEBUG]: Replaced sound event location minecraft:music.nether [21:01:07.943] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.nether' to registry [21:01:07.955] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.hurt_drown [21:01:07.958] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.hurt_on_fire [21:01:07.988] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:01:08.221] [Thread-3/INFO]: Initializing LWJGL OpenAL [21:01:08.225] [Thread-3/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [21:01:08.236] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] getPathFromClassLoader: searching for: OpenAL64[21:01:08.239] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String)[21:01:08.242] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String) [21:01:08.242] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String) [21:01:08.250] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] getPathFromClassLoader: searching for: lwjgl [21:01:08.250] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String) [21:01:08.252] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String) [21:01:08.252] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String) [21:01:08.276] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found 3 OpenAL paths [21:01:08.277] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll' [21:01:08.282] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found OpenAL at 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll' [21:01:08.348] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll: Could not open ALC deviceAL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005[21:01:08.349] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll' [21:01:08.350] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll: Could not load OpenAL library (126) [21:01:08.351] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'OpenAL64.dll' [21:01:08.357] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found OpenAL at 'OpenAL64.dll' [21:01:08.360] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load OpenAL64.dll: Could not open ALC deviceAL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005[21:01:08.362] [Thread-3/ERROR]: Error in class 'LibraryLWJGLOpenAL' [21:01:08.363] [Thread-3/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [21:01:08.363] [Thread-3/WARN]: ERROR MESSAGE: [21:01:08.363] [Thread-3/INFO]: Could not locate OpenAL library. [21:01:08.363] [Thread-3/WARN]: STACK TRACE: [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [21:01:08.364] [Thread-3/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [21:01:08.598] [Sound Library Loader/WARN]: ERROR MESSAGE: [21:01:08.599] [Sound Library Loader/INFO]: Could not locate OpenAL library. [21:01:08.599] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:01:08.936] [Thread-5/INFO]: Switching to No Sound [21:01:08.938] [Thread-5/INFO]: (Silent Mode) [21:01:09.212] [Sound Library Loader/INFO]: Sound engine started [21:01:28.017] [Client thread/INFO]: Created: 1024x512 textures-atlas [21:01:34.657] [Client thread/INFO]: [STDOUT]@.(NarratorWindows.java:20): Narrator library for x64 successfully loaded [21:01:39.821] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel d8c5b63b-c0f9-4858-8689-ab8f92918a44 [21:01:40.861] [Client thread/DEBUG]: Removed channel d8c5b63b-c0f9-4858-8689-ab8f92918a44 because it's not playing anymore [21:01:40.894] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel 558503eb-5f3b-4f9e-a925-f13464f9493a [21:01:41.960] [Client thread/DEBUG]: Removed channel 558503eb-5f3b-4f9e-a925-f13464f9493a because it's not playing anymore [21:01:41.993] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 730fee9b-fcfd-4261-a427-ce33b23d8dcb [21:01:43.028] [Client thread/DEBUG]: Removed channel 730fee9b-fcfd-4261-a427-ce33b23d8dcb because it's not playing anymore [21:02:04.899] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 89e96207-569a-4b2e-9760-a3cceacebd50 [21:02:05.865] [Client thread/DEBUG]: Removed channel 89e96207-569a-4b2e-9760-a3cceacebd50 because it's not playing anymore [21:02:23.418] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu2 for event minecraft:music.menu as channel a78416a6-5d39-4bef-ac14-5092f42eb20d [21:02:24.351] [Client thread/DEBUG]: Removed channel a78416a6-5d39-4bef-ac14-5092f42eb20d because it's not playing anymore [21:02:31.051] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu3 for event minecraft:music.menu as channel 2905b576-5eb4-4059-a7e8-83dd15f314c9 [21:02:32.017] [Client thread/DEBUG]: Removed channel 2905b576-5eb4-4059-a7e8-83dd15f314c9 because it's not playing anymore [21:02:44.351] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu3 for event minecraft:music.menu as channel ae31f3f9-fa8b-43a8-8feb-635fc79b3ba1 [21:02:45.317] [Client thread/DEBUG]: Removed channel ae31f3f9-fa8b-43a8-8feb-635fc79b3ba1 because it's not playing anymore [21:03:00.152] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 271cec83-88d6-4d8e-a7ac-671891e4a219 [21:03:01.122] [Client thread/DEBUG]: Removed channel 271cec83-88d6-4d8e-a7ac-671891e4a219 because it's not playing anymore [21:03:20.110] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel b37436b6-ea17-4a68-a2ac-8f704d664e73 [21:03:20.141] [Client thread/INFO]: Stopping! [21:03:20.147] [Client thread/INFO]: SoundSystem shutting down... [21:03:20.348] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com Could not locate symbol glEnableClientStateiEXT Could not locate symbol glDisableClientStateiEXT Could not locate symbol glGetFloati_vEXT Could not locate symbol glGetDoublei_vEXT Could not locate symbol glGetPointeri_vEXTNote that the 3 failures after each instance of "getPathFromClassLoader: searching for:" happen even when audio works successfully - it's likely a platform thing. Additionally, "Could not locate symbol" at the bottom also occurs each time. Finally, note that C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll does not exist and never should exist - the "Could not load OpenAL library" message from it probably is a red herring; the earlier Could not open ALC device and "MMDevApiOpenPlayback: Device init failed: 0x80004005" are probably more useful.
On further inspection, here's the code that generates that error. Note that 0x80004005 is a completely useless error code; it just represents E_FAIL which means "Unspecified failure". It seems that the OpenAL code doesn't even make more specific errors, but I don't know enough of the Windows API (or C in general) to understand it.
I would suggest having Minecraft detect when this happens, and try to restart OpenAL. If it fails multiple times, then it should force a no sound mode. At minimum, a message should be displayed on the title screen in some way, advising the user to use F3+T to reload the sound engine.
MC does attempt to detect this happening in SoundManager, but the sound is loaded in a separate thread from which the catch statement happens. Thread.setUncaughtExceptionHandler should be used instead. Even then, that handler only logs an error and mutes audio; for the general user this behavior isn't entirely obvious ("Why did my game just mute itself‽") although (IIRC) doing that does reload the sound engine when it's unmuted.
MC also has a custom SoundSystemLogger (also declared in SoundManager); that could be used to identify such errors as well.
Occasionally when resources are loaded, OpenAL fails to start and there is no sound. Generally it works fine, but very rarely it fails.
In that case, it switches to no-sound version.
This is a game log from when it failed to start:[09:46:32] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:32] [Thread-6/INFO]: Initializing LWJGL OpenAL [09:46:32] [Thread-6/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 [09:46:32] [Thread-6/ERROR]: Error in class 'LibraryLWJGLOpenAL' [09:46:32] [Thread-6/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [09:46:32] [Thread-6/WARN]: ERROR MESSAGE: [09:46:32] [Thread-6/INFO]: Could not locate OpenAL library. [09:46:32] [Thread-6/WARN]: STACK TRACE: [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [09:46:32] [Thread-6/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [09:46:32] [Thread-6/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [09:46:33] [Sound Library Loader/WARN]: ERROR MESSAGE: [09:46:33] [Sound Library Loader/INFO]: Could not locate OpenAL library. [09:46:33] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:33] [Thread-8/INFO]: Switching to No Sound [09:46:33] [Thread-8/INFO]: (Silent Mode)A second reproduction with a debug log4j config, and with -Dorg.lwjgl.util.Debug=true in the launcher args, and with the system environment variable ALSOFT_LOGLEVEL set to 3, gives this:
[21:00:54.655] [Client thread/INFO]: Setting user: pokechu22 [21:00:54.662] [Client thread/DEBUG]: (Session ID is token:<censored>) [21:01:01.502] [Client thread/INFO]: Loaded 482 advancements [21:01:02.371] [Client thread/INFO]: LWJGL Version: 2.9.4 [21:01:02.517] [Client thread/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Initial mode: 1366 x 768 x 32 @60Hz [21:01:02.826] [Client thread/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] MemoryUtil Accessor: AccessorUnsafe [21:01:03.520] [Client thread/INFO]: Reloading ResourceManager: Default, SoundDemo [21:01:07.891] [Client thread/DEBUG]: Replaced sound event location minecraft:music.creative [21:01:07.894] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.creative' to registry [21:01:07.910] [Client thread/DEBUG]: Replaced sound event location minecraft:music.credits [21:01:07.911] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.credits' to registry [21:01:07.914] [Client thread/DEBUG]: Replaced sound event location minecraft:music.dragon [21:01:07.914] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.dragon' to registry [21:01:07.917] [Client thread/DEBUG]: Replaced sound event location minecraft:music.end [21:01:07.917] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.end' to registry [21:01:07.919] [Client thread/DEBUG]: Replaced sound event location minecraft:music.game [21:01:07.920] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.game' to registry [21:01:07.937] [Client thread/DEBUG]: Replaced sound event location minecraft:music.menu [21:01:07.937] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.menu' to registry [21:01:07.942] [Client thread/DEBUG]: Replaced sound event location minecraft:music.nether [21:01:07.943] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.nether' to registry [21:01:07.955] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.hurt_drown [21:01:07.958] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.hurt_on_fire [21:01:07.988] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:01:08.221] [Thread-3/INFO]: Initializing LWJGL OpenAL [21:01:08.225] [Thread-3/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [21:01:08.236] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] getPathFromClassLoader: searching for: OpenAL64 AL lib: (II) alc_initconfig: Supported backends: mmdevapi, dsound, winmm, null, wave AL lib: (II) GetConfigValue: Key general:disable-cpu-exts not found AL lib: (II) FillCPUCaps: Got caps: SSE AL lib: (II) GetConfigValue: Key general:rt-prio not found AL lib: (II) GetConfigValue: Key general:resampler not found AL lib: (II) GetConfigValue: Key general:trap-al-error not found AL lib: (II) GetConfigValue: Key general:trap-alc-error not found AL lib: (II) GetConfigValue: Key reverb:boost not found AL lib: (II) GetConfigValue: Key reverb:emulate-eax not found AL lib: (II) GetConfigValue: Key general:drivers not found [21:01:08.239] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String) AL lib: (II) MMDevApiMsgProc: Starting message thread AL lib: (II) alc_initconfig: Initialized backend "mmdevapi" AL lib: (II) alc_initconfig: Added "mmdevapi" for playback AL lib: (II) alc_initconfig: Initialized backend "dsound" AL lib: (II) alc_initconfig: Added "dsound" for capture AL lib: (II) GetConfigValue: Key general:excludefx not found AL lib: (II) GetConfigValue: Key general:default-reverb not found AL lib: (II) GetConfigValue: Key general:channels not found AL lib: (II) GetConfigValue: Key general:sample-type not found AL lib: (II) GetConfigValue: Key general:format not found AL lib: (II) GetConfigValue: Key general:frequency not found AL lib: (II) GetConfigValue: Key general:periods not found AL lib: (II) GetConfigValue: Key general:period_size not found AL lib: (II) GetConfigValue: Key general:sources not found AL lib: (II) GetConfigValue: Key general:slots not found AL lib: (II) GetConfigValue: Key general:sends not found AL lib: (II) GetConfigValue: Key general:cf_level not found AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (II) GetConfigValue: Key general:channels not found AL lib: (II) GetConfigValue: Key general:sample-type not found AL lib: (II) GetConfigValue: Key general:format not found AL lib: (II) GetConfigValue: Key general:frequency not found AL lib: (II) GetConfigValue: Key general:periods not found AL lib: (II) GetConfigValue: Key general:period_size not found AL lib: (II) GetConfigValue: Key general:sources not found AL lib: (II) GetConfigValue: Key general:slots not found AL lib: (II) GetConfigValue: Key general:sends not found AL lib: (II) GetConfigValue: Key general:cf_level not found AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (II) MMDevApiMsgProc: Starting message loop [21:01:08.242] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String) [21:01:08.242] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String) [21:01:08.250] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] getPathFromClassLoader: searching for: lwjgl [21:01:08.250] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String) [21:01:08.252] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String) [21:01:08.252] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String) [21:01:08.276] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found 3 OpenAL paths [21:01:08.277] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll' [21:01:08.282] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found OpenAL at 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll' [21:01:08.348] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll: Could not open ALC device [21:01:08.349] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll' [21:01:08.350] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll: Could not load OpenAL library (126) [21:01:08.351] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'OpenAL64.dll' [21:01:08.357] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found OpenAL at 'OpenAL64.dll' [21:01:08.360] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load OpenAL64.dll: Could not open ALC device [21:01:08.362] [Thread-3/ERROR]: Error in class 'LibraryLWJGLOpenAL' [21:01:08.363] [Thread-3/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [21:01:08.363] [Thread-3/WARN]: ERROR MESSAGE: [21:01:08.363] [Thread-3/INFO]: Could not locate OpenAL library. [21:01:08.363] [Thread-3/WARN]: STACK TRACE: [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [21:01:08.364] [Thread-3/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [21:01:08.598] [Sound Library Loader/WARN]: ERROR MESSAGE: [21:01:08.599] [Sound Library Loader/INFO]: Could not locate OpenAL library. [21:01:08.599] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:01:08.936] [Thread-5/INFO]: Switching to No Sound [21:01:08.938] [Thread-5/INFO]: (Silent Mode) [21:01:09.212] [Sound Library Loader/INFO]: Sound engine started [21:01:28.017] [Client thread/INFO]: Created: 1024x512 textures-atlas [21:01:34.657] [Client thread/INFO]: [STDOUT]@.(NarratorWindows.java:20): Narrator library for x64 successfully loaded [21:01:39.821] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel d8c5b63b-c0f9-4858-8689-ab8f92918a44 [21:01:40.861] [Client thread/DEBUG]: Removed channel d8c5b63b-c0f9-4858-8689-ab8f92918a44 because it's not playing anymore [21:01:40.894] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel 558503eb-5f3b-4f9e-a925-f13464f9493a [21:01:41.960] [Client thread/DEBUG]: Removed channel 558503eb-5f3b-4f9e-a925-f13464f9493a because it's not playing anymore [21:01:41.993] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 730fee9b-fcfd-4261-a427-ce33b23d8dcb [21:01:43.028] [Client thread/DEBUG]: Removed channel 730fee9b-fcfd-4261-a427-ce33b23d8dcb because it's not playing anymore [21:02:04.899] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 89e96207-569a-4b2e-9760-a3cceacebd50 [21:02:05.865] [Client thread/DEBUG]: Removed channel 89e96207-569a-4b2e-9760-a3cceacebd50 because it's not playing anymore [21:02:23.418] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu2 for event minecraft:music.menu as channel a78416a6-5d39-4bef-ac14-5092f42eb20d [21:02:24.351] [Client thread/DEBUG]: Removed channel a78416a6-5d39-4bef-ac14-5092f42eb20d because it's not playing anymore [21:02:31.051] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu3 for event minecraft:music.menu as channel 2905b576-5eb4-4059-a7e8-83dd15f314c9 [21:02:32.017] [Client thread/DEBUG]: Removed channel 2905b576-5eb4-4059-a7e8-83dd15f314c9 because it's not playing anymore [21:02:44.351] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu3 for event minecraft:music.menu as channel ae31f3f9-fa8b-43a8-8feb-635fc79b3ba1 [21:02:45.317] [Client thread/DEBUG]: Removed channel ae31f3f9-fa8b-43a8-8feb-635fc79b3ba1 because it's not playing anymore [21:03:00.152] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 271cec83-88d6-4d8e-a7ac-671891e4a219 [21:03:01.122] [Client thread/DEBUG]: Removed channel 271cec83-88d6-4d8e-a7ac-671891e4a219 because it's not playing anymore [21:03:20.110] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel b37436b6-ea17-4a68-a2ac-8f704d664e73 [21:03:20.141] [Client thread/INFO]: Stopping! [21:03:20.147] [Client thread/INFO]: SoundSystem shutting down... [21:03:20.348] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com Could not locate symbol glEnableClientStateiEXT Could not locate symbol glDisableClientStateiEXT Could not locate symbol glGetFloati_vEXT Could not locate symbol glGetDoublei_vEXT Could not locate symbol glGetPointeri_vEXTNote that the 3 failures after each instance of "getPathFromClassLoader: searching for:" happen even when audio works successfully - it's likely a platform thing. Additionally, "Could not locate symbol" at the bottom also occurs each time. Finally, note that C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll does not exist and never should exist - the "Could not load OpenAL library" message from it probably is a red herring; the earlier Could not open ALC device and "MMDevApiOpenPlayback: Device init failed: 0x80004005" are probably more useful.
On further inspection, here's the code that generates that error. Note that 0x80004005 is a completely useless error code; it just represents E_FAIL which means "Unspecified failure".
A successful OpenAL startup on my machine looks like this, for reference:
AL lib: (II) alc_initconfig: Supported backends: mmdevapi, dsound, winmm, null, wave AL lib: (II) GetConfigValue: Key general:disable-cpu-exts not found AL lib: (II) FillCPUCaps: Got caps: SSE AL lib: (II) GetConfigValue: Key general:rt-prio not found AL lib: (II) GetConfigValue: Key general:resampler not found AL lib: (II) GetConfigValue: Key general:trap-al-error not found AL lib: (II) GetConfigValue: Key general:trap-alc-error not found AL lib: (II) GetConfigValue: Key reverb:boost not found AL lib: (II) GetConfigValue: Key reverb:emulate-eax not found AL lib: (II) GetConfigValue: Key general:drivers not found AL lib: (II) MMDevApiMsgProc: Starting message thread AL lib: (II) MMDevApiMsgProc: Starting message loop AL lib: (II) alc_initconfig: Initialized backend "mmdevapi" AL lib: (II) alc_initconfig: Added "mmdevapi" for playback AL lib: (II) alc_initconfig: Initialized backend "dsound" AL lib: (II) alc_initconfig: Added "dsound" for capture AL lib: (II) GetConfigValue: Key general:excludefx not found AL lib: (II) GetConfigValue: Key general:default-reverb not found AL lib: (II) GetConfigValue: Key general:channels not found AL lib: (II) GetConfigValue: Key general:sample-type not found AL lib: (II) GetConfigValue: Key general:format not found AL lib: (II) GetConfigValue: Key general:frequency not found AL lib: (II) GetConfigValue: Key general:periods not found AL lib: (II) GetConfigValue: Key general:period_size not found AL lib: (II) GetConfigValue: Key general:sources not found AL lib: (II) GetConfigValue: Key general:slots not found AL lib: (II) GetConfigValue: Key general:sends not found AL lib: (II) GetConfigValue: Key general:cf_level not found AL lib: (II) MMDevApiMsgProc: Got message 1024 AL lib: (II) alcOpenDevice: Created device 0000000025070090, "Speakers (High Definition Audio Device)" AL lib: (II) UpdateDeviceParams: Pre-reset: Stereo, Float, 44100hz, 1024 update size x4 AL lib: (II) MMDevApiMsgProc: Got message 1025 AL lib: (II) UpdateDeviceParams: Post-reset: Stereo, Float, 44100hz, 896 update size x4 AL lib: (II) GetConfigValue: Key general:layout_stereo not found AL lib: (II) GetConfigValue: Key general:layout not found AL lib: (II) GetConfigValue: Key general:hrtf not found AL lib: (II) UpdateDeviceParams: HRTF disabled AL lib: (II) UpdateDeviceParams: BS2B disabled AL lib: (II) GetConfigValue: Key general:wide-stereo not found AL lib: (II) MMDevApiMsgProc: Got message 1026 AL lib: (II) alcCreateContext: Created context 0000000025088450
I would suggest having Minecraft detect when this happens, and try to restart OpenAL. If it fails multiple times, then it should force a no sound mode. At minimum, a message should be displayed on the title screen in some way, advising the user to use F3+T to reload the sound engine.
MC does attempt to detect this happening in SoundManager, but the sound is loaded in a separate thread from which the catch statement happens. Thread.setUncaughtExceptionHandler should be used instead. Even then, that handler only logs an error and mutes audio; for the general user this behavior isn't entirely obvious ("Why did my game just mute itself‽") although (IIRC) doing that does reload the sound engine when it's unmuted.
MC also has a custom SoundSystemLogger (also declared in SoundManager); that could be used to identify such errors as well.
Occasionally when resources are loaded, OpenAL fails to start and there is no sound. Generally it works fine, but very rarely it fails.
In that case, it switches to no-sound version.
This is a game log from when it failed to start:[09:46:32] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:32] [Thread-6/INFO]: Initializing LWJGL OpenAL [09:46:32] [Thread-6/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 [09:46:32] [Thread-6/ERROR]: Error in class 'LibraryLWJGLOpenAL' [09:46:32] [Thread-6/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [09:46:32] [Thread-6/WARN]: ERROR MESSAGE: [09:46:32] [Thread-6/INFO]: Could not locate OpenAL library. [09:46:32] [Thread-6/WARN]: STACK TRACE: [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [09:46:32] [Thread-6/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [09:46:32] [Thread-6/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [09:46:33] [Sound Library Loader/WARN]: ERROR MESSAGE: [09:46:33] [Sound Library Loader/INFO]: Could not locate OpenAL library. [09:46:33] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:33] [Thread-8/INFO]: Switching to No Sound [09:46:33] [Thread-8/INFO]: (Silent Mode)A second reproduction with a debug log4j config, and with -Dorg.lwjgl.util.Debug=true in the launcher args, and with the system environment variable ALSOFT_LOGLEVEL set to 3, gives this:
[21:00:54.655] [Client thread/INFO]: Setting user: pokechu22 [21:00:54.662] [Client thread/DEBUG]: (Session ID is token:<censored>) [21:01:01.502] [Client thread/INFO]: Loaded 482 advancements [21:01:02.371] [Client thread/INFO]: LWJGL Version: 2.9.4 [21:01:02.517] [Client thread/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Initial mode: 1366 x 768 x 32 @60Hz [21:01:02.826] [Client thread/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] MemoryUtil Accessor: AccessorUnsafe [21:01:03.520] [Client thread/INFO]: Reloading ResourceManager: Default, SoundDemo [21:01:07.891] [Client thread/DEBUG]: Replaced sound event location minecraft:music.creative [21:01:07.894] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.creative' to registry [21:01:07.910] [Client thread/DEBUG]: Replaced sound event location minecraft:music.credits [21:01:07.911] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.credits' to registry [21:01:07.914] [Client thread/DEBUG]: Replaced sound event location minecraft:music.dragon [21:01:07.914] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.dragon' to registry [21:01:07.917] [Client thread/DEBUG]: Replaced sound event location minecraft:music.end [21:01:07.917] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.end' to registry [21:01:07.919] [Client thread/DEBUG]: Replaced sound event location minecraft:music.game [21:01:07.920] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.game' to registry [21:01:07.937] [Client thread/DEBUG]: Replaced sound event location minecraft:music.menu [21:01:07.937] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.menu' to registry [21:01:07.942] [Client thread/DEBUG]: Replaced sound event location minecraft:music.nether [21:01:07.943] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.nether' to registry [21:01:07.955] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.hurt_drown [21:01:07.958] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.hurt_on_fire [21:01:07.988] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:01:08.221] [Thread-3/INFO]: Initializing LWJGL OpenAL [21:01:08.225] [Thread-3/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [21:01:08.236] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] getPathFromClassLoader: searching for: OpenAL64 AL lib: (II) alc_initconfig: Supported backends: mmdevapi, dsound, winmm, null, wave AL lib: (II) GetConfigValue: Key general:disable-cpu-exts not found AL lib: (II) FillCPUCaps: Got caps: SSE AL lib: (II) GetConfigValue: Key general:rt-prio not found AL lib: (II) GetConfigValue: Key general:resampler not found AL lib: (II) GetConfigValue: Key general:trap-al-error not found AL lib: (II) GetConfigValue: Key general:trap-alc-error not found AL lib: (II) GetConfigValue: Key reverb:boost not found AL lib: (II) GetConfigValue: Key reverb:emulate-eax not found AL lib: (II) GetConfigValue: Key general:drivers not found [21:01:08.239] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String) AL lib: (II) MMDevApiMsgProc: Starting message thread AL lib: (II) alc_initconfig: Initialized backend "mmdevapi" AL lib: (II) alc_initconfig: Added "mmdevapi" for playback AL lib: (II) alc_initconfig: Initialized backend "dsound" AL lib: (II) alc_initconfig: Added "dsound" for capture AL lib: (II) GetConfigValue: Key general:excludefx not found AL lib: (II) GetConfigValue: Key general:default-reverb not found AL lib: (II) GetConfigValue: Key general:channels not found AL lib: (II) GetConfigValue: Key general:sample-type not found AL lib: (II) GetConfigValue: Key general:format not found AL lib: (II) GetConfigValue: Key general:frequency not found AL lib: (II) GetConfigValue: Key general:periods not found AL lib: (II) GetConfigValue: Key general:period_size not found AL lib: (II) GetConfigValue: Key general:sources not found AL lib: (II) GetConfigValue: Key general:slots not found AL lib: (II) GetConfigValue: Key general:sends not found AL lib: (II) GetConfigValue: Key general:cf_level not found AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (II) GetConfigValue: Key general:channels not found AL lib: (II) GetConfigValue: Key general:sample-type not found AL lib: (II) GetConfigValue: Key general:format not found AL lib: (II) GetConfigValue: Key general:frequency not found AL lib: (II) GetConfigValue: Key general:periods not found AL lib: (II) GetConfigValue: Key general:period_size not found AL lib: (II) GetConfigValue: Key general:sources not found AL lib: (II) GetConfigValue: Key general:slots not found AL lib: (II) GetConfigValue: Key general:sends not found AL lib: (II) GetConfigValue: Key general:cf_level not found AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (II) MMDevApiMsgProc: Starting message loop [21:01:08.242] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String) [21:01:08.242] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String) [21:01:08.250] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] getPathFromClassLoader: searching for: lwjgl [21:01:08.250] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String) [21:01:08.252] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String) [21:01:08.252] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String) [21:01:08.276] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found 3 OpenAL paths [21:01:08.277] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll' [21:01:08.282] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found OpenAL at 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll' [21:01:08.348] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll: Could not open ALC device [21:01:08.349] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll' [21:01:08.350] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll: Could not load OpenAL library (126) [21:01:08.351] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'OpenAL64.dll' [21:01:08.357] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found OpenAL at 'OpenAL64.dll' [21:01:08.360] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load OpenAL64.dll: Could not open ALC device [21:01:08.362] [Thread-3/ERROR]: Error in class 'LibraryLWJGLOpenAL' [21:01:08.363] [Thread-3/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [21:01:08.363] [Thread-3/WARN]: ERROR MESSAGE: [21:01:08.363] [Thread-3/INFO]: Could not locate OpenAL library. [21:01:08.363] [Thread-3/WARN]: STACK TRACE: [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [21:01:08.364] [Thread-3/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [21:01:08.598] [Sound Library Loader/WARN]: ERROR MESSAGE: [21:01:08.599] [Sound Library Loader/INFO]: Could not locate OpenAL library. [21:01:08.599] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:01:08.936] [Thread-5/INFO]: Switching to No Sound [21:01:08.938] [Thread-5/INFO]: (Silent Mode) [21:01:09.212] [Sound Library Loader/INFO]: Sound engine started [21:01:28.017] [Client thread/INFO]: Created: 1024x512 textures-atlas [21:01:34.657] [Client thread/INFO]: [STDOUT]@.(NarratorWindows.java:20): Narrator library for x64 successfully loaded [21:01:39.821] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel d8c5b63b-c0f9-4858-8689-ab8f92918a44 [21:01:40.861] [Client thread/DEBUG]: Removed channel d8c5b63b-c0f9-4858-8689-ab8f92918a44 because it's not playing anymore [21:01:40.894] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel 558503eb-5f3b-4f9e-a925-f13464f9493a [21:01:41.960] [Client thread/DEBUG]: Removed channel 558503eb-5f3b-4f9e-a925-f13464f9493a because it's not playing anymore [21:01:41.993] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 730fee9b-fcfd-4261-a427-ce33b23d8dcb [21:01:43.028] [Client thread/DEBUG]: Removed channel 730fee9b-fcfd-4261-a427-ce33b23d8dcb because it's not playing anymore [21:02:04.899] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 89e96207-569a-4b2e-9760-a3cceacebd50 [21:02:05.865] [Client thread/DEBUG]: Removed channel 89e96207-569a-4b2e-9760-a3cceacebd50 because it's not playing anymore [21:02:23.418] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu2 for event minecraft:music.menu as channel a78416a6-5d39-4bef-ac14-5092f42eb20d [21:02:24.351] [Client thread/DEBUG]: Removed channel a78416a6-5d39-4bef-ac14-5092f42eb20d because it's not playing anymore [21:02:31.051] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu3 for event minecraft:music.menu as channel 2905b576-5eb4-4059-a7e8-83dd15f314c9 [21:02:32.017] [Client thread/DEBUG]: Removed channel 2905b576-5eb4-4059-a7e8-83dd15f314c9 because it's not playing anymore [21:02:44.351] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu3 for event minecraft:music.menu as channel ae31f3f9-fa8b-43a8-8feb-635fc79b3ba1 [21:02:45.317] [Client thread/DEBUG]: Removed channel ae31f3f9-fa8b-43a8-8feb-635fc79b3ba1 because it's not playing anymore [21:03:00.152] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 271cec83-88d6-4d8e-a7ac-671891e4a219 [21:03:01.122] [Client thread/DEBUG]: Removed channel 271cec83-88d6-4d8e-a7ac-671891e4a219 because it's not playing anymore [21:03:20.110] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel b37436b6-ea17-4a68-a2ac-8f704d664e73 [21:03:20.141] [Client thread/INFO]: Stopping! [21:03:20.147] [Client thread/INFO]: SoundSystem shutting down... [21:03:20.348] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com Could not locate symbol glEnableClientStateiEXT Could not locate symbol glDisableClientStateiEXT Could not locate symbol glGetFloati_vEXT Could not locate symbol glGetDoublei_vEXT Could not locate symbol glGetPointeri_vEXTNote that the 3 failures after each instance of "getPathFromClassLoader: searching for:" happen even when audio works successfully - it's likely a platform thing. Additionally, "Could not locate symbol" at the bottom also occurs each time. Finally, note that C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll does not exist and never should exist - the "Could not load OpenAL library" message from it probably is a red herring; the earlier Could not open ALC device and "MMDevApiOpenPlayback: Device init failed: 0x80004005" are probably more useful.
On further inspection,
here's the code that generates that error. Note that 0x80004005 is a completely useless error code; it just represents E_FAIL which means "Unspecified failure".A successful OpenAL startup on my machine looks like this, for reference:
AL lib: (II) alc_initconfig: Supported backends: mmdevapi, dsound, winmm, null, wave AL lib: (II) GetConfigValue: Key general:disable-cpu-exts not found AL lib: (II) FillCPUCaps: Got caps: SSE AL lib: (II) GetConfigValue: Key general:rt-prio not found AL lib: (II) GetConfigValue: Key general:resampler not found AL lib: (II) GetConfigValue: Key general:trap-al-error not found AL lib: (II) GetConfigValue: Key general:trap-alc-error not found AL lib: (II) GetConfigValue: Key reverb:boost not found AL lib: (II) GetConfigValue: Key reverb:emulate-eax not found AL lib: (II) GetConfigValue: Key general:drivers not found AL lib: (II) MMDevApiMsgProc: Starting message thread AL lib: (II) MMDevApiMsgProc: Starting message loop AL lib: (II) alc_initconfig: Initialized backend "mmdevapi" AL lib: (II) alc_initconfig: Added "mmdevapi" for playback AL lib: (II) alc_initconfig: Initialized backend "dsound" AL lib: (II) alc_initconfig: Added "dsound" for capture AL lib: (II) GetConfigValue: Key general:excludefx not found AL lib: (II) GetConfigValue: Key general:default-reverb not found AL lib: (II) GetConfigValue: Key general:channels not found AL lib: (II) GetConfigValue: Key general:sample-type not found AL lib: (II) GetConfigValue: Key general:format not found AL lib: (II) GetConfigValue: Key general:frequency not found AL lib: (II) GetConfigValue: Key general:periods not found AL lib: (II) GetConfigValue: Key general:period_size not found AL lib: (II) GetConfigValue: Key general:sources not found AL lib: (II) GetConfigValue: Key general:slots not found AL lib: (II) GetConfigValue: Key general:sends not found AL lib: (II) GetConfigValue: Key general:cf_level not found AL lib: (II) MMDevApiMsgProc: Got message 1024 AL lib: (II) alcOpenDevice: Created device 0000000025070090, "Speakers (High Definition Audio Device)" AL lib: (II) UpdateDeviceParams: Pre-reset: Stereo, Float, 44100hz, 1024 update size x4 AL lib: (II) MMDevApiMsgProc: Got message 1025 AL lib: (II) UpdateDeviceParams: Post-reset: Stereo, Float, 44100hz, 896 update size x4 AL lib: (II) GetConfigValue: Key general:layout_stereo not found AL lib: (II) GetConfigValue: Key general:layout not found AL lib: (II) GetConfigValue: Key general:hrtf not found AL lib: (II) UpdateDeviceParams: HRTF disabled AL lib: (II) UpdateDeviceParams: BS2B disabled AL lib: (II) GetConfigValue: Key general:wide-stereo not found AL lib: (II) MMDevApiMsgProc: Got message 1026 AL lib: (II) alcCreateContext: Created context 0000000025088450
I would suggest having Minecraft detect when this happens, and try to restart OpenAL. If it fails multiple times, then it should force a no sound mode. At minimum, a message should be displayed on the title screen in some way, advising the user to use F3+T to reload the sound engine.
MC does attempt to detect this happening in SoundManager, but the sound is loaded in a separate thread from which the catch statement happens. Thread.setUncaughtExceptionHandler should be used instead. Even then, that handler only logs an error and mutes audio; for the general user this behavior isn't entirely obvious ("Why did my game just mute itself‽") although (IIRC) doing that does reload the sound engine when it's unmuted.
MC also has a custom SoundSystemLogger (also declared in SoundManager); that could be used to identify such errors as well.
Occasionally when resources are loaded, OpenAL fails to start and there is no sound. Generally it works fine, but very rarely it fails.
In that case, it switches to no-sound version.
This is a game log from when it failed to start:[09:46:32] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:32] [Thread-6/INFO]: Initializing LWJGL OpenAL [09:46:32] [Thread-6/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 [09:46:32] [Thread-6/ERROR]: Error in class 'LibraryLWJGLOpenAL' [09:46:32] [Thread-6/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [09:46:32] [Thread-6/WARN]: ERROR MESSAGE: [09:46:32] [Thread-6/INFO]: Could not locate OpenAL library. [09:46:32] [Thread-6/WARN]: STACK TRACE: [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [09:46:32] [Thread-6/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [09:46:32] [Thread-6/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [09:46:33] [Sound Library Loader/WARN]: ERROR MESSAGE: [09:46:33] [Sound Library Loader/INFO]: Could not locate OpenAL library. [09:46:33] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:33] [Thread-8/INFO]: Switching to No Sound [09:46:33] [Thread-8/INFO]: (Silent Mode)A second reproduction with a debug log4j config, and with -Dorg.lwjgl.util.Debug=true in the launcher args, and with the system environment variable ALSOFT_LOGLEVEL set to 3, gives this:
[21:00:54.655] [Client thread/INFO]: Setting user: pokechu22 [21:00:54.662] [Client thread/DEBUG]: (Session ID is token:<censored>) [21:01:01.502] [Client thread/INFO]: Loaded 482 advancements [21:01:02.371] [Client thread/INFO]: LWJGL Version: 2.9.4 [21:01:02.517] [Client thread/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Initial mode: 1366 x 768 x 32 @60Hz [21:01:02.826] [Client thread/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] MemoryUtil Accessor: AccessorUnsafe [21:01:03.520] [Client thread/INFO]: Reloading ResourceManager: Default, SoundDemo [21:01:07.891] [Client thread/DEBUG]: Replaced sound event location minecraft:music.creative [21:01:07.894] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.creative' to registry [21:01:07.910] [Client thread/DEBUG]: Replaced sound event location minecraft:music.credits [21:01:07.911] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.credits' to registry [21:01:07.914] [Client thread/DEBUG]: Replaced sound event location minecraft:music.dragon [21:01:07.914] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.dragon' to registry [21:01:07.917] [Client thread/DEBUG]: Replaced sound event location minecraft:music.end [21:01:07.917] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.end' to registry [21:01:07.919] [Client thread/DEBUG]: Replaced sound event location minecraft:music.game [21:01:07.920] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.game' to registry [21:01:07.937] [Client thread/DEBUG]: Replaced sound event location minecraft:music.menu [21:01:07.937] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.menu' to registry [21:01:07.942] [Client thread/DEBUG]: Replaced sound event location minecraft:music.nether [21:01:07.943] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.nether' to registry [21:01:07.955] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.hurt_drown [21:01:07.958] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.hurt_on_fire [21:01:07.988] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:01:08.221] [Thread-3/INFO]: Initializing LWJGL OpenAL [21:01:08.225] [Thread-3/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [21:01:08.236] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] getPathFromClassLoader: searching for: OpenAL64 AL lib: (II) alc_initconfig: Supported backends: mmdevapi, dsound, winmm, null, wave AL lib: (II) GetConfigValue: Key general:disable-cpu-exts not found AL lib: (II) FillCPUCaps: Got caps: SSE AL lib: (II) GetConfigValue: Key general:rt-prio not found AL lib: (II) GetConfigValue: Key general:resampler not found AL lib: (II) GetConfigValue: Key general:trap-al-error not found AL lib: (II) GetConfigValue: Key general:trap-alc-error not found AL lib: (II) GetConfigValue: Key reverb:boost not found AL lib: (II) GetConfigValue: Key reverb:emulate-eax not found AL lib: (II) GetConfigValue: Key general:drivers not found [21:01:08.239] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String) AL lib: (II) MMDevApiMsgProc: Starting message thread AL lib: (II) alc_initconfig: Initialized backend "mmdevapi" AL lib: (II) alc_initconfig: Added "mmdevapi" for playback AL lib: (II) alc_initconfig: Initialized backend "dsound" AL lib: (II) alc_initconfig: Added "dsound" for capture AL lib: (II) GetConfigValue: Key general:excludefx not found AL lib: (II) GetConfigValue: Key general:default-reverb not found AL lib: (II) GetConfigValue: Key general:channels not found AL lib: (II) GetConfigValue: Key general:sample-type not found AL lib: (II) GetConfigValue: Key general:format not found AL lib: (II) GetConfigValue: Key general:frequency not found AL lib: (II) GetConfigValue: Key general:periods not found AL lib: (II) GetConfigValue: Key general:period_size not found AL lib: (II) GetConfigValue: Key general:sources not found AL lib: (II) GetConfigValue: Key general:slots not found AL lib: (II) GetConfigValue: Key general:sends not found AL lib: (II) GetConfigValue: Key general:cf_level not found AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (II) GetConfigValue: Key general:channels not found AL lib: (II) GetConfigValue: Key general:sample-type not found AL lib: (II) GetConfigValue: Key general:format not found AL lib: (II) GetConfigValue: Key general:frequency not found AL lib: (II) GetConfigValue: Key general:periods not found AL lib: (II) GetConfigValue: Key general:period_size not found AL lib: (II) GetConfigValue: Key general:sources not found AL lib: (II) GetConfigValue: Key general:slots not found AL lib: (II) GetConfigValue: Key general:sends not found AL lib: (II) GetConfigValue: Key general:cf_level not found AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (II) MMDevApiMsgProc: Starting message loop [21:01:08.242] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String) [21:01:08.242] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String) [21:01:08.250] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] getPathFromClassLoader: searching for: lwjgl [21:01:08.250] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String) [21:01:08.252] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String) [21:01:08.252] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String) [21:01:08.276] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found 3 OpenAL paths [21:01:08.277] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll' [21:01:08.282] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found OpenAL at 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll' [21:01:08.348] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll: Could not open ALC device [21:01:08.349] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll' [21:01:08.350] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll: Could not load OpenAL library (126) [21:01:08.351] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'OpenAL64.dll' [21:01:08.357] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found OpenAL at 'OpenAL64.dll' [21:01:08.360] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load OpenAL64.dll: Could not open ALC device [21:01:08.362] [Thread-3/ERROR]: Error in class 'LibraryLWJGLOpenAL' [21:01:08.363] [Thread-3/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [21:01:08.363] [Thread-3/WARN]: ERROR MESSAGE: [21:01:08.363] [Thread-3/INFO]: Could not locate OpenAL library. [21:01:08.363] [Thread-3/WARN]: STACK TRACE: [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [21:01:08.364] [Thread-3/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [21:01:08.598] [Sound Library Loader/WARN]: ERROR MESSAGE: [21:01:08.599] [Sound Library Loader/INFO]: Could not locate OpenAL library. [21:01:08.599] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:01:08.936] [Thread-5/INFO]: Switching to No Sound [21:01:08.938] [Thread-5/INFO]: (Silent Mode) [21:01:09.212] [Sound Library Loader/INFO]: Sound engine started [21:01:28.017] [Client thread/INFO]: Created: 1024x512 textures-atlas [21:01:34.657] [Client thread/INFO]: [STDOUT]@.(NarratorWindows.java:20): Narrator library for x64 successfully loaded [21:01:39.821] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel d8c5b63b-c0f9-4858-8689-ab8f92918a44 [21:01:40.861] [Client thread/DEBUG]: Removed channel d8c5b63b-c0f9-4858-8689-ab8f92918a44 because it's not playing anymore [21:01:40.894] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel 558503eb-5f3b-4f9e-a925-f13464f9493a [21:01:41.960] [Client thread/DEBUG]: Removed channel 558503eb-5f3b-4f9e-a925-f13464f9493a because it's not playing anymore [21:01:41.993] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 730fee9b-fcfd-4261-a427-ce33b23d8dcb [21:01:43.028] [Client thread/DEBUG]: Removed channel 730fee9b-fcfd-4261-a427-ce33b23d8dcb because it's not playing anymore [21:02:04.899] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 89e96207-569a-4b2e-9760-a3cceacebd50 [21:02:05.865] [Client thread/DEBUG]: Removed channel 89e96207-569a-4b2e-9760-a3cceacebd50 because it's not playing anymore [21:02:23.418] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu2 for event minecraft:music.menu as channel a78416a6-5d39-4bef-ac14-5092f42eb20d [21:02:24.351] [Client thread/DEBUG]: Removed channel a78416a6-5d39-4bef-ac14-5092f42eb20d because it's not playing anymore [21:02:31.051] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu3 for event minecraft:music.menu as channel 2905b576-5eb4-4059-a7e8-83dd15f314c9 [21:02:32.017] [Client thread/DEBUG]: Removed channel 2905b576-5eb4-4059-a7e8-83dd15f314c9 because it's not playing anymore [21:02:44.351] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu3 for event minecraft:music.menu as channel ae31f3f9-fa8b-43a8-8feb-635fc79b3ba1 [21:02:45.317] [Client thread/DEBUG]: Removed channel ae31f3f9-fa8b-43a8-8feb-635fc79b3ba1 because it's not playing anymore [21:03:00.152] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 271cec83-88d6-4d8e-a7ac-671891e4a219 [21:03:01.122] [Client thread/DEBUG]: Removed channel 271cec83-88d6-4d8e-a7ac-671891e4a219 because it's not playing anymore [21:03:20.110] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel b37436b6-ea17-4a68-a2ac-8f704d664e73 [21:03:20.141] [Client thread/INFO]: Stopping! [21:03:20.147] [Client thread/INFO]: SoundSystem shutting down... [21:03:20.348] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com Could not locate symbol glEnableClientStateiEXT Could not locate symbol glDisableClientStateiEXT Could not locate symbol glGetFloati_vEXT Could not locate symbol glGetDoublei_vEXT Could not locate symbol glGetPointeri_vEXTNote that the 3 failures after each instance of "getPathFromClassLoader: searching for:" happen even when audio works successfully - it's likely a platform thing. Additionally, "Could not locate symbol" at the bottom also occurs each time. Finally, note that C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll does not exist and never should exist (as it is only supposed to be located in the temporary natives folder) - the "Could not load OpenAL library" message from it probably is a red herring; the earlier "Could not open ALC device" and "MMDevApiOpenPlayback: Device init failed: 0x80004005" are probably more useful. Also, note that 0x80004005 is a meaningless error code; it just represents E_FAIL which means "Unspecified failure".
After asking the OpenAL mailing list for additional information, it turns out that this is a fairly old OpenAL bug, which was fixed in OpenAL Soft version 1.16. Minecraft is using version 1.15.1 (as LWJGL 2 uses it). This can be fixed by updating OpenAL, either by migrating to LWJGL 3, or just directly updating the OpenAL dll using the one from LWJGL 3 on LWJGL 2.
I would suggest having Minecraft detect when this happens, and try to restart OpenAL. If it fails multiple times, then it should force a no sound mode. At minimum, a message should be displayed on the title screen in some way, advising the user to use F3+T to reload the sound engine.
MC does attempt to detect this happening in SoundManager, but the sound is loaded in a separate thread from which the catch statement happens. Thread.setUncaughtExceptionHandler should be used instead. Even then, that handler only logs an error and mutes audio; for the general user this behavior isn't entirely obvious ("Why did my game just mute itself‽") although (IIRC) doing that does reload the sound engine when it's unmuted.
MC also has a custom SoundSystemLogger (also declared in SoundManager); that could be used to identify such errors as well.
Experienced on Windows Vista, 7, 8, and 10; Java 6, 7, and 8; seems to be non-specific.
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
WorkaroundIf you experience this bug, you can press F3+T while ingame to reload the sound engine, which should fix it temporarily.
If the bug persists for an extended period of time, you should instead contact 💬 Community Support as it is likely a driver issue or another configuration issue on your end.
Occasionally when resources are loaded, OpenAL fails to start and there is no sound. Generally it works fine, but very rarely it fails.
In that case, it switches to no-sound version.
This is a game log from when it failed to start:[09:46:32] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:32] [Thread-6/INFO]: Initializing LWJGL OpenAL [09:46:32] [Thread-6/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 [09:46:32] [Thread-6/ERROR]: Error in class 'LibraryLWJGLOpenAL' [09:46:32] [Thread-6/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [09:46:32] [Thread-6/WARN]: ERROR MESSAGE: [09:46:32] [Thread-6/INFO]: Could not locate OpenAL library. [09:46:32] [Thread-6/WARN]: STACK TRACE: [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [09:46:32] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [09:46:32] [Thread-6/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [09:46:32] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [09:46:32] [Thread-6/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [09:46:33] [Sound Library Loader/WARN]: ERROR MESSAGE: [09:46:33] [Sound Library Loader/INFO]: Could not locate OpenAL library. [09:46:33] [Sound Library Loader/INFO]: Starting up SoundSystem... [09:46:33] [Thread-8/INFO]: Switching to No Sound [09:46:33] [Thread-8/INFO]: (Silent Mode)A second reproduction with a debug log4j config, and with -Dorg.lwjgl.util.Debug=true in the launcher args, and with the system environment variable ALSOFT_LOGLEVEL set to 3, gives this:
[21:00:54.655] [Client thread/INFO]: Setting user: pokechu22 [21:00:54.662] [Client thread/DEBUG]: (Session ID is token:<censored>) [21:01:01.502] [Client thread/INFO]: Loaded 482 advancements [21:01:02.371] [Client thread/INFO]: LWJGL Version: 2.9.4 [21:01:02.517] [Client thread/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Initial mode: 1366 x 768 x 32 @60Hz [21:01:02.826] [Client thread/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] MemoryUtil Accessor: AccessorUnsafe [21:01:03.520] [Client thread/INFO]: Reloading ResourceManager: Default, SoundDemo [21:01:07.891] [Client thread/DEBUG]: Replaced sound event location minecraft:music.creative [21:01:07.894] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.creative' to registry [21:01:07.910] [Client thread/DEBUG]: Replaced sound event location minecraft:music.credits [21:01:07.911] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.credits' to registry [21:01:07.914] [Client thread/DEBUG]: Replaced sound event location minecraft:music.dragon [21:01:07.914] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.dragon' to registry [21:01:07.917] [Client thread/DEBUG]: Replaced sound event location minecraft:music.end [21:01:07.917] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.end' to registry [21:01:07.919] [Client thread/DEBUG]: Replaced sound event location minecraft:music.game [21:01:07.920] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.game' to registry [21:01:07.937] [Client thread/DEBUG]: Replaced sound event location minecraft:music.menu [21:01:07.937] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.menu' to registry [21:01:07.942] [Client thread/DEBUG]: Replaced sound event location minecraft:music.nether [21:01:07.943] [Client thread/DEBUG]: Adding duplicate key 'minecraft:music.nether' to registry [21:01:07.955] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.hurt_drown [21:01:07.958] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.hurt_on_fire [21:01:07.988] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:01:08.221] [Thread-3/INFO]: Initializing LWJGL OpenAL [21:01:08.225] [Thread-3/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [21:01:08.236] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] getPathFromClassLoader: searching for: OpenAL64 AL lib: (II) alc_initconfig: Supported backends: mmdevapi, dsound, winmm, null, wave AL lib: (II) GetConfigValue: Key general:disable-cpu-exts not found AL lib: (II) FillCPUCaps: Got caps: SSE AL lib: (II) GetConfigValue: Key general:rt-prio not found AL lib: (II) GetConfigValue: Key general:resampler not found AL lib: (II) GetConfigValue: Key general:trap-al-error not found AL lib: (II) GetConfigValue: Key general:trap-alc-error not found AL lib: (II) GetConfigValue: Key reverb:boost not found AL lib: (II) GetConfigValue: Key reverb:emulate-eax not found AL lib: (II) GetConfigValue: Key general:drivers not found [21:01:08.239] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String) AL lib: (II) MMDevApiMsgProc: Starting message thread AL lib: (II) alc_initconfig: Initialized backend "mmdevapi" AL lib: (II) alc_initconfig: Added "mmdevapi" for playback AL lib: (II) alc_initconfig: Initialized backend "dsound" AL lib: (II) alc_initconfig: Added "dsound" for capture AL lib: (II) GetConfigValue: Key general:excludefx not found AL lib: (II) GetConfigValue: Key general:default-reverb not found AL lib: (II) GetConfigValue: Key general:channels not found AL lib: (II) GetConfigValue: Key general:sample-type not found AL lib: (II) GetConfigValue: Key general:format not found AL lib: (II) GetConfigValue: Key general:frequency not found AL lib: (II) GetConfigValue: Key general:periods not found AL lib: (II) GetConfigValue: Key general:period_size not found AL lib: (II) GetConfigValue: Key general:sources not found AL lib: (II) GetConfigValue: Key general:slots not found AL lib: (II) GetConfigValue: Key general:sends not found AL lib: (II) GetConfigValue: Key general:cf_level not found AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (II) GetConfigValue: Key general:channels not found AL lib: (II) GetConfigValue: Key general:sample-type not found AL lib: (II) GetConfigValue: Key general:format not found AL lib: (II) GetConfigValue: Key general:frequency not found AL lib: (II) GetConfigValue: Key general:periods not found AL lib: (II) GetConfigValue: Key general:period_size not found AL lib: (II) GetConfigValue: Key general:sources not found AL lib: (II) GetConfigValue: Key general:slots not found AL lib: (II) GetConfigValue: Key general:sends not found AL lib: (II) GetConfigValue: Key general:cf_level not found AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (II) MMDevApiMsgProc: Starting message loop [21:01:08.242] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String) [21:01:08.242] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String) [21:01:08.250] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] getPathFromClassLoader: searching for: lwjgl [21:01:08.250] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String) [21:01:08.252] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String) [21:01:08.252] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String) [21:01:08.276] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found 3 OpenAL paths [21:01:08.277] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll' [21:01:08.282] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found OpenAL at 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll' [21:01:08.348] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load C:\Users\Pokechu22\AppData\Roaming\.minecraft\versions\17w18b\17w18b-natives-12740868475532\OpenAL64.dll: Could not open ALC device [21:01:08.349] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll' [21:01:08.350] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll: Could not load OpenAL library (126) [21:01:08.351] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Testing 'OpenAL64.dll' [21:01:08.357] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Found OpenAL at 'OpenAL64.dll' [21:01:08.360] [Thread-3/INFO]: [STDERR]@.(LWJGLUtil.java:514): [LWJGL] Failed to load OpenAL64.dll: Could not open ALC device [21:01:08.362] [Thread-3/ERROR]: Error in class 'LibraryLWJGLOpenAL' [21:01:08.363] [Thread-3/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [21:01:08.363] [Thread-3/WARN]: ERROR MESSAGE: [21:01:08.363] [Thread-3/INFO]: Could not locate OpenAL library. [21:01:08.363] [Thread-3/WARN]: STACK TRACE: [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [21:01:08.364] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [21:01:08.364] [Thread-3/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [21:01:08.365] [Thread-3/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [21:01:08.598] [Sound Library Loader/WARN]: ERROR MESSAGE: [21:01:08.599] [Sound Library Loader/INFO]: Could not locate OpenAL library. [21:01:08.599] [Sound Library Loader/INFO]: Starting up SoundSystem... [21:01:08.936] [Thread-5/INFO]: Switching to No Sound [21:01:08.938] [Thread-5/INFO]: (Silent Mode) [21:01:09.212] [Sound Library Loader/INFO]: Sound engine started [21:01:28.017] [Client thread/INFO]: Created: 1024x512 textures-atlas [21:01:34.657] [Client thread/INFO]: [STDOUT]@.(NarratorWindows.java:20): Narrator library for x64 successfully loaded [21:01:39.821] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel d8c5b63b-c0f9-4858-8689-ab8f92918a44 [21:01:40.861] [Client thread/DEBUG]: Removed channel d8c5b63b-c0f9-4858-8689-ab8f92918a44 because it's not playing anymore [21:01:40.894] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel 558503eb-5f3b-4f9e-a925-f13464f9493a [21:01:41.960] [Client thread/DEBUG]: Removed channel 558503eb-5f3b-4f9e-a925-f13464f9493a because it's not playing anymore [21:01:41.993] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 730fee9b-fcfd-4261-a427-ce33b23d8dcb [21:01:43.028] [Client thread/DEBUG]: Removed channel 730fee9b-fcfd-4261-a427-ce33b23d8dcb because it's not playing anymore [21:02:04.899] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 89e96207-569a-4b2e-9760-a3cceacebd50 [21:02:05.865] [Client thread/DEBUG]: Removed channel 89e96207-569a-4b2e-9760-a3cceacebd50 because it's not playing anymore [21:02:23.418] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu2 for event minecraft:music.menu as channel a78416a6-5d39-4bef-ac14-5092f42eb20d [21:02:24.351] [Client thread/DEBUG]: Removed channel a78416a6-5d39-4bef-ac14-5092f42eb20d because it's not playing anymore [21:02:31.051] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu3 for event minecraft:music.menu as channel 2905b576-5eb4-4059-a7e8-83dd15f314c9 [21:02:32.017] [Client thread/DEBUG]: Removed channel 2905b576-5eb4-4059-a7e8-83dd15f314c9 because it's not playing anymore [21:02:44.351] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu3 for event minecraft:music.menu as channel ae31f3f9-fa8b-43a8-8feb-635fc79b3ba1 [21:02:45.317] [Client thread/DEBUG]: Removed channel ae31f3f9-fa8b-43a8-8feb-635fc79b3ba1 because it's not playing anymore [21:03:00.152] [Client thread/DEBUG]: Playing sound minecraft:music/menu/menu1 for event minecraft:music.menu as channel 271cec83-88d6-4d8e-a7ac-671891e4a219 [21:03:01.122] [Client thread/DEBUG]: Removed channel 271cec83-88d6-4d8e-a7ac-671891e4a219 because it's not playing anymore [21:03:20.110] [Client thread/DEBUG]: Playing sound minecraft:random/click for event minecraft:ui.button.click as channel b37436b6-ea17-4a68-a2ac-8f704d664e73 [21:03:20.141] [Client thread/INFO]: Stopping! [21:03:20.147] [Client thread/INFO]: SoundSystem shutting down... [21:03:20.348] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com Could not locate symbol glEnableClientStateiEXT Could not locate symbol glDisableClientStateiEXT Could not locate symbol glGetFloati_vEXT Could not locate symbol glGetDoublei_vEXT Could not locate symbol glGetPointeri_vEXTNote that the 3 failures after each instance of "getPathFromClassLoader: searching for:" happen even when audio works successfully - it's likely a platform thing. Additionally, "Could not locate symbol" at the bottom also occurs each time. Finally, note that C:\Users\Pokechu22\AppData\Roaming\.minecraft\OpenAL64.dll does not exist and never should exist (as it is only supposed to be located in the temporary natives folder) - the "Could not load OpenAL library" message from it probably is a red herring; the earlier "Could not open ALC device" and "MMDevApiOpenPlayback: Device init failed: 0x80004005" are probably more useful. Also, note that 0x80004005 is a meaningless error code; it just represents E_FAIL which means "Unspecified failure".
After asking the OpenAL mailing list for additional information, it turns out that this is a fairly old OpenAL bug, which was fixed in OpenAL Soft version 1.16. Minecraft is using version 1.15.1 (as LWJGL 2 uses it). This can be fixed by updating OpenAL, either by migrating to LWJGL 3, or just directly updating the OpenAL dll using the one from LWJGL 3 on LWJGL 2.
I would suggest having Minecraft detect when this happens, and try to restart OpenAL. If it fails multiple times, then it should force a no sound mode. At minimum, a message should be displayed on the title screen in some way, advising the user to use F3+T to reload the sound engine.
MC does attempt to detect this happening in SoundManager, but the sound is loaded in a separate thread from which the catch statement happens. Thread.setUncaughtExceptionHandler should be used instead. Even then, that handler only logs an error and mutes audio; for the general user this behavior isn't entirely obvious ("Why did my game just mute itself‽") although (IIRC) doing that does reload the sound engine when it's unmuted.
MC also has a custom SoundSystemLogger (also declared in SoundManager); that could be used to identify such errors as well.
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
Confirmed for
- 15w47a I was messing around with a bug where Minecraft crashed, then pressed "Play" and it printed the error message
Completely ignored arguments: [--nativeLauncherVersion, 286] [22:00:56] [Client thread/INFO]: Setting user: Marcono1234 [22:00:56] [Client thread/INFO]: (Session ID is token:###) [22:00:58] [Client thread/INFO]: LWJGL Version: 2.9.4 [22:00:58] [Client thread/INFO]: Reloading ResourceManager: Default [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:block.brewing_stand.brew [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:block.chorus_flower.death [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:block.chorus_flower.grow [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:enchant.thorns.hit [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:entity.guardian.thorns [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:entity.horse.eat [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.attack.crit [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.attack.knockback [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.attack.parry [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.attack.strong [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.attack.sweep [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:entity.player.attack.weak [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:entity.rabbit.attack [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:entity.shield.block [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:entity.shulker.ambient [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:entity.shulker.close [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:entity.shulker.death [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:entity.shulker.open [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:entity.shulker_bullet.hurt [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:entity.witch.ambient [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:entity.witch.death [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:entity.witch.drink [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:entity.witch.hurt [22:00:59] [Client thread/WARN]: Missing sound for event: minecraft:entity.witch.throw [22:00:59] [Sound Library Loader/INFO]: Starting up SoundSystem... [22:00:59] [Thread-5/INFO]: Initializing LWJGL OpenAL [22:00:59] [Thread-5/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 [22:00:59] [Thread-5/ERROR]: Error in class 'LibraryLWJGLOpenAL' [22:00:59] [Thread-5/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [22:00:59] [Thread-5/WARN]: ERROR MESSAGE: [22:00:59] [Thread-5/INFO]: Could not locate OpenAL library. [22:00:59] [Thread-5/WARN]: STACK TRACE: [22:00:59] [Thread-5/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [22:00:59] [Thread-5/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [22:00:59] [Thread-5/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [22:00:59] [Thread-5/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [22:00:59] [Thread-5/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [22:00:59] [Thread-5/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [22:00:59] [Thread-5/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [22:00:59] [Sound Library Loader/WARN]: ERROR MESSAGE: [22:00:59] [Sound Library Loader/INFO]: Could not locate OpenAL library. [22:00:59] [Sound Library Loader/INFO]: Starting up SoundSystem... [22:00:59] [Thread-7/INFO]: Switching to No Sound [22:00:59] [Thread-7/INFO]: (Silent Mode) [22:01:00] [Sound Library Loader/INFO]: Sound engine started [22:01:00] [Client thread/INFO]: Created: 1024x512 textures-atlas [22:01:01] [Client thread/ERROR]: Realms module missing [22:01:04] [Server thread/INFO]: Starting integrated minecraft server version 15w47a
---- Minecraft Crash Report ---- // Oops. Time: 18.11.15 22:04 Description: Manually triggered debug crash java.lang.Throwable at bbz.aw(SourceFile:1672) at bbz.s(SourceFile:1593) at bbz.as(SourceFile:941) at bbz.a(SourceFile:385) at net.minecraft.client.main.Main.main(SourceFile:122) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at bbz.aw(SourceFile:1672) -- Affected level -- Details: Level name: MpServer All players: 1 total; [bmf['Marcono1234'/3, l='MpServer', x=-1,90, y=63,00, z=-28,85]] Chunk stats: MultiplayerChunkCache: 625, 625 Level seed: 0 Level generator: ID 01 - flat, ver 0. Features enabled: false Level generator options: Level spawn location: World: (-861,4,485), Chunk: (at 3,0,5 in -54,30; contains blocks -864,0,480 to -849,255,495), Region: (-2,0; contains chunks -64,0 to -33,31, blocks -1024,0,0 to -513,255,511) Level time: 3194566 game time, 152 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false Forced entities: 14 total; [xx['Boat'/4, l='MpServer', x=-11,28, y=62,00, z=-21,91], xx['Boat'/5, l='MpServer', x=-8,50, y=61,69, z=-18,50], wp['entity.EnderCrystal.name'/6, l='MpServer', x=-32,50, y=104,00, z=-23,50], wp['entity.EnderCrystal.name'/7, l='MpServer', x=-41,50, y=92,00, z=0,50], wp['entity.EnderCrystal.name'/8, l='MpServer', x=-32,50, y=77,00, z=24,50], wp['entity.EnderCrystal.name'/9, l='MpServer', x=-11,50, y=83,00, z=-38,50], wp['entity.EnderCrystal.name'/10, l='MpServer', x=-11,50, y=86,00, z=39,50], wp['entity.EnderCrystal.name'/11, l='MpServer', x=12,50, y=80,00, z=-38,50], wp['entity.EnderCrystal.name'/12, l='MpServer', x=12,50, y=101,00, z=39,50], wq['Ender Dragon'/13, l='MpServer', x=6,54, y=89,67, z=-46,36], wp['entity.EnderCrystal.name'/22, l='MpServer', x=33,50, y=98,00, z=-23,50], wp['entity.EnderCrystal.name'/23, l='MpServer', x=42,50, y=89,00, z=0,50], wp['entity.EnderCrystal.name'/24, l='MpServer', x=33,50, y=95,00, z=24,50], bmf['Marcono1234'/3, l='MpServer', x=-1,90, y=63,00, z=-28,85]] Retry entities: 0 total; [] Server brand: vanilla Server type: Integrated singleplayer server Stacktrace: at bkg.a(SourceFile:363) at bbz.b(SourceFile:2493) at bbz.a(SourceFile:394) at net.minecraft.client.main.Main.main(SourceFile:122) -- System Details -- Details: Minecraft Version: 15w47a Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_25, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 165443576 bytes (157 MB) / 313442304 bytes (298 MB) up to 1060372480 bytes (1011 MB) JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 Launched Version: 15w47a LWJGL: 2.9.4 OpenGL: AMD Radeon HD 6800 Series GL version 4.5.13399 Compatibility Profile Context 15.200.1062.1004, ATI Technologies Inc. GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported. Using VBOs: Yes Is Modded: Probably not. Jar signature remains and client brand is untouched. Type: Client (map_client.txt) Resource Packs: Current Language: English (US) Profiler Position: N/A (disabled) CPU: 6x AMD Phenom(tm) II X6 1055T Processor
Strongly related reports:
Related reports:
duplicate of MC-9974
See MC-9974.
Your issue is the same as described in MC-9974, resolved as duplicate.
Duplicate of MC-9974.
This is a duplicate of MC-9974. If this only happens infrequently, you may be able to work around it by reloading the sound engine (and resource packs) ingame with F3+T.
The sound problem is MC-9974, which can happen whenever resources are reloaded.
I am not experiencing MC-9974, There is no indication of failure of any kind. The volume setting under options is at a normal level. But there is no sound. Takes several restarts to clear issue. Updated Java to newest release and no help. The sound issue seems to only have started when I installed the new launched. I deleted the old one as I chose the complete new install option.
This is not Resolved. Is no one else having this issue? If So how do I download the Old launcher?
I am not experiencing MC-9974, There is no indication of failure of any kind. The volume setting under options is at a normal level. But there is no sound. Takes several restarts to clear issue. Updated Java to newest release and no help. The sound issue seems to only have started when I installed the new launched. I deleted the old one as I chose the complete new install option.
Issue still exists. No error messages. One time it took 8 or 9 re-starts to get sound to work. Unfortunately I did the delete and replace option when I installed the new launcher.(the other option kept failing) I can't seem to find a place on the Mojang website that provides a download of the old launcher
This looks like MC-9974.
Thank you for your report!
However, this issue has been closed as a Duplicate of MC-9974.
It has been linked to this report. If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Is anyone still getting this issue in 1.11 or the 1.12 snapshots? I'm only getting MC-9974, where sounds sometimes don't initialize but can be fixed by F3+T.
This is probably MC-9974, then.
Thank you for your report!
However, this issue is a Duplicate of MC-9974 and will be closed accordingly.
It will be linked to this report. If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
From your description, this sounds like it may be a duplicate of MC-9974.
[19:48:08] [Thread-3/ERROR]: Error in class 'LibraryLWJGLOpenAL' [19:48:08] [Thread-3/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported. [19:48:08] [Thread-3/WARN]: ERROR MESSAGE: [19:48:08] [Thread-3/INFO]: Could not locate OpenAL library. [19:48:08] [Thread-3/WARN]: STACK TRACE: [19:48:08] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:156) [19:48:08] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:102) [19:48:08] [Thread-3/INFO]: org.lwjgl.openal.AL.create(AL.java:206) [19:48:08] [Thread-3/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164) [19:48:08] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576) [19:48:08] [Thread-3/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572) [19:48:08] [Thread-3/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121) [19:48:09] [Sound Library Loader/WARN]: ERROR MESSAGE: [19:48:09] [Sound Library Loader/INFO]: Could not locate OpenAL library. [19:48:09] [Sound Library Loader/INFO]: Starting up SoundSystem...
Relates to / caused by MC-9974
Are you running Minecraft on Mac?
Thank you for your report!
However, this issue is a Duplicate of MC-9974.
It has been linked to this report. If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Thank you for your report!
However, this issue is a Duplicate of MC-121276.
It has been linked to this report. If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.
Note that MC-121276 is a bug specific to the snapshot, and should be fixed in the next snapshot. The sound engine randomly failing to start (MC-9974, which is what F3+T fixed) actually should no longer be an issue due to the update to LWJGL 3.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
It's also possible you are experiencing MC-9974; this issue is fixed in the 1.13 development snapshots but still is a problem in 1.12.2.
Thank you for your report!
However, this issue has been closed as a Duplicate of MC-9974.
This issue has been resolved in 1.13. See MC-9974 for a possible workaround in 1.12.2.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki


Please force a crash by pressing F3 + C for 10 seconds while ingame and attach the crash report here.
Crash attached, but is it very usefull? Also, this glitch is rare, I had to launch Minecraft ~20 times for it to occur. I remember a Minecraft wiki post about a crash from a lwjgl error in 1.7.3, where Minecraft might crash if sound was turned off and on again because it failed to locate openAL, but that was fixed. Now if it fails, it doesn't try again.
Please try uptading LWJGL using this Tutorial.
That seems to have stopped it, because it didn't happen after 30 tries. I will have to see if it happens later though. While doing it, I learned that releasing alt in the launcher causes it to print out some gibberish if you ran it via the command line.
Resolving this ticket as invalid now, since an update of the LWJGL is scheduled for one of the next versions.
This doesn't look like its resolved. I'm seeing this error more than 50% of the time now. Recently switched to Win10. MC is v1.8.8 (vanilla). Launcher is 1.6.44
I still occasionally encounter this (but extremely rarely). Ingame you can do F3+S to reload the sound system IIRC, which lets you fix sounds. What might be nice is a message on the main menu saying "Failed to set up OpenAL; click here to try again", but I'm not sure how feasible that is.
Took over the confirmation from
MC-76815Could you please update the description as the important part seems to be
I am afraid you are currently mixing reports together that are related but not duplicates, for example
MC-20069describes this "Device init failed" bug whereas here only a comment contains these error messagesIt's still the same issue. The text in the original post was back with Minecraft 1.4.6, and evidently they changed the output. I'll put the log from the comment as the main log (I know when I've experienced it the log was like that).
The summary of
MC-79384is "No sound when maximizing the game whille launching" - maybe that's the key for reproducing this issue ?This sound reasonable. I always maximize Minecraft and I might regularly do it by double clicking the title bar. Although I cannot reproduce it on Windows 10 right now, because I can only maximize the window after some time (maybe the new gaming overlays of windows 10 are in the way … I don't know). But this may explain, why I have not encountered this error quite some time now; because I simply cannot maximize the window fast enough anymore.
Whatever the initialization of the sound library has to do with the window size though………
I can't remember if I've experienced it on windows 10. I feel like I have, but I can't say for sure.
Though also nowadays I use windowskey+Up rather than double clicking. Hm.
I'll go test on a windows 7 machine.
Confirmed for 16w03a
16w04a too.
检查OpenAL已安装
Check OpenAL has been installed
This My Startup Log:
[22:13:02] [Client thread/INFO]: Setting user: Tong [22:13:02] [Client thread/INFO]: (Session ID is token:{auth_access_token}:d3f27ed7-2329-4d4e-9cb6-c4361bfced1a) [22:13:08] [Client thread/INFO]: LWJGL Version: 2.9.4 [22:13:11] [Client thread/INFO]: Reloading ResourceManager: Default, PureBDcraft 16x MC19.zip [22:13:13] [Client thread/WARN]: Missing sound for event: minecraft:entity.snowman.ambient [22:13:13] [Sound Library Loader/INFO]: Starting up SoundSystem... [22:13:14] [Thread-4/INFO]: Initializing LWJGL OpenAL [22:13:14] [Thread-4/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [22:13:14] [Thread-4/INFO]: OpenAL initialized. [22:13:14] [Sound Library Loader/INFO]: Sound engine started [22:13:23] [Client thread/INFO]: Created: 1024x512 textures-atlas [22:18:10] [Client thread/INFO]: Stopping! [22:18:10] [Client thread/INFO]: SoundSystem shutting down... [22:18:10] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.comConfirmed for 1.9-pre4
I don't have those error messages, but I am experiencing similar issues. For me it appears strongly (if not entirely) linked to launching via Steam with the overlay enabled. I would like to be able to launch Minecraft with the overlay, especially since without it configuring my steam controller is a bit more of a pain.
@Joseph: The error messages are in the Game Output console after starting Minecraft itself, not in the Launcher console.
If you think there is a connection by starting it via Steam, please attach the Game Output console for a start via Steam and for a start the "classic" way.
Can confirm for 1.9.1:
Confirmed for 1.9.2
Confirmed for 1.9.2
AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005
[LWJGL] Failed to load OpenAL64.dll: Could not open ALC device
Confirmed for 1.9.3-pre3
Confirmed for vanilla 1.9.4 with debug logging enabled (was doing packet-related stuff with a custom server, but this happened before any connection to the custom server was made):
Nothing too interesting that's unique to the debug ones, but I do have milliseconds displayed, which might be useful.
Completely ignored arguments: [--nativeLauncherVersion, 301]
[18:54:02] [Client thread/INFO]: Setting user: robingravel
[18:54:04] [Client thread/INFO]: LWJGL Version: 2.9.4
[18:54:06] [Client thread/INFO]: Reloading ResourceManager: Default
[18:54:06] [Client thread/WARN]: Missing sound for event: minecraft:block.enchantment_table.use
[18:54:06] [Client thread/WARN]: Missing sound for event: minecraft:entity.polar_bear.ambient
[18:54:06] [Client thread/WARN]: Missing sound for event: minecraft:entity.polar_bear.baby_ambient
[18:54:06] [Client thread/WARN]: Missing sound for event: minecraft:entity.polar_bear.death
[18:54:06] [Client thread/WARN]: Missing sound for event: minecraft:entity.polar_bear.hurt
[18:54:06] [Client thread/WARN]: Missing sound for event: minecraft:entity.polar_bear.step
[18:54:06] [Client thread/WARN]: Missing sound for event: minecraft:entity.polar_bear.warning
[18:54:06] [Sound Library Loader/INFO]: Starting up SoundSystem...
[18:54:07] [Thread-5/INFO]: Initializing LWJGL OpenAL
[18:54:07] [Thread-5/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005
AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005
[18:54:07] [Thread-5/ERROR]: Error in class 'LibraryLWJGLOpenAL'
[18:54:07] [Thread-5/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported.
[18:54:07] [Thread-5/WARN]: ERROR MESSAGE:
[18:54:07] [Thread-5/INFO]: Could not locate OpenAL library.
[18:54:07] [Thread-5/WARN]: STACK TRACE:
[18:54:07] [Thread-5/INFO]: org.lwjgl.openal.AL.create(AL.java:156)
[18:54:07] [Thread-5/INFO]: org.lwjgl.openal.AL.create(AL.java:102)
[18:54:07] [Thread-5/INFO]: org.lwjgl.openal.AL.create(AL.java:206)
[18:54:07] [Thread-5/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164)
[18:54:07] [Thread-5/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576)
[18:54:07] [Thread-5/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572)
[18:54:07] [Thread-5/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121)
[18:54:07] [Sound Library Loader/WARN]: ERROR MESSAGE:
[18:54:07] [Sound Library Loader/INFO]: Could not locate OpenAL library.
[18:54:07] [Sound Library Loader/INFO]: Starting up SoundSystem...
[18:54:07] [Thread-7/INFO]: Switching to No Sound
[18:54:07] [Thread-7/INFO]: (Silent Mode)
[18:54:08] [Sound Library Loader/INFO]: Sound engine started
[18:54:10] [Client thread/INFO]: Created: 1024x512 textures-atlas
It happened to 16w20a.
I can confirm this. Happened both times I tried to start 16w21b, so I just use 16w20a now.
It also rarely (1/10) occurred in 1.8 and 1.7.
Confirming. For me, in 1.9.4 vanilla this happens about 90% of the time, i.e. it rarely does not happen.
Could you add Windows Vista as well?
It happened to 1.10.2 too.
[OptiFine] OptiFine_1.10.2_HD_U_C1
[OptiFine] Build: 20160630-123359
[OptiFine] OS: Windows 10 (amd64) version 10.0
[OptiFine] Java: 1.8.0_101, Oracle Corporation
[OptiFine] VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
[OptiFine] LWJGL: 2.9.4
[OptiFine] OpenGL: GeForce GTX 960/PCIe/SSE2, version 4.5.0 NVIDIA 368.69, NVIDIA Corporation
[OptiFine] OpenGL Version: 4.0
[OptiFine] Maximum texture size: 16384x16384
[OptiFine] Checking for new version
[Shaders] ShadersMod version: 2.4.12
[Shaders] OpenGL Version: 4.5.0 NVIDIA 368.69
[Shaders] Vendor: NVIDIA Corporation
[Shaders] Renderer: GeForce GTX 960/PCIe/SSE2
[Shaders] Capabilities: 2.0 2.1 3.0 3.2 4.0
[Shaders] GL_MAX_DRAW_BUFFERS: 8
[Shaders] GL_MAX_COLOR_ATTACHMENTS_EXT: 8
[Shaders] GL_MAX_TEXTURE_IMAGE_UNITS: 32
[Shaders] Load ShadersMod configuration.
[Shaders] Loaded shaderpack: SEUS
[19:41:21] [Sound Library Loader/INFO]: Starting up SoundSystem...
[19:41:21] [Thread-6/INFO]: Initializing LWJGL OpenAL
[19:41:21] [Thread-6/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005
AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005
[19:41:21] [Thread-6/ERROR]: Error in class 'LibraryLWJGLOpenAL'
[19:41:21] [Thread-6/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported.
[19:41:21] [Thread-6/WARN]: ERROR MESSAGE:
[19:41:21] [Thread-6/INFO]: Could not locate OpenAL library.
[19:41:21] [Thread-6/WARN]: STACK TRACE:
[19:41:21] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:156)
[19:41:21] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:102)
[19:41:21] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:206)
[19:41:21] [Thread-6/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164)
[19:41:21] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576)
[19:41:21] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572)
[19:41:21] [Thread-6/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121)
[OptiFine] Mipmap levels: 4
[OptiFine] Multitexture: false
[OptiFine] BetterGrass: Parsing default configuration optifine/bettergrass.properties
[19:41:22] [Sound Library Loader/WARN]: ERROR MESSAGE:
[19:41:22] [Sound Library Loader/INFO]: Could not locate OpenAL library.
[19:41:22] [Sound Library Loader/INFO]: Starting up SoundSystem...
[19:41:22] [Client thread/INFO]: Created: 512x512 textures-atlas
[Shaders] allocateTextureMap 4 512 512
[19:41:22] [Thread-8/INFO]: Switching to No Sound
[19:41:22] [Thread-8/INFO]: (Silent Mode)
[OptiFine] *** Reloading custom textures ***
[19:41:22] [Sound Library Loader/INFO]: Sound engine started
[19:41:24] [Client thread/INFO]: Stopping!
@Gerhard Pillow: While we can't accept reports for modded versions, that is the same issue as this one (and we've already confirmed it for 1.10.2). You can always workaround it in-game with F3+T (both vanilla and optifine).
According to
MC-105997this happens only after having applications like Discord/TeamSpeak open. Can anyone confirm that ?Cannot confirm it on my hardware at all anymore. Maybe new drivers/windows/Minecraft fixed the issue for me. Teamspeak running or not makes no difference.
No; teamspeak isn't required to reproduce this issue. I suspect that in some cases teamspeak might be able to cause it but it wouldn't be the only way. (Rather, I suspect it's a case of the person having discord or teamspeak open most of the times they launch the game, meaning that most of the time that they reproduce the issue discord or teamspeak is open).
I'll wait to see if I manage to reproduce this on my computer before saying it's fixed; this bug is always hard to reproduce when one is trying to. It may vary well vary by drivers/windows install.
I have no sound and didn't want to open a report if this is ongoing. Have opened and closed game multiple times over two days and nothing. Sorry if this is a repeat but cannot find out how to resolve this.
Tried again and sound is working but will watch this thread to see if others have problems or mine re-occurs.
Why sometimes, the game cannot locate OpenAL library in the first place?
That's why the game switches to no sound mode.
Confirmed in 16w36a
16w39a too.
Just happened to 16w40a.
Confirmed in 16w41a
Still happens in 16w42a
Confirmed in 16w43a
Confirmed in 16w44a
Confirmed in 1.11pre1
Confirmed in 16w50a
Still happened to 1.11.2
Confirmed in 1.12-pre2
Confirmed in 1.12
Please do not mark unreleased versions as affected.
You don't have access to them yet.
Well, I tried.
}xDDD
(Maybe shall be added as affected as soon as the release is out; probably already known it isn't fixable for release.)
(Love those rare, but funny moments here on Mojira
)
It seems that I can't use these commands of F3+T/S (for 10 seconds). How is that?
Also, this no-sound startup appears to happen over and over in my occasion and it isn't as rare as it should be. Is it related to the new version of the launcher?
If you're consistently getting this, rather than it randomly failing, then it's probably an issue with your actual sound setup - make sure you've got speakers enabled and unmuted, sound cables plugged in, the game is unmuted in the volume mixer, stuff like that. This issue specifically is for the random issue with OpenAL.
Also, note that F3 + T is just pressed; only F3 + C needs to be held (because the result of that is something you don't want to do accidently). If it's not working, you might need to use FN + F3 + T.
This problem happens every time on my MacOS Launcher. With no bin folder in the new launcher, I am unable to update LWJGL manually.
Marking as fixed. 17w43a updates LWJGL (and thus OpenAL), so the underlying issue should be fixed; I used a script to launch the game 116 times, and the OpenAL issue never happened.
Note that sounds are completely broken in 17w43a, but that's
MC-121276, and not this bug. OpenAL does start successfully each time, so that's a success.I'm having this problem in macOS 12.6, with a freshly installed vanilla launcher on a new machine account. I'm using only internal speakers, which work fine with other apps. It happens on every single run, not randomly. Here is the log file.
21:41:42 launcher Preparing to launch minecraft client for 1.12.2
21:41:42 launcher Checking installations.
21:41:42 launcher Minecraft client 1.12.2 is ready to start.
21:41:42 launcher Starting!
21:41:42 launcher Using default game log configuration client-1.12.xml (outputs XML)
21:41:43 bib Setting user: tntaws
21:41:45 bid Skipping bad option: lastServer:
21:41:45 bib LWJGL Version: 2.9.4
21:41:45 cev Reloading ResourceManager: Default
21:41:45 chm Starting up SoundSystem...
21:41:46 chm Initializing LWJGL OpenAL
21:41:46 chm (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
21:41:46 chm Error in class 'LibraryLWJGLOpenAL'
21:41:46 chm Unable to initialize OpenAL. Probable cause: OpenAL not supported.
21:41:46 chm ERROR MESSAGE:
21:41:46 chm Could not open ALC device
21:41:46 chm STACK TRACE:
21:41:46 chm org.lwjgl.openal.AL.init(AL.java:167)
21:41:46 chm org.lwjgl.openal.AL.create(AL.java:153)
21:41:46 chm org.lwjgl.openal.AL.create(AL.java:102)
21:41:46 chm org.lwjgl.openal.AL.create(AL.java:206)
21:41:46 chm paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164)
21:41:46 chm paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576)
21:41:46 chm paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572)
21:41:46 chm paulscode.sound.CommandThread.run(CommandThread.java:121)
21:41:46 chm ERROR MESSAGE:
21:41:46 chm Could not open ALC device
21:41:46 chm Starting up SoundSystem...
21:41:46 chm Switching to No Sound
21:41:46 chm (Silent Mode)
21:41:47 chm Sound engine started
21:41:47 cdp Created: 1024x512 textures-atlas
This issue has been marked fixed in 17w43a.
If it's happening every time, it's probably a configuration error on your end and not this specific bug; check 💬 community support (e.g. IRC).
It happened to me too since snapshot 18w01.
[14:48:44] [Client thread/INFO]: Setting user: robingravel
[14:48:47] [Client thread/WARN]: Skipping bad option: lastServer:
[14:48:47] [Client thread/INFO]: LWJGL Version: 3.1.2 build 29
[14:48:49] [Client thread/INFO]: Reloading ResourceManager: Default
[14:48:50] [Client thread/WARN]: Missing sound for event: minecraft:block.pumpkin.carve
[14:48:50] [Sound Library Loader/INFO]: Starting up SoundSystem...
[14:48:50] [Thread-2/INFO]: Initializing No Sound
[14:48:50] [Thread-2/INFO]: (Silent Mode)
[14:48:53] [Thread-2/INFO]: OpenAL initialized.
[14:48:53] [Sound Library Loader/INFO]: Sound engine started
[14:48:56] [Client thread/INFO]: Created: 1024x512 textures-atlas
[14:48:58] [Client thread/INFO]: Narrator library for x64 successfully loaded
[14:48:58] [Client thread/ERROR]: Realms module missing
[14:49:16] [Client thread/INFO]: Loaded 0 recipes
[14:49:16] [Client thread/INFO]: Loaded 0 advancements
[14:49:16] [Server thread/INFO]: Starting integrated minecraft server version 18w01a
[14:49:16] [Server thread/INFO]: Generating keypair
[14:49:16] [Server thread/INFO]: Reloading ResourceManager: Default
[14:49:17] [Server thread/INFO]: Loaded 466 recipes
[14:49:18] [Server thread/INFO]: Loaded 509 advancements
[14:49:18] [Server thread/INFO]: Preparing start region for level 0
[14:49:19] [Server thread/INFO]: Preparing spawn area: 0%
[14:49:20] [Server thread/INFO]: Preparing spawn area: 27%
[14:49:21] [Server thread/INFO]: Preparing spawn area: 73%
[14:49:22] [Server thread/INFO]: Changing view distance to 8, from 10
[14:49:25] [Server thread/INFO]: TextComponent{text='robingravel', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}[local:E:c8a8f2d8] logged in with entity id 297 at (439.8179094354087, 71.0, 1097.6689888719923)
[14:49:25] [Server thread/INFO]: robingravel joined the game
[14:49:28] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2484ms behind, skipping 49 tick(s)
[14:49:29] [Client thread/INFO]: Loaded 238 advancements
There isn't a AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005 in that so that's probably a different issue, but try launching with -Dorg.lwjgl.util.Debug=true in the JVM arguments (and also make sure you didn't mute the sound ingame since IIRC at one point that also enabled "no sound" mode)
https://minecraft.net/en-us/download/alternative get the old launcher so it fixes the problems.
The old launcher will not solve this problem. It is purely an issue with the library the game uses, which requires updating that library (as was done in 1.13).
I'm still having the same problems since last year, https://bugs.mojang.com/browse/MC-116891 I tried everything you name, different OS, launchers, soundcards, speakers, headphones, uninstall all java and reinstalling, uninstalling all audio drivers and reinstalling, this is crazy....
Are you running 1.13? If you're still running 1.12 or 1.11, then it'll still happen; the issue is only fixed (and can only be fixed due to the nature of the bug) when you update to 1.13.
Yeah I'm on the latest right now, i've had this problem since 1.9 last year I think, a very long time
That looks like a different issue, given that there isn't a "AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005"; try contacting [Community IRC Support](http://hopper.minecraft.net/help/technical-support-resources/) and they might be able to help you. (This is probably a driver issue of some sort)
I've tried on the Minecraft Forum's that it directed me to last year
https://www.minecraftforum.net/forums/support/java-edition-support/2814384-my-minecraft-has-no-sound-ive-tried-everything
this was my last resort, thanks for your time anyways, much appreciated x
I have finally found the cause of why my Minecraft sound wasn't working, turns out to be some critical missing files in my windows 10, so I recently reinstalled my windows 10 and started from scratch and my Minecraft is back to normal after a year of no sound, I made a mistake of thinking upgrading from Windows 7 would count as a reinstall just with a new OS a year ago but nope, thanks for all the effort though guys, much love xx