How to Fix Sound Engine Crash
When OpenAL can't start, Minecraft turns sound off instead of crashing. What the sound log lines mean and how to get audio back after a device change.
Quick Fix
Search latest.log for SoundSystem or OpenAL, set Options, Music & Sound Options, Device to System Default and restart the game.
Error Message
java.lang.IllegalStateException: Unable to create OpenAL contextHow to Fix
Open latest.log and search for SoundSystem and OpenAL to see which of these happened.
Set Options, Music & Sound Options, Device to System Default, or to the output you actually use.
Reconnect the audio device. After Audio device was lost! the game reopens sound by itself, so a restart isn't needed.
Remove or update the resource pack or mod named in Unable to play unknown soundEvent.
Spread out noisy farms and machines if sounds cut out in one place.
Update your audio driver if no device opens at all.
To test another OpenAL build, start the game with -Dorg.lwjgl.openal.libname set to the full path of that library. LWJGL accepts an absolute path there.
Common Causes
- OpenAL couldn't open an audio device or create a context when the game started. The log shows Error starting SoundSystem. Turning off sounds & music, followed by IllegalStateException: Failed to open OpenAL device or Unable to create OpenAL context, and the game runs without sound.
- The audio output changed while you played, for example headphones were unplugged. The log says Audio device was lost! or System default audio device has changed!, and the game restarts its sound engine.
- A resource pack or mod plays a sound event that doesn't exist. The log shows Unable to play unknown soundEvent with its name, once per sound.
- Too many sounds play at once, for example next to a large farm. When every sound channel is busy, new sounds are skipped, and normal game builds don't log anything about it.
- A mod that works with sound crashed. There is then a crash report, and the stack trace under the error shows which mod was involved.
Diagnostic Steps
- Search latest.log for SoundSystem and OpenAL.
- Check the Device option under Music & Sound Options.
- Reconnect or change the audio device.
- Remove the pack or mod named in any unknown soundEvent line.
- Restart the game if sound is still off.
FAQ
What is OpenAL?
An audio API for positional sound. Minecraft plays every sound through OpenAL Soft, which comes with LWJGL.
Does a sound error crash Minecraft?
Not in vanilla. If the sound engine can't start, the game logs the error and runs without sound. When a crash report does mention sound, the stack trace shows which mod was involved.
Why do some sounds cut out when a lot is going on?
OpenAL has a limited number of sound channels. When all of them are busy, new sounds are skipped until one finishes.