mccreery / better-hud

All the information you'll ever need! A Minecraft mod written in Forge.
https://www.curseforge.com/minecraft/mc-mods/better-hud
MIT License
32 stars 11 forks source link

Severe OpenGL error with certain thaumcraft warp effects #108

Open TCreopargh opened 4 years ago

TCreopargh commented 4 years ago

Game details (please complete the following information):

Game: 1.12.2 betterhud-1.12.2-1.4.3 Thaumcraft-1.12.2-6.1.BETA26 TConstruct-1.12.2-2.13.0.183

Note that to reproduce your bug I have to install every mod you list here. Please minimise the number of mods needed to reproduce to increase the chances I will investigate the bug. Do not post a list of 50 mods.

Describe the bug A clear and concise description of what the bug is.

When certain warp effects from thaumcraft occur (that changes your vision,while having any tool from TConstruct and any item that has an enchantment glow in your hotbar the blurring one as an example), the screen instantly turns into an instantly flashing, one color screen. removing the effect seems to solve the problem. The game doesn't crash, but the log keeps spamming "OpenGL error 1284: Stack underflow" when this happens. I figured out that if you have the "hotbar" widget on, the bug occurs, but if you turn it off the major bug no longer occurs, but some smaller bugs still occur, such as the crosshair becomes randomly flashing texture. if you disable the entire mod no bug will occur.

To Reproduce

  1. install latest versions of thaumcraft 6, betterhud and Tinkers' Construct
  2. make sure the hot bar widget is turned on
  3. do /effect @p thaumcraft:blurredvision 100 1 to put on yourself a warp effect that causes this bug
  4. do /give @p tconstruct:pickaxe to give yourself a tconstruct tool. make sure its in the hotbar. (any TConstruct tool or weapon will work)
  5. do /give @p minecraft:enchanted_book and put it in the hotbar (any item that has an enchantment glow will work)
  6. the error occurs, the entire screen becomes only one color and quickly flashes as you move your mouse. you also can't see any GUI elements.
  7. turn off the hotbar but still keep the mod on, you can still see some smaller bugs occuring, such as the crosshair glitches and randomly flashes.
  8. if you remove the enchanted item from your hotbar, the tinkers' construct tool's icon still doesn't render.

Expected behavior A clear and concise description of what you expected to happen.

The screen becomes blurred but doesn't turn into the said flashing screen.

Screenshots If applicable, add screenshots to help explain your problem. If I screenshot when the bug happens I get this, but that's not actually what I see. Note that turning off shaders doesn't solve this although I have shaders on in the screenshot. https://imgur.com/a/bQF9DNE

Attach files (drag and drop):

The game doesn't crash so I can't provide a crash report fire format renamed to txt because github doesnt support .cfg betterhud.txt

the log when the error happens: [19:54:25] [Client thread/ERROR] [net.minecraft.client.Minecraft]: ########## GL ERROR ########## [19:54:25] [Client thread/ERROR] [net.minecraft.client.Minecraft]: @ Post render [19:54:25] [Client thread/ERROR] [net.minecraft.client.Minecraft]: 1284: Stack underflow

Additional context Add any other context about the problem here.

DoomRater commented 2 years ago

I didn't even need Tinkers Construct to trigger this bug. Do you have your config by any chance?

I'm going to try and reproduce with the bare minimum mods I think I need, now that I know there's already an open issue on the subject. It would be good to know what HUD element isn't cleaning itself up properly, if indeed it's just one element or multiple. I cannot reproduce these effects with any config setting in the RPG-Hud which is what I switched to afterwards.