You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having Sodium installed on a Apple Silicon mac causes Distant Horizons' use of glDrawElementsInstanced to crash the game.
This issue doesn't occur with just Sodium or Distant Horizons installed.
If there's no easy fix this problem I'll just disable instanced rendering on mac when Sodium is detected (it will reduce performance, but should prevent crashing).
Just out of interest, do you know if this also happens on macs with intel iGPUs or AMD dGPUs? (There's also Macs with nvidia cards but those are largely irrelevant) The Apple Silicon drivers are observed to be generally more problematic
Also, one thing I just remembered: there were reports from one user that the instanced rendering didn't appear at all (didn't crash, the objects just didn't appear on screen). Unfortunately I don't know if they had any other mods installed.
Maybe instanced rendering is always broken on Mac but Sodium causes the renderer to crash when called? That would be helpful for troubleshooting if that was the case. Although that also means GLCapabilities.GL_ARB_instanced_arrays or GLCapabilities.OpenGL33 is returning the wrong value if instanced rendering aren't supported.
It should be noted that the drivers for Apple Silicon vs the AMD dGPU/intel iGPUs are different enough that they can generally be considered separate in terms of what bugs and quirks they have. That's why it's relevant to know what exact computer was having the issue here.
I used sodium and distant horizons on a mac with an m1 chip, which crashed. Searched for glDrawElementsInstanced in the java error report and found it mentioned. So not sure if that helps
Bug Description
Having Sodium installed on a Apple Silicon mac causes Distant Horizons' use of
glDrawElementsInstanced
to crash the game.This issue doesn't occur with just Sodium or Distant Horizons installed.
If there's no easy fix this problem I'll just disable instanced rendering on mac when Sodium is detected (it will reduce performance, but should prevent crashing).
Crash log stack trace:
Related links:
Distant Horizons Gitlab Issue:
https://gitlab.com/jeseibel/distant-horizons/-/issues/793
Public Distant Horizons Discord conversation about the issue:
https://www.answeroverflow.com/m/1273612018506534973
Reproduction Steps
Hardware:
Install:
Testing:
DH config -> advanced -> graphics -> generic rendering
Log File
latest.log
Crash Report
hs_err_pid35486.log
The text was updated successfully, but these errors were encountered: