Game crashes after input freeze triggered by rapid Alt+R presses
Closed this issue · 4 comments
Bug Description
I'm encountering a reproducible crash in Sodium that occurs after a specific sequence of input actions. The issue can be reliably reproduced with only Sodium installed.
I'm not entirely sure why pressing "Alt + R" sometimes triggers the crash. "Alt + R" is the hotkey I assigned in Litematica to toggle rendering on/off. Initially, I thought it was an issue with Litematica, but the problem persists even after completely uninstalling Litematica. I also tried deleting the config folder to reset all settings, yet the issue remains.
Environment:
Minecraft version: 1.21.8
Sodium version: sodium-fabric-0.7.2+mc1.21.8
Loader: Fabric 0.17.2
OS: Windows10
Java version: GraalVM 25+37.1
JVM arguments are as follows:
-Xmx4G -XX:+UseG1GC -XX:+AlwaysPreTouch -XX:+ParallelRefProcEnabled -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:+PerfDisableSharedMem --enable-native-access=ALL-UNNAMED
Reproduction Steps
- Launch Minecraft with only sodium-fabric-0.7.2+mc1.21.8 installed.
- Enter any world (singleplayer or multiplayer).
- Hold down the Alt key and rapidly press the R key multiple times.
- The game may freeze all keyboard and mouse input (the window remains responsive visually, but no input is processed).
- Use a system-level shortcut (e.g., Alt+Tab) to switch to another window, then switch back to Minecraft.
- The game immediately crashes.
Log File
Crash Report
The game crash did not generate a crash-report file—only a JVM log is available:
Google tells me that a few years ago people were having XBox Gamebar issues in Windows 10 and 11, and I see you're on an older version of Windows 10. Apparently Gamebar uses Windows + Alt + R for starting recording, so I'm curious if this problem stops if you turn off Gamebar?
Another possibility is I see Radeon Software Overlay uses Alt + R to pop up in fullscreen games, and you have an AMD APU with Radeon Graphics. Maybe Alt + R is causing the overlay to crash and take down Java with it? Apparently you should be able to disable this overlay in the Radeon Software app under general settings.
Is this possibly related to the other tab-out issue? #3226
Another possibility is I see Radeon Software Overlay uses Alt + R to pop up in fullscreen games, and you have an AMD APU with Radeon Graphics. Maybe Alt + R is causing the overlay to crash and take down Java with it? Apparently you should be able to disable this overlay in the Radeon Software app under general settings.
Yes, you're absolutely right—once I removed AMD's hotkeys, the crash issue no longer occurred.
Is this possibly related to the other tab-out issue? #3226
I'm not sure if this is related to the action of switching to other tabs—it's also possible that both issues just happen to cause crashes when switching back. So far, I haven't encountered a case where switching to another tab caused the game to crash without pressing "Alt + R." If I do encounter such a case in the future, I'll report it in that issue.