Open jeseibel opened 2 weeks ago
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
Looking at the crash log it appears this machine was a MacBookPro18,3
which I think has a dedicated GPU ( https://support.apple.com/en-us/111902 ).
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.
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