GTNewHorizons / GT-New-Horizons-Modpack

New Modpack with Gregtech, Thaumcraft and Witchery
https://www.gtnewhorizons.com/
Other
887 stars 276 forks source link

Crash when audio output source is changed #16478

Open TerraSleet opened 1 month ago

TerraSleet commented 1 month ago

Your GTNH Discord Username

terrasleet

Your Pack Version

GT_New_Horizons_2.6.1_Java_17-21

Your Server

SP

Java Version

Java 21

Type of Server

Single Player

Your Actions

I use wireless headphones for audio, which I occasionally turn off to preserve battery life. If I turn off my headphones with MC running, then I turn my headphones back on and unpause or try to load into a world, the game will crash with a NullPointerException. This seems to be caused by the audio output source being changed mid-game.

Crash Report

https://mclo.gs/ACnIPse

Final Checklist

TerraSleet commented 4 weeks ago

After a little more testing I've found the crash also reliably happens if I just leave the headphones turned off. The crash seems to be caused when there is no current audio output source.