INTEL_FRAMEBUFFER_BLIT_CRASH_WHEN_UNFOCUSED
x-yingcan-x opened this issue · 9 comments
Bug Description
Game crashes when minimize the game window/tab out from fullscreen and only when doing so, no matter anything else you do.
Game won't crash if you just tab out but not minimize the window(when not fullscreen).
(Sorry, Discord is blocked in my region, so I don't have choice)
Reproduction Steps
- Install Fabric, Fabric API, sodium.
- Launch your client.
- Minimize the game window
- Game crashes
Log File
Crash Report
last time, sodium crashes when tab out, i just thought its the same lol, my bad
btw, is there anything mod to fix this?
I can assume that the issue you are experiencing is a bug with the new 1.21.2 feature — automatic FPS reduction when you minimize the game window. Please, check if the crash occurs in 1.21.1. Also, please, send the hs_err_pid file, if Minecraft creates one after the crash.
hs_err_pid18436.log
either AFK or minimize will crash the game and i have to choose one...
not happening on 1.21.1
maybe i should just report it
We already have the code to detect and workaround this. It would probably not be difficult to apply it to Mojang's code as well to avoid these crashes.
Wait, so it is the case that Sodium implemented an optimization in the last release, found a driver bug, patched the driver bug, and then Mojang encountered the exact same driver bug and hasn't fixed it?
Ah... Mojang changed it so that shaders aren't compiled before the framebuffer blit function is called. So we can't fallback to shaders on broken drivers since the loading screen will need blits. This is probably why they changed the code to no longer use shaders for basic blits in the first place.