godotengine / godotengine/godot
Godot 4.5 win64 crashes on launch, Segmentation fault
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
-Reproducible in:
Godot_v4.6-dev1_win64.exe v4.6.dev1.official.8d8041bd4
Godot_v4.5-stable_win64.exe v4.5.stable.official.876b29033
Godot_v4.4.1-stable_win64.exe v4.4.1.stable.official.49a5bc7b6
Godot_v4.4-stable_win64.exe v4.4.stable.official.4c311cbee
-Not Reproducible in:
Godot_v4.6-dev1_win32.exe v4.6.dev1.official.8d8041bd4
Godot_v4.5-stable_win32.exe v4.5.stable.official.876b29033
Godot_v4.3-stable_win64.exe v4.3.stable.official.77dcf97d8
Can switch between Forward+, Mobile, Compatibility in all versions that run
### System information
Windows 11, 13 Gen Intel i7-13620H, integrated UHD Graphics
### Issue description
Godot crashes on launch:
```
$ ./Godot_v4.5-stable_win64.exe -d
Godot Engine v4.5.stable.official.876b29033 - https://godotengine.org
================================================================
CrashHandlerException: Program crashed with signal 11
Engine version: Godot Engine v4.5.stable.official (876b290332ec6f2e6d173d08162a02aa7e6ca46d)
Dumping the backtrace. Please include this when reporting the bug on: https://github.com/godotengine/godot/issues
[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
[7] error(-1): no debug info in PE/COFF executable
[8] error(-1): no debug info in PE/COFF executable
[9] error(-1): no debug info in PE/COFF executable
[10] error(-1): no debug info in PE/COFF executable
[11] error(-1): no debug info in PE/COFF executable
[12] error(-1): no debug info in PE/COFF executable
[13] error(-1): no debug info in PE/COFF executable
[14] error(-1): no debug info in PE/COFF executable
[15] error(-1): no debug info in PE/COFF executable
[16] error(-1): no debug info in PE/COFF executable
[17] error(-1): no debug info in PE/COFF executable
[18] error(-1): no debug info in PE/COFF executable
[19] error(-1): no debug info in PE/COFF executable
[20] error(-1): no debug info in PE/COFF executable
[21] error(-1): no debug info in PE/COFF executable
[22] error(-1): no debug info in PE/COFF executable
[23] error(-1): no debug info in PE/COFF executable
[24] error(-1): no debug info in PE/COFF executable
[25] error(-1): no debug info in PE/COFF executable
[26] error(-1): no debug info in PE/COFF executable
[27] error(-1): no debug info in PE/COFF executable
[28] error(-1): no debug info in PE/COFF executable
[29] error(-1): no debug info in PE/COFF executable
-- END OF C++ BACKTRACE --
================================================================
Segmentation fault
```
EDIT: the workarounds here that get the editor into gl_compatibility won't necessarily run a project using gl_compatibility.
found a workaround:
Make project using Godot 4.5 win32.exe (select Forward+ or Mobile) then drag project.godot onto the win64.exe
(for some reason, you can switch to Compatibility mode from here, save the project, then drag project.godot and it will open the editor in compatibility mode)
If you have a project created with win32.exe targeting compatibility mode these will open the editor, but dragging the project onto win64.exe will crash:
$ ./Godot_v4.5-stable_win64.exe --path test_project/ --rendering-method forward_plus -e
$ ./Godot_v4.5-stable_win64.exe --path test_project/ --rendering-method mobile -e
This one still crashes:
$ ./Godot_v4.5-stable_win64.exe --path test/ --rendering-method gl_compatibility -e
another workaround:
//these launch and you can make a project (with win64.exe) targeting compatibility, save it, then drag it onto win64.exe and it will open the editor in Compatibility
$ ./Godot_v4.5-stable_win64.exe --rendering-method forward_plus
$ ./Godot_v4.5-stable_win64.exe --rendering-method mobile
//crashes with same segfault
$ ./Godot_v4.5-stable_win64.exe --rendering-method gl_compatibility
### Steps to reproduce
Launch Godot 4.4, 4.4.1, 4.5 or 4.6 (win64.exe)
$ ./Godot_v4.5-stable_win64.exe -d
### Minimal reproduction project (MRP)
It doesn't get to a project. These work fine though
$ ./Godot_v4.5-stable_win64.exe --help
--dump-gdextension-interface (the window opens briefly, dumps doc successfully)
--dump-extension-api (the window opens briefly, dumps doc successfully)
Contributor guide
Research direction
Start by reproducing the crash with Godot_v4.5-stable_win64.exe -d and compare it with the working win32 executable and the listed rendering-method commands. Check whether the win64 editor launches without a segmentation fault across the affected versions and modes; the issue is resolved when the reported launch paths no longer crash.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100