I had Minecraft open for a while. After putting the computer into hibernation mode and turning it back on, the game printed out the following error message about once every 50 milliseconds.
There were so many of these errors in the launcher log, to the point where their time stamps lagged behind for several hours because the Minecraft launcher couldn't keep up. When I closed Minecraft, the logs kept going because they lagged behind that much. (The logs written to file didn't have any issue, just those displayed in the launcher log window, which means the launcher not keeping up with the logs is a launcher bug.)
Audio device was lost!
Error starting SoundSystem. Turning off sounds & music
java.lang.IllegalStateException: Failed to open OpenAL device
at dqi.b(SourceFile:264)
at dqi.a(SourceFile:151)
at fdf.h(SourceFile:112)
at fdf.a(SourceFile:103)
at fdf.a(SourceFile:234)
at fdi.a(SourceFile:253)
at dxo.q(SourceFile:1761)
at dxo.f(SourceFile:1086)
at dxo.e(SourceFile:733)
at net.minecraft.client.main.Main.main(SourceFile:238)
Currently it is unclear to me how the issue can be reproduced reliably. It might've been caused by some Windows issue where it might have thought a device was connected that actually wasn't connected.
The relevant log is
[media](60 MB uncompressed).
Observed: If the game fails to connect to some audio device, the game will print an error message every 50ms.
Expected: The error message should show up, but either only once, or only in larger time intervals (e.g. once every 30 seconds).
Reproduce:
Set the in-game audio device to your headset.
Enter the following commands:
/playsound minecraft:music.dragon voice @p
/weather thunder
Disable all audio devices connected to Windows.
[media]Notice that the game outputs spam to the logs at a rapid rate.
Linked issues
is duplicated by 3
relates to 2
Attachments
Comments 15
I can confirm this on 1.19.2. Once triggered, it makes it pretty much impossible to use the game log when developing data packs/resource packs, and the only way out seems to be to restart the entire game.
Hello, just want to comment that I also regularly experience this issue. I have a bluetooth headset as my sole audio output, so when I turn it off Minecraft starts spitting out this error. This is exceptionally bad when I leave Minecraft running in the background while I sleep, as it leads to very large log files. I've recently had 15, 9 , 8, and 6 GB files to purge from my drive, and just testing this last night produced another 600 MB file. I'd like to see a solution for this, as it's causing my computer active issues as drives fill up with log files.
Seems to be related to MC-265594, possibly not exactly the same.
Hi Greymagic27, I was sent here due to my issue being a duplicate of this issue MC-247421
from MC-265825. Since then, a ran some test. With no connected peripheral except ones that are built-in (laptop user). I get the lag caused by this Issue. But, connecting any peripheral such as: a mouse, a pair of speakers, or printer fixes the issue. Disconnecting the devices doesn't seem to cause this issue for me. However, when quitting the game even with the spam being gone still crashes with Error code -1073740791.
This Issues only happen to me after updating Widows, but rolling back the update to a known update that the game worked fine with doesn't fix the issue.
Further debugging:
Making sure using latest drivers (graphic, audio, etc) that doesn't break Windows.
I use separate instances of the Official Minecraft launcher for modded Minecraft (for safety in case a mod corrupts an instance).
Non-broken modded Minecraft instance uses launcher version 2.11.24-1.5.7 (doesn't seem to occur, or occurs not as often)
Official Vanilla Minecraft uses launcher version 2.11.24-1.3.7 (the issue occurs most of the time)
Uninstalling/Reinstalling Instances doesn't fix the issue.
The Following debugging occurs with all broken instances and Official Vanilla.
Launching/Running the game with all audio output devices disabled even ones that aren't connected also causes issue but doesn't spam, but with no lag.
Launching/Running the game with only one enabled audio device (wired headphones) doesn't cause the Issue.
Launching/Running the game with only one enabled audio device (built-in speakers) cause the Issue with no lag, but the output log looks like Minecraft is scanning all connected devices (non-audio), but doesn't infinitely do it and will eventually hit the audio device and the Issue stops. But causes the game to crash upon quitting (Error code -1073740791)
Launching/Running the game with only one enabled audio device (virtual speakers, Windows 11 built-in virtual desktop device) cause the Issue with no lag, but the output log looks like Minecraft is scanning all connected devices (non-audio) but does it infinitely. But causes the game to crash upon quitting (Error code -1073740791)
Launching/Running the game with only one enabled audio device (Bluetooth headphones) doesn't cause the Issue.
Launching/Running the game with all of these audio devices enabled, but with one connected cause the lag and the spam, probably caused by Minecraft constantly scanning for an audio device instead of using the computers default device.
Temporary fix (for those affected):
Disable all audio devices through settings > sound > (sound device here) > change Allow to Not Allow. Do this for all but the device you use for audio.
In my case I have updated Windows and the drivers as well.
I partially solve the audio and lag problem by raising and lowering the volume when I start the game. But the error code -1073740791 still appears at the end when close the game.
I don't usually have another app making sound while I play because it distracts me. I could try to see what happens if I start the game with some other application making sound.
Regarding the error "-1073740791", with the game lagging and not having any audio:
I have split this up from this report into MC-265594 as it seems to be a new issue that relates to this, but isn't a direct duplicate. If you're having this issue please refer to MC-265594 from now on and add any helpful information.
Okay. From now on I will go back to my original ticket. I will try to do more tests and investigate more about the error.
The issue with the log spam and lag has been resolved in 23w40a: if you're still experiencing issues with this version or newer with audio not loading, please see MC-265594. 🙂
I experienced similar behavior when my audio output device was seemingly randomly disconnected. I'm not sure if this is the same issue but the following was logged multiple times in my game output console.