GTNewHorizons / GT-New-Horizons-Modpack

New Modpack with Gregtech, Thaumcraft and Witchery
https://www.gtnewhorizons.com/
Other
1k stars 304 forks source link

"Modelview matrix stack too deep" #17133

Open riking opened 2 months ago

riking commented 2 months ago

Your GTNH Discord Username

kanepyork

Your Pack Version

2.6.1

Your Server

private server

Java Version

Java 21

Type of Server

Vanilla Forge

Your Expectation

This is likely related to setting up my first Extreme Entity Crusher.

Put a Redcap Sapper powered spawner in and power it.

The Reality

When standing in front of the EEC with the animation on, viewing the Mob Drops NEI page for the Redcap Sapper results in bad GUI glitching:

image

Additionally, after leaving the area and interacting with inventories in some way, the chat starts reporting item rendering failures:

[20:13:17] [Client thread/INFO] [STDERR]: [codechicken.nei.NEIClientUtils:reportErrorBuffered:459]: Error while rendering: 1xtile.blockCosmeticSlabStone@0
...
[20:13:17] [Client thread/INFO] [STDERR]: [codechicken.nei.NEIClientUtils:reportErrorBuffered:459]: Error while rendering: 1xtile.blockCosmeticDoubleSlabStone@0
...
[20:13:17] [Client thread/INFO] [STDERR]: [codechicken.nei.NEIClientUtils:reportErrorBuffered:459]: Error while rendering: 1xtile.blockLootUrn@0
...
[20:13:17] [Client thread/INFO] [STDERR]: [codechicken.nei.NEIClientUtils:reportErrorBuffered:459]: Error while rendering: 1xtile.blockCosmeticDoubleSlabWood@0
...
[20:13:17] [Client thread/INFO]: [CHAT] There was error during rendering item. Please check log for details.§7 (48)
[20:13:17] [Client thread/INFO] [STDERR]: [codechicken.nei.NEIClientUtils:reportErrorBuffered:459]: Error while rendering: 1xtile.blockLootUrn@1
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]: java.lang.IllegalStateException: Modelview matrix stack too deep
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-Launch//codechicken.nei.guihook.GuiContainerManager.drawItem(GuiContainerManager.java:308)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-Launch//codechicken.nei.guihook.GuiContainerManager.drawItem(GuiContainerManager.java:256)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-Launch//codechicken.nei.guihook.GuiContainerManager.drawItem(GuiContainerManager.java:252)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-Launch//codechicken.nei.guihook.GuiContainerManager.drawItem(GuiContainerManager.java:248)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-Launch//codechicken.nei.ItemsGrid.drawItem(ItemsGrid.java:377)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-Launch//codechicken.nei.ItemsGrid.drawItems(ItemsGrid.java:315)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-Launch//codechicken.nei.ItemsGrid.draw(ItemsGrid.java:362)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-Launch//codechicken.nei.PanelWidget.draw(PanelWidget.java:182)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-Launch//codechicken.nei.LayoutManager.renderObjects(LayoutManager.java:264)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-Launch//codechicken.nei.guihook.GuiContainerManager.renderObjects(GuiContainerManager.java:501)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-Launch//net.minecraft.client.gui.inventory.GuiContainer.func_73863_a(GuiContainer.java:120)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-Launch//net.minecraft.client.renderer.EntityRenderer.func_78480_b(EntityRenderer.java:1061)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-Launch//net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1001)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-Launch//net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:5110)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-Launch//net.minecraft.client.main.Main.main(SourceFile:148)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at java.base/java.lang.reflect.Method.invoke(Method.java:580)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-System//net.minecraft.launchwrapper.Launch.rfb$realLaunch(Launch.java:250)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-System//net.minecraft.launchwrapper.Launch.launch(Launch.java:35)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-System//net.minecraft.launchwrapper.Launch.main(Launch.java:60)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at java.base/java.lang.reflect.Method.invoke(Method.java:580)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at com.gtnewhorizons.retrofuturabootstrap.Main.main(Main.java:219)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-System//org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:100)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-System//org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)
[20:13:17] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-System//org.prismlauncher.EntryPoint.main(EntryPoint.java:70)
[20:13:17] [Client thread/INFO]: [CHAT] There was error during rendering item. Please check log for details.§7 (49)

Your Proposal

stop leaking entries into the model view matrix stack

Possibly related but reports an OpenComputers fix: GTNewHorizons/GT-New-Horizons-Modpack#14311

Final Checklist

riking commented 2 months ago

Oh also, the error first appeared 4 times at once then later 49 times at once. I suspect the items mentioned in the error logs are "victim items" failing due to an earlier leak related to rendering the same mob in the EEC and NEI at the same time.

Nothing suspicious at the top of the log:

...
[19:53:04] [Client thread/INFO] [ChunkBuilder]: Stopping worker threads
[19:53:04] [Client thread/INFO] [ChunkBuilder]: Started 10 worker threads
[19:53:04] [Client thread/INFO] [journeymap]: Requesting World ID
[19:53:04] [Client thread/INFO]: [CHAT] §2A magic bubble of protection appears...
[19:53:05] [Client thread/INFO] [NotEnoughItems]: Loading presets selected from file /home/kane/.local/share/PrismLauncher/instances/GT_New_Horizons_2.6.1_Java_17-21/.minecraft/saves/NEI/global/presets/selected.ini
[19:53:05] [Client thread/INFO] [NEIAddons]: Received handshake from server
[19:53:05] [Client thread/INFO] [NEIAddons]: Available server commands: 
[19:53:05] [Client thread/INFO] [journeymap]: Got the World ID from server: e6f070c0-0efa-4ab5-803e-ef5a3c423272
[19:53:05] [Client thread/INFO] [journeymap]: World UID hasn't changed: e6f070c0-0efa-4ab5-803e-ef5a3c423272
[19:53:05] [Client thread/INFO] [journeymap]: Loaded 74 waypoints from /home/kane/.local/share/PrismLauncher/instances/GT_New_Horizons_2.6.1_Java_17-21/.minecraft/journeymap/data/mp/Among~Friends_e6f070c0~0efa~4ab5~803e~ef5a3c423272/waypoints
[19:53:05] [Client thread/INFO] [journeymap]: Blocks and textures are current
[19:53:05] [Client thread/INFO] [journeymap]: Mapping started in /home/kane/.local/share/PrismLauncher/instances/GT_New_Horizons_2.6.1_Java_17-21/.minecraft/journeymap/data/mp/Among~Friends_e6f070c0~0efa~4ab5~803e~ef5a3c423272/DIM1. Memory: 6096MB total, 2313MB free 
[19:53:07] [Client thread/INFO]: [CHAT] §5Your magic bubble of protection fades...
[19:53:24] [Client thread/INFO] [STDOUT]: [rwg.world.RwgWorldSavedData:getNoiseImplementation:77]: RWG COULD NOT LOAD GENERATION DATA - RETURNING UNKNOWN
[19:53:24] [Client thread/INFO] [Angelica]: World loaded - Initializing HUDCaching
[19:53:24] [Client thread/INFO] [journeymap]: Mapping halted in /home/kane/.local/share/PrismLauncher/instances/GT_New_Horizons_2.6.1_Java_17-21/.minecraft/journeymap/data/mp/Among~Friends_e6f070c0~0efa~4ab5~803e~ef5a3c423272/DIM1
[19:53:24] [Client thread/INFO] [ChunkBuilder]: Stopping worker threads
[19:53:24] [Client thread/INFO] [ChunkBuilder]: Started 10 worker threads
[19:53:24] [Client thread/INFO] [ChunkBuilder]: Stopping worker threads
[19:53:24] [Client thread/INFO] [ChunkBuilder]: Started 10 worker threads
[19:53:24] [Client thread/INFO] [journeymap]: Requesting World ID
[19:53:24] [Client thread/INFO]: [CHAT] §2A magic bubble of protection appears...
[19:53:25] [Client thread/INFO] [NotEnoughItems]: Loading presets selected from file /home/kane/.local/share/PrismLauncher/instances/GT_New_Horizons_2.6.1_Java_17-21/.minecraft/saves/NEI/global/presets/selected.ini
[19:53:25] [Client thread/INFO] [journeymap]: Got the World ID from server: e6f070c0-0efa-4ab5-803e-ef5a3c423272
[19:53:25] [Client thread/INFO] [journeymap]: World UID hasn't changed: e6f070c0-0efa-4ab5-803e-ef5a3c423272
[19:53:25] [Client thread/INFO] [journeymap]: Loaded 74 waypoints from /home/kane/.local/share/PrismLauncher/instances/GT_New_Horizons_2.6.1_Java_17-21/.minecraft/journeymap/data/mp/Among~Friends_e6f070c0~0efa~4ab5~803e~ef5a3c423272/waypoints
[19:53:25] [Client thread/INFO] [journeymap]: Blocks and textures are current
[19:53:25] [Client thread/INFO] [journeymap]: Mapping started in /home/kane/.local/share/PrismLauncher/instances/GT_New_Horizons_2.6.1_Java_17-21/.minecraft/journeymap/data/mp/Among~Friends_e6f070c0~0efa~4ab5~803e~ef5a3c423272/DIM0. Memory: 6096MB total, 675MB free 
[19:53:28] [Client thread/INFO]: [CHAT] §5Your magic bubble of protection fades...
[19:53:39] [Client thread/INFO] [NotEnoughItems]: Loading bookmarks from file /home/kane/.local/share/PrismLauncher/instances/GT_New_Horizons_2.6.1_Java_17-21/.minecraft/saves/NEI/global/bookmarks.ini
[20:00:12] [Client thread/INFO]: [CHAT] Overflow Voiding Mode Enabled
[20:00:15] [Client thread/INFO]: [CHAT] Overflow Voiding Mode Disabled
[20:01:24] [Client thread/INFO]: [CHAT] Overflow Voiding Mode Enabled
[20:02:36] [Client thread/INFO]: [CHAT] Disconnected
[20:02:37] [Client thread/INFO]: [CHAT] Connected
[20:02:46] [Client thread/INFO]: [CHAT] Disconnected
[20:02:47] [Client thread/INFO]: [CHAT] Connected
[20:03:05] [Client thread/INFO]: [CHAT] Connected§7 (2)
[20:06:17] [Client thread/INFO]: [CHAT] Connected§7 (3)
[20:11:42] [Client thread/INFO] [STDERR]: [codechicken.nei.NEIClientUtils:reportErrorBuffered:459]: Error while rendering: 1xitem.draconicevolution:mobSoul@0
[20:11:42] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]: java.lang.IllegalStateException: Modelview matrix stack too deep
[20:11:42] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-Launch//codechicken.nei.guihook.GuiContainerManager.drawItem(GuiContainerManager.java:308)
[20:11:42] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:785]:     at RFB-Launch//codechicken.nei.guihook.GuiContainerManager.drawItem(GuiContainerManager.java:256)