mojira.dev
MC-308533

JVM crash when two shaders fail to compile when using Vulkan

Offending fragment shader as well as a resource pack for reproduction is attached. The shader in question is the end portal effect except I replaced one instance of 1.5 with 2^32 (it does not do this if I replace it with ((2^32)-1).

OpenGL catches this error and unloads the resource pack, but if you have Vulkan selected as your preferred renderer, the JVM just dies.

I am aware replacing core shaders is unsupported, but a crash this intense seems like something worth looking into - it’s certainly a bit crunchier than MC-308237 which was fixed earlier in this snapshot cycle.

For invalid shaders like this: would it not make more sense to have a dedicated hardcoded fallback shader of some description (as is done with textures, models and glyphs) instead of unloading the game resources?

Attachments

Comments 1

Thank you for helping us improve Minecraft! We saved your files:

[media][media][media]

muzikbike

RogueLogix

Confirmed

Platform G

Important

Crash

26.2 Pre-Release 2

26.2 Pre-Release 3

Retrieved