Siddique Khan
Siddique Khan

Reputation: 11

Godot export crash

I am new to godot engine and have started working on a project(i am using gdscript)... When I run the project as test it works fine(like in the godot engine), but when I export it, it shows the godot logo and then crashes... This is my godot file system godot file system

This is the message i am getting in the debug console error message in debug menu

 platform/windows/os_windows.cpp:2905 - Condition "ret == 0" is true. Returned: ERR_CANT_FORK

Please help I have worked hard on this project and if I cant export all that is for nothing

Upvotes: 1

Views: 3629

Answers (2)

Ivy O'Neal-Odom
Ivy O'Neal-Odom

Reputation: 111

I assume you're exporting for Windows? If so, try unchecking this option here in the export menu:

Application -> Modify Resources

enter image description here

Alternatively, as someone else mentioned, you can install and configure rcedit. But it's likely that your project doesn't require it (mine doesn't).

Upvotes: 0

Theraot
Theraot

Reputation: 40285

I'm going to transcribe the error image you linked for you:

platform/windows/os_windows_cpp:2905 - Condition "ret == 0" is true. Returned: ERR_CANT_FORK

editor/editor_export.h:251 - Resources Modification: Could not start rcedit executable. Configure rcedit path in the Editor Settings (Export -> Windows -> Rcedit)

Emphasis:

Configure rcedit path in the Editor Settings (Export -> Windows -> Rcedit)

ERR_CANT_FORK means it could not fork start a new process. Which process?

Could not start rcedit executable

If we search Rcedit on Godot's official documentation the following article shows up: Changing application icon for Windows. It says:

Before selecting it in the export options, you will need to install an extra tool called rcedit. You can download it here.

After downloading, you need to tell Godot the path to the rcedit executable on your computer. Go to Editor → Editor Settings → Export → Windows. Click on the folder icon for the rcedit entry. Navigate to and select the rcedit executable.

To reiterate: Configure Rcedit.

Upvotes: 3

Related Questions