Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET 5 build cannot run on OSX 10.15.7 #19658

Closed
cousinbenson opened this issue Sep 9, 2021 · 2 comments · Fixed by #19675
Closed

.NET 5 build cannot run on OSX 10.15.7 #19658

cousinbenson opened this issue Sep 9, 2021 · 2 comments · Fixed by #19675

Comments

@cousinbenson
Copy link

Issue Summary

OSX Catalina 10.15.7 cannot run net5 builds due to the following error:
-[NSOpenGLContext setView:] must be called from the main thread.

Reproduction

On OSX 10.15.7:

  • Install .NET 5
  • Run make
  • Run ./launch-game.sh Game.Mod=ra
  • Observe crash

Expected behavior

Game should run.

Screenshots / Screen recordings / Replays

Screenshot 2021-09-09 at 14 13 48

@pchote pchote added this to the Next release milestone Sep 9, 2021
@Mailaender
Copy link
Member

Mailaender commented Sep 11, 2021

Same problem here https://pastebin.com/AXeYBLvd using a .dmg build.

@pchote
Copy link
Member

pchote commented Sep 20, 2021

I did some digging here and found that this appears to be related to a change in the macOS 10.15 platform SDK that turned a warning into a runtime error. mono is likely built against the old SDK and dotnet against the new one, explaining why the compatibility builds continue to work.

libsdl-org/SDL@309d613 was shipped in SDL 2.0.14 (we curently use 2.0.12) and should fix the issue. I attempted to test the latest SDL (now 2.0.16) in a macOS 10.15.7 virtual machine, but it seems that there were other changes that aren't compatible with the emulated software GL implementation in the virtual machine - I expect this won't be a problem with real hardware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants