godotengine / godotengine/godot

Connot run own compiled godot-mono

Open
#87,807 1 comment 0 reactions 0 assignees View on GitHub
needs testing topic:dotnet
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

3.5stable

### System information

Debian12-arm64, godot3.5-stable-mono, virgl

### Issue description

After I ran the compiled binary, the window disappeared in less than a second, followed by an error:
`
Mono: Log file is: '/home/lerio/.local/share/godot/mono/mono_logs/2024-02-01_03.25.47_15817.log'
ERROR: Failed to load one of the prebuilt API assemblies.
at: _load_api_assemblies (modules/mono/mono_gd/gd_mono.cpp:932)
`
I looked at the log, and the log said it was missing a file, I found it in my mono/lib directory and copied it to try it. Run it again, it's still this error, but the log shows a new result, saying that there is a problem with my mono version (the specific log is attached), and the version number of the mono I compiled myself is 6.12.0.199 (tarball... (compilation time)...)

### Steps to reproduce

pyston-scons platform=x11 tools=yes module_mono_enabled=yes mono_glue=no mono_prefix=/opt/mono_6.12/ -j8
...
./bin/godot.x11.tools.64.mono --generate-mono-glue modules/mono/glue
...
pyston-scons platform=x11 tools=yes target=release_debug module_mono_enabled=yes mono_glue=yes mono_prefix=/opt/mono_6.12/ -j8
``

### Minimal reproduction project (MRP)

here is the log
[2024-02-01_03.25.47_15817.log](https://github.com/godotengine/godot/files/14120163/2024-02-01_03.25.47_15817.log)
[2024-02-01_03.42.38_20195.log](https://github.com/godotengine/godot/files/14120170/2024-02-01_03.42.38_20195.log)

Contributor guide

Open the contributing guide

Research direction

Start with modules/mono/mono_gd/gd_mono.cpp at _load_api_assemblies (line 932) and inspect the attached logs alongside the exact pyston-scons commands. Reproduce on Debian 12 arm64 with the stated Mono 6.12.0.199 setup; done means the compiled mono binary starts without the prebuilt API assembly or version errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, csharp
Domain
build-system, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.