GTNewHorizons / Angelica

OptiFine replacement for 1.7.10
Other
243 stars 43 forks source link

Multi-draw indirect crashes without lwjgl3ify #373

Closed wahfl2 closed 6 months ago

wahfl2 commented 6 months ago

Your GTNH Discord Username

beljihnwahfl

Mod Version

1.0.0-alpha34

Java Version

Java 8

Graphics Card Vendor

Intel iGPU

Bug Report

Enabling multi-draw indirect and entering any world/server causes a crash without lwjgl3ify installed. Seemingly, this would happen regardless of setup.

https://mclo.gs/5CGAaD2

I tested the same instance + world after installing lwjgl3ify and it worked without crashing.

Mod List or GTNH Pack Version

Only Angelica + deps

Final Checklist

mitchej123 commented 6 months ago

What OS? Looks like win10 from the log

Seems like an Intel specific issue this far.... I've run multidraw on linux, with nvidia, and lwjgl2 without issue. (I'll test it again tonight to verify it's not a regression).

mitchej123 commented 6 months ago

It seems to currently only be reproducible on intel drivers running on windows, while using lwjgl2. Apparently lwjgl3 disabled some checks for speed.

The two options seem to be: 1) Disabling the check via -Dorg.lwjgl.util.NoChecks=true 2) Using Oneshot instead of Multidraw

AnrDaemon commented 6 months ago
  1. -Dorg.lwjgl.util.NoChecks=true

Confirmed to be working with my setup. No more crashes with multidraw option enabled.

justaguywhowantsminecraftmods commented 6 months ago

It seems to currently only be reproducible on intel drivers running on windows, while using lwjgl2. Apparently lwjgl3 disabled some checks for speed.

The two options seem to be:

  1. Disabling the check via -Dorg.lwjgl.util.NoChecks=true
  2. Using Oneshot instead of Multidraw

where do I find Dorg.lwjgl.util.NoChecks=true?

quentin452 commented 6 months ago

-Dorg.lwjgl.util.NoChecks=true its probably a jvm arguments that you need to put

AnrDaemon commented 6 months ago

Yes, it is a JVM argument.