-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Crash when trying to export without a project #92606
Comments
Duplicate of #91527, or the other way around, whichever is clearer. With several reports on dev 6 / beta 1, is that a recent regression? |
The comments in #91527 are unrelated to the original issue, which doesn't involve any crash. They are 2 separate bugs. |
If you look at this section godot/editor/editor_settings.cpp Lines 1059 to 1067 in 96a386f
You can see that we call singleton->set_path before checking if "singleton" is null, which lead to some "undefined behaviour". To improve things, we should have the if (singleton.is_null()) done just after the call to singleton = ResourceLoader::load. Same thing here : Lines 3704 to 3709 in 96a386f
We call gdscript->get_documentation() without checking if gdscript isnt a null pointer which can lead to crash aswell potentially |
Yes I noticed this nullptr too. IMHO culprit is here, it will set the
I also has crash here,
|
The crash was fixed by #94593. Now exporting results in some errors:
None of them really tell what's the problem, so maybe we could detect this and print a proper error. |
With
I think part pf my pr #92783 can solve the unclear log when exporting with With it the log looks like
|
Tested versions
4.3 beta1 and earlier
System information
Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 31.0.15.4633) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)
Issue description
When exporting from empty folder, the engine crashes:
The culprit seems to be this code:
godot/main/main.cpp
Lines 1770 to 1783 in 705b7a0
If the project is found, everything works normally.
If it's not found:
error
and abortSo it continues and tries to do editor stuff without editor hint. The above crash happens in editorless EditorNode, which can't create EditorSettings, because it's not in editor. There is a variation of this crash that happens in EditorFileSystem, which tries doing filesystem scan.
Steps to reproduce
Run
godot --headless --export-release "anything"
in an empty folder (noproject.godot
).If you omit
"anything"
you'll get a different crash.Minimal reproduction project (MRP)
New folder.zip
The text was updated successfully, but these errors were encountered: