[IU] Industrial Upgrade

[IU] Industrial Upgrade

368k Downloads

Crash when opening Vein Sensor GUI on MC 1.21.1 + NeoForge 21.1.176

0ralo opened this issue ยท 1 comments

commented

Description:
Game crashes immediately when trying to open the Vein Sensor GUI from IndustrialUpgrade.
The crash happens in GuiVeinSensor.drawGuiContainerBackgroundLayer due to an empty BufferBuilder.
Looks like the GUI tries to render with an empty buffer, which fails when Sodium/Iris hooks into rendering.

Environment:

Minecraft: 1.21.1

NeoForge: 21.1.176

IndustrialUpgrade: 3.3.1

Mods: Sodium, Iris, FancyMenu, etc. (but crash reproduces even with only IndustrialUpgrade installed)

OS: Windows 11

Java: 21.0.7 (Microsoft OpenJDK)

Crash report excerpt:

java.lang.IllegalStateException: BufferBuilder was empty
at com.mojang.blaze3d.vertex.BufferBuilder.buildOrThrow(BufferBuilder.java:69)
at com.denfop.gui.GuiVeinSensor.drawGuiContainerBackgroundLayer(GuiVeinSensor.java:314)
at com.denfop.gui.GuiIU.renderBg(GuiIU.java:150)
at com.denfop.gui.GuiCore.render(GuiCore.java:306)
at com.denfop.gui.GuiVeinSensor.render(GuiVeinSensor.java:234)

Steps to reproduce:

Place or get the Vein Sensor item.

Right-click to open its GUI.

Game crashes to desktop.

Expected behavior:
GUI should open normally without crashing.

Additional info:

Disabling Sodium/Iris does not solve the issue.

Removing the Vein Sensor from inventory/world avoids the crash.

It seems the GUI needs a null/empty check before calling BufferBuilder.buildOrThrow().

---- Minecraft Crash Report ----

Time: 2025-09-05 12:44:21
Description: Rendering screen

java.lang.IllegalStateException: BufferBuilder was empty
at com.mojang.blaze3d.vertex.BufferBuilder.buildOrThrow(BufferBuilder.java:69)
at com.denfop.gui.GuiVeinSensor.drawGuiContainerBackgroundLayer(GuiVeinSensor.java:314)
at com.denfop.gui.GuiIU.renderBg(GuiIU.java:150)
at com.denfop.gui.GuiCore.render(GuiCore.java:306)
at com.denfop.gui.GuiVeinSensor.render(GuiVeinSensor.java:234)
at net.minecraft.client.gui.screens.Screen.renderWithTooltip(Screen.java:112)

-- Screen render details --
Details:
Screen name: com.denfop.gui.GuiVeinSensor

-- System Details --
Minecraft Version: 1.21.1
NeoForge: 21.1.176
IndustrialUpgrade: 3.3.1
Java: 21.0.7 (Microsoft OpenJDK)
OS: Windows 11 (amd64)

commented

3.3.1 is an old version and it is not supported for a long time, update to 3.3.1.13-15 or to 3.3.2.3