Sodium Reloaded (Unofficial)

Sodium Reloaded (Unofficial)

0 Downloads

INTEL_FRAMEBUFFER_BLIT_CRASH_WHEN_UNFOCUSED

x-yingcan-x opened this issue · 9 comments

commented

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

  1. Install Fabric, Fabric API, sodium.
  2. Launch your client.
  3. Minimize the game window
  4. Game crashes

Log File

latest.log

Crash Report

crash-2024-11-10_21.27.04-client.txt

commented

Isn't that a Minecraft Vanilla bug?

commented

last time, sodium crashes when tab out, i just thought its the same lol, my bad

commented

Isn't that a Minecraft Vanilla bug?

btw, is there anything mod to fix this?

commented

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.

commented

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

commented

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.

commented

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?

commented

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.