Iris Shaders

Iris Shaders

38M Downloads

Consistent crash in several modpacks: GL_INVALID_OPERATION in glUniform(program not linked)

anagram3k opened this issue ยท 13 comments

commented

Minecraft Version

Minecraft 1.18.2

Iris Version

iris-mc1.18.2-1.4.2.jar

Sodium Version

sodium-fabric-mc1.18.2-0.4.1+build.15.jar

Operating System

Linux

What is your GPU?

AMD RX6700XT

Java Version

Oracle JDK "17.0.6" 2023-01-17 LTS

Reproduction Steps

It is random and usually happens after playing for a few hours.

Crash Report file and latest.log

Full crash log: https://gist.github.com/anagram3k/ff326f77c0585d39e83a4b63606277a0

[17:35:45] [Render thread/INFO]: [STDERR]: [LWJGL] OpenGL debug message 
ID: 0x3 
Source: API 
Type: ERROR 
Severity: HIGH 
Message: GL_INVALID_OPERATION in glUniform(program not linked) 
Stacktrace: org. lwjgl.opengl.GL2OC.glUniformli(Native Method) 
org.lwjgl.opengl.GL20.glUniform1i(GL20.java:510) 
com.mojang.blaze3d.platform.GlStateManager._glUniform1i(GlStateManager.java:212) 
com.mojang.blaze3d.systems.RenderSystem.glUniform1i(RenderSystem.java:948) 
net.coderbot.iris.gl.uniform.IntUniform.updateValue(IntUniform.java:37) net.coderbot.iris.uniforms.CapturedRenderingState.setCurrentBlockEntity(CapturedRenderingState.java:77) net.coderbot.iris.layer.BlockEntityRenderStateShard.lambdanew$8(BlockEntityRenderStateShard.java:13) 
net.minecraft.class_4668.method_23516(class_4668.java:36) 
net.coderbot.iris.layer.OuterWrappedRenderType.method_23516(OuterWrappedRenderType.java:26) net.coderbot.batchedentityrendering.impl.FullyBufferedMultiBufferSource.method_22993(FullyBufferedMultiBufferSource.java:113) net.minecraft.class_761.handlerSeep9084batchedentityrendering$beginTranslucents(class_761.java:3938) 
net.minecraft.class_761.method_22718(class_761.java:1483) 
net.minecraft.class_757.method_3188(class_757.java:1034) 
net.minecraft.class_757.method_3192(class_757.java:813) 
net.minecraft.class_310.method_1523(class_318.java:1122) 
net.minecraft.class_310.method_1514(class_310.java:737) 
net.minecraft.client.main.Main.main(Main.java:236) 
net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461) net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) 
net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) 

# A fatal error has been detected by the Java Runtime Environment: 
# SIGSEGV (Oxb) at pc.0x00007f3c2b762e30, pid.23412, tid.23413 
# JRE version: Java(TM) SE Runtime Environment (17.0.6.9) (build 17.8.6+9-LTS-190) 
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17.8.6+9-LTS-190, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64) 
# Problematic frame: # C Ox00807f3c2b762e30 
# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /home/luis/.ftba/instances/cd946ef7-0c82-4127-87f7-f74df2343789/core.23412) 
# An error report file with more information is saved as: 
# /home/luis/.ftba/instances/cd946ef7-0c82-4127-87f7-f74df2343780/hs_errpid23412.log 
# If you would like to submit a bug report, please visit: 
# https://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. 
# See problematic frame for where to report the bug.

Additional context

This also happens on java-17-openjdk, so it is not related to the JDK.

This is on the modpack Create: Astral right now.

commented

Please reproduce this crash with Iris 1.5.2
& send the file in ".minecraft/logs" named "latest.log"

commented

I managed to reproduce the error, but the latest.log is 88Mb. There are 1.272.840 messages "[Render thread/INFO]: [STDERR]: [LWJGL] OpenGL debug message" in the log. And it seems there are some debug messages that are only present on console.log, but it is 2.5G

To save space, I have trimmed all the "OpenGL debug messages" from the end of latest.log and got the last 5000 lines of console.log to try to get more information about the problem. Feel free to let me know if you need more information.

PS: I also uploaded the files on gist: https://gist.github.com/anagram3k/b31f83892bd5d1c43fc15a9ba26afaad, https://gist.github.com/anagram3k/949394a10b99087b3441bbfe4fe81bb3

commented

Try removing EntityCulling.

commented

Try removing EntityCulling.

It didn`t work. Still crashes after a time of playing.

commented

try without Iris Flywheel Compat

commented

Without Flywheel Compat the fps starts getting under 30fps. Thankfully the crash happened quickly.

I can even post the entire log:
console.log gist
console.log upload

commented

Is this related to https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues/149?

Don't think so. It is not related to switching windows. I can do that with no problem. It happens when I am playing the game.

commented

Fair enough - though it looks like the root cause in that report isn't necessarily switching windows but rather related to keypresses. Might be a red herring though.

commented

Fair enough - though it looks like the root cause in that report isn't necessarily switching windows but rather related to keypresses. Might be a red herring though.

I agree the crash on Xutf8LookupString looks strange, but it only crashes if shaders are enabled. So it is probably related to Iris.

commented

I have some technical background. Can someone help me how to produce better information to successfully diagnose this crash?

commented

This seems potentially related to Create / Flywheel issuing some invalid draw calls near the end. This might just be memory corruption. I wonder if the crash happens in the absence of Create / Flywheel?

commented

I will try, but the pack is based on create, There is no sense in playing the pack without create.