You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I forgot what the option for generating the API reference is, so I tried --doc-tool, and Godot crashed. It seems that any unrecognized option can do, like --foobar.
Crash Log
ERROR: Bug (please report): EditorPaths haven't been initialized, EditorSettings cannot be created properly.
at: create (editor/editor_settings.cpp:911)
handle_crash: Program crashed with signal 11
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] 1 libsystem_platform.dylib 0x00007fff2067dd7d _sigtramp + 29
[2] CowData<char32_t>::_unref(void*) (in godot.osx.tools.64) (cowdata.h:201)
[3] String::String(String const&) (in godot.osx.tools.64) (ustring.h:440)
[4] String::String(String const&) (in godot.osx.tools.64) (ustring.h:440)
[5] EditorPaths::get_config_dir() const (in godot.osx.tools.64) (editor_paths.cpp:50)
[6] EditorSettings::get_text_editor_themes_dir() const (in godot.osx.tools.64) (editor_settings.cpp:1208)
[7] EditorSettings::list_text_editor_themes() (in godot.osx.tools.64) (editor_settings.cpp:1309)
[8] EditorSettings::create() (in godot.osx.tools.64) (editor_settings.cpp:972)
[9] ProjectManager::ProjectManager() (in godot.osx.tools.64) (project_manager.cpp:2394)
[10] ProjectManager::ProjectManager() (in godot.osx.tools.64) (project_manager.cpp:2787)
[11] Main::start() (in godot.osx.tools.64) (main.cpp:2365)
[12] main (in godot.osx.tools.64) (godot_main_osx.mm:78)
[13] 13 libdyld.dylib 0x00007fff20653f5d start + 1
-- END OF BACKTRACE --
Abort trap: 6
Steps to reproduce
Execute:
/path/to/godot --doc-tool
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered:
WARNING: Hacks everywhere!
The logic in `main.cpp` is due a full rewrite as it's extremely hacky,
splitting argument parsing over several functions, with a mess of global state
and assumptions about what combinations of arguments or lack thereof should
mean in terms of what we want to read: game, editor, project manager, or
command line tools such as `--doctool`, `--export` or `--script`.
Until this is fully rewritten, this patch hacks things some more to ensure
that we don't fall back to the project manager in cases where it's not
warranted, and especially not *too late*, as it can mean that we haven't
properly initialized stuff like `EditorPaths` needed by the PM (which in turn
impacts what kind of path will be used for logs and the shader cache, etc...
the rabbit hole goes deep).
Fixesgodotengine#41435.
Fixesgodotengine#49392.
Fixesgodotengine#49658.
Fixesgodotengine#38202 (comment).
Godot version
master (34e308e)
System information
macOS 11.4
Issue description
I forgot what the option for generating the API reference is, so I tried
--doc-tool
, and Godot crashed. It seems that any unrecognized option can do, like--foobar
.Crash Log
Steps to reproduce
Execute:
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: