Iris Shaders

Iris Shaders

36M Downloads

Crash upon resource pack reload when joining a server with some custom resource packs and shaders enabled

ed522 opened this issue ยท 3 comments

commented

Minecraft Version

Minecraft 1.20.4

Iris Version

iris-mc1.20.4-1.6.17.jar

Sodium Version

sodium-fabric-0.5.8+mc1.20.4

Operating System

Ubuntu 22.04 with KDE

What is your GPU?

Radeon RX 6500 XT with amdgpu/MESA/amdvlk drivers installed

Java Version

OpenJDK 17

Reproduction Steps

  1. Enable some shaderpack (I used Complementary Reimagined)
  2. Join some server with a mandatory resource pack that says it "may be incompatible with Sodium" (e.g. Manacube). This seems to be triggered by modified shader include files.
  3. Crash due to segfault

If you disable shaders before joining (K), it doesn't crash (even if you re-enable them). However, reloading your resource packs with shaders loaded results in a crash.

Crash Report file and latest.log

https://github.com/IrisShaders/Iris/files/14413938/hs_err_pid23908.log
https://github.com/IrisShaders/Iris/files/14413945/latest.log

(I've attempted to redact personal info, tokens etc, please let me know if I missed something)

Additional context

I realize that Sodium says it may be incompatible, but it should at least handle it gracefully (disabling shaders or something). I know this is an Iris issue as removing it solves the issue entirely.

I was unable to locate the core dump, there was nothing in .minecraft or the game folder.

uname -a:

Linux linux-desktop 6.5.0-21-generic #21~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb  9 13:32:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
commented

This looks like a RadeonSI exclusive problem; have you tried RADV?

commented

I have the exact same error, also Radeon/Mesa

commented

Update: this also affects installations with default drivers, e.g. MESA/RADV, installations with OpenJDK 21 (JDK) and v1.21.1.

Additionally, this crash does not occur if the window is made invisible (minimized or otherwise) while the pack loads.