godotengine / godotengine/godot
Godot Does Not Open Any Projects and Crashes With Signal 11
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
Reproducible in Godot Mono 4.4.1.
### System information
Windows 11 Godot Engine v4.4.1.stable.mono.official.49a5bc7b6 - https://godotengine.org Vulkan 1.2.187 - Forward+ - Using Device #0: Intel - Intel(R) Iris(R) Xe Graphics
### Issue description
When opening any projects, the editor does not open. When opening from the terminal, this error appears:
```
ERROR: .NET: Failed to get GodotPlugins initialization function pointer
at: (modules/mono/mono_gd/gd_mono.cpp:380)
ERROR: Parameter "godot_plugins_initialize" is null.
at: initialize (modules/mono/mono_gd/gd_mono.cpp:536)
```
The current version of .NET I have is .NET 8.0.204. The crash handler also provides this error:
```
CrashHandlerException: Program crashed with signal 11
Engine version: Godot Engine v4.4.1.stable.mono.official (49a5bc7b616bd04689a2c89e89bda41f50241464)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] error(-1): no debug info in PE/COFF executable
[2] error(-1): no debug info in PE/COFF executable
[3] error(-1): no debug info in PE/COFF executable
[4] error(-1): no debug info in PE/COFF executable
[5] error(-1): no debug info in PE/COFF executable
[6] error(-1): no debug info in PE/COFF executable
-- END OF BACKTRACE --
```
Godot's verbose output shows:
```
.NET: Initializing module...
Found hostfxr: C:/Program Files/dotnet/host/fxr/8.0.4/hostfxr.dll
.NET: hostfxr initialized
ERROR: .NET: Failed to get GodotPlugins initialization function pointer
at: (modules/mono/mono_gd/gd_mono.cpp:380)
ERROR: Parameter "godot_plugins_initialize" is null.
at: initialize (modules/mono/mono_gd/gd_mono.cpp:536)
CORE API HASH: 1480415270
EDITOR API HASH: 1467842162
```
### Steps to reproduce
As far as I know, there are no steps to reproduce this error. It may be a Windows 11 issue or an issue with my computer. However, if this issue is encountered, it applies to all projects, even newly created ones.
### Minimal reproduction project (MRP)
N/A
Contributor guide
Research direction
Start with modules/mono/mono_gd/gd_mono.cpp at the reported lines 380 and 536, then run the Godot Mono 4.4.1 editor on Windows 11 with verbose output enabled. Investigate why the GodotPlugins initialization function pointer is null; the issue is resolved when projects open without the initialization error or Signal 11 crash.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop, game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100