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

Unable to start Godot after building on MacOS (mscorlib.dll.dylib is unusable) #47118

Closed
KuroiRoy opened this issue Mar 17, 2021 · 5 comments
Closed

Comments

@KuroiRoy
Copy link

Godot version:
I tried compiling the following versions and running into the problem every time.
Godot 3.x - 7f2107e
Godot 3.2 - 94a0fc4
Godot master - 6eef187

OS/device including version:
macOS Catalina

Issue description:
I'm trying to compile Godot to try using a c++ library. The Godot application compiles fine. But when I run it the program crashes with this in the terminal:
ERROR: _load_api_assemblies: Failed to load one of the prebuilt API assemblies. At: modules/mono/mono_gd/gd_mono.cpp:930.

And this in the mono_logs:
Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/Current/etc/mono/config'. (in domain Mono, info) Config attempting to parse: '/Users/[user]/.mono/config'. (in domain Mono, info) Image addref mscorlib[0x7fdfc3cd2e80] (asmctx DEFAULT) -> /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.5/mscorlib.dll[0x7fdfc5b75000]: 2 (in domain Mono, info) Prepared to set up assembly 'mscorlib' (/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.5/mscorlib.dll) (in domain Mono, info) AOT: module /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.5/mscorlib.dll.dylib is unusable: compiled against runtime version '6.12.0.114 (2020-02/5e9cb6d1c1d Thu Dec 10 04:55:48 EST 2020)' while this runtime has version '6.12.0.114 (2020-02/5e9cb6d1c1d)'. (in domain Mono, info) Assembly mscorlib[0x7fdfc3cd2e80] added to domain GodotEngine.RootDomain, ref_count=1 (in domain Mono, info) Assembly mscorlib[0x7fdfc3cd2e80] added to domain GodotEngine.Domain.Scripts, ref_count=2 (in domain Mono, info)

Steps to reproduce:
Thats hard to say. I have tried multiple Mono versions and multiple Godot versions but nothing seems to help.

@Calinou
Copy link
Member

Calinou commented Mar 17, 2021

@KuroiRoy Are you on an x86 or ARM-based Mac? Are you building the Godot editor or an export template? Where did you acquire Mono, and which version is it?

@KuroiRoy
Copy link
Author

KuroiRoy commented Mar 17, 2021

@Calinou I'm on a x86 Mac. I'm building the Godot editor.
Currently I have Mono 6.12.0.114 installed from https://download.mono-project.com/archive/6.12.0/
I've also tried building Mono using https://github.com/godotengine/godot-mono-builds which also successfully compiled the editor but was unable to run with the same issue.

@KuroiRoy
Copy link
Author

Okay, so apparently I missed something about the folder structure of the resulting .app. I read here that one of the Mono folders has to go in Resources instead of Frameworks. However simply moving it didn't work.

Then I tried copying the whole GodotSharp folder from Frameworks to Resources and that worked. The editor is running now, I just don't know what it was or why it produced this specific error message

@akien-mga
Copy link
Member

Right, this documentation needs to be updated, the packaging changed recently with #43768.

@akien-mga
Copy link
Member

I opened an issue on the docs repo: godotengine/godot-docs#4776

So I guess this issue can be closed. Thanks for the report!

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

No branches or pull requests

3 participants