mojira.dev
MC-76815

Initialization of OpenAL fails sometimes

The initialization of LWJGL OpenAL fails sometimes, with no recognizable pattern. Sometimes it occurs multiple times successively, sometimes it does not. In most cases restarting the games helps.

The first try, where it did not work:
[18:02:44] [Client thread/INFO]: Setting user: XXX
[18:02:44] [Client thread/INFO]: (Session ID is token:YYY)
[18:02:46] [Client thread/INFO]: LWJGL Version: 2.9.1
[18:02:46] [Client thread/INFO]: Reloading ResourceManager: Default
[18:02:47] [Sound Library Loader/INFO]: Starting up SoundSystem...
[18:02:47] [Thread-6/INFO]: Initializing LWJGL OpenAL
[18:02:47] [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
[18:02:47] [Thread-6/ERROR]: Error in class 'LibraryLWJGLOpenAL'
[18:02:47] [Thread-6/ERROR]: Unable to initialize OpenAL. Probable cause: OpenAL not supported.
[18:02:47] [Thread-6/WARN]: ERROR MESSAGE:
[18:02:47] [Thread-6/INFO]: Could not locate OpenAL library.
[18:02:47] [Thread-6/WARN]: STACK TRACE:
[18:02:47] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:151)
[18:02:47] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:102)
[18:02:47] [Thread-6/INFO]: org.lwjgl.openal.AL.create(AL.java:201)
[18:02:47] [Thread-6/INFO]: paulscode.sound.libraries.LibraryLWJGLOpenAL.init(LibraryLWJGLOpenAL.java:164)
[18:02:47] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576)
[18:02:47] [Thread-6/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572)
[18:02:47] [Thread-6/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121)
[18:02:47] [Sound Library Loader/WARN]: ERROR MESSAGE:
[18:02:47] [Sound Library Loader/INFO]: Could not locate OpenAL library.
[18:02:47] [Sound Library Loader/INFO]: Starting up SoundSystem...
[18:02:48] [Thread-8/INFO]: Switching to No Sound
[18:02:48] [Thread-8/INFO]: (Silent Mode)
[18:02:48] [Sound Library Loader/INFO]: Sound engine started
[18:02:48] [Client thread/INFO]: Created: 512x512 textures-atlas
[18:03:00] [Client thread/INFO]: Stopping!
[18:03:00] [Client thread/INFO]: SoundSystem shutting down...
[18:03:00] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

Closed the game and restarted it immediately (without closing the launcher or doing anything else):
[18:03:33] [Client thread/INFO]: Setting user: XXX
[18:03:34] [Client thread/INFO]: (Session ID is token:YYY)
[18:03:36] [Client thread/INFO]: LWJGL Version: 2.9.1
[18:03:36] [Client thread/INFO]: Reloading ResourceManager: Default
[18:03:36] [Sound Library Loader/INFO]: Starting up SoundSystem...
[18:03:37] [Thread-6/INFO]: Initializing LWJGL OpenAL
[18:03:37] [Thread-6/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
[18:03:37] [Thread-6/INFO]: OpenAL initialized.
[18:03:37] [Sound Library Loader/INFO]: Sound engine started
[18:03:38] [Client thread/INFO]: Created: 512x512 textures-atlas

This happens in like 30% of the starts.

I already deleted the whole .minecraft user directory, but the error still occurs regularly.

Related issues

Comments

kumasasa

This is a technical support issue; this site is for bug reports only. For technical support please use the Mojang Support Center.

migrated

There are bugs in the library Minecraft uses as sound system concerning loading OpenAL drivers with Windows, for example:
https://github.com/LWJGL/lwjgl/issues/95
which was fixed in LWJGL 2.9.3, while Minecraft still uses 2.9.1.

Similar OpenAL related problems in other games have been fixed by updating the Launcher:
http://forums.technicpack.net/topic/52825-sound-doesnt-always-seem-start/

Reopen the ticket and let it be handled by someone who knows the usage of the LWJGL library by Minecraft and may be able to isolate the problem more surely than your gut feeling. One possibility would be to forward LWJGLUtil.log to the minecraft log so the LWJGL messages can be examined.

kumasasa

Next 1.8.2-pre-something will have LWJGL 2.9.3, see last comment in MC-48219

migrated

If this happens, it could easily be fixed with F3+S in-game.

marcono1234

Confirmed for

  • 15w47a I was messing around with a bug where Minecraft crashed, then pressed "Play" and it printed the error message

Error message (15w47a)

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

Forced crash (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:

migrated

@@unknown: Ticket is yours.

marcono1234

Thank you for that honor but I do not really want it. I cannot reproduce it and also do not know the cause for it

migrated

Mustek confirmed it, he's got it now.

marcono1234

Alright thank you, do you mean he confimed it in the past or just right now?

migrated

Just right now, see the "Transitions Summary" tab.

migrated

I had it once in last week's snapshot. Difficult to reproduce.

marcono1234

@@unknown for me in the "Transitions Summary" tab only @unknown and @unknown are listed

migrated

Oops, history. Sorry.

migrated

(Unassigned)

Confirmed

Minecraft 1.8.1, Minecraft 15w47a

Retrieved