Skip to content

[1.7.10] Rendering bug with NEI "Modelview matrix stack too deep" #210

@whatsapp2

Description

@whatsapp2

Describe the bug
I have been using IR and UMC for a 1.7.10 custom modpack. It contains a lot of mods taken from the GTNH GitHub repository, one of my modpack updates broke NEI in an unexpected way:

Image

My game console showed multiple errors, tracing back to NEI GuiContainerManager class. After the first animated fire block texture appears in Immersive Railroading NEI tab, the bug "propagates" to other item models from other mods.

Image

At first I thought it was just some issue with Angelica (Sodium backport) because it changes rendering in significant ways. and after messing with the options, the issue resolves itself when you turn off Angelica's GL State Cache. I created a bug report in GTNH's NEI page but received no response as I wasn't sure on what was causing the issue.

GTNewHorizons/NotEnoughItems#618

A couple of weeks ago I updated my modpack once again and turning off Angelica's GL State Cache won't fix the issue anymore, it will create other rendering issues on its own. I decided to do a binary search (going mod by mod in my modpack) and found that UMC and IR is the culprit.

How to reproduce

  1. Load up a modpack with the mods provided in the list below.
  2. Create and load up a New World.
  3. Go into your inventory and make sure NEI is enabled.
  4. Scroll down to the last page (where IR/UMC models are), or go to the IR Creative Tab.
  5. The IR models should convert to an animated fire block texture.

Expected behavior
Models and items should be displayed normally in JEI and Creative Tabs

System Information

  • OS: Windows 11

  • System Memory: 32.0 GB

  • Allocated Memory: 10240 MB

  • CPU: AMD Ryzen 9 7900X 12-Core Processor

  • GPU: NVIDIA GeForce RTX 4080

  • IR-Version: 1.7.10-forge-1.10.0-8d1e2ff

  • UMC-Version: 1.7.10-forge-1.2.2-b16cf80

  • Forge-Version: 1.7.10 - 10.13.4.1614

Modlist

latest.log
https://gist.github.com/whatsapp2/0f9864f8bd117ae968f17e8738f9131f

Additional context
Might mention this issue to UMC-Fixer developer too, really interested in seeing this bug patched up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions