-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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 importing Terrain3D add-on for the first time (but not after restarting the editor) #80850
Comments
I can reproduce this bug with Godot v4.2.dev (f7c48cf) - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 (NVIDIA; 31.0.15.3619) - 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz (16 Threads) But for me, it crashes most times. It seems like when loading |
I had this before but i think cory fixed it already. TokisanGames/Terrain3D#196 |
I didn't know this ticket was made until now. I didn't fix it. I worked around it. The key change was something I copied from godot-jolt in the PR Saul mentioned. All it does is use an initialization mode that forces a prompt to restart rather than just crashing.
My instructions are now to restart twice before using:
It looks like it may have been addressed with these: |
Only the resulting »crash« was prevented, the actual GDExtension initialization issue caused by missing |
Poking around the code a little bit, it looks like |
editor/editor_file_system.cpp:671: if (_scan_extensions()) {
editor/editor_file_system.cpp:2459:
static void _scan_extensions_dir(EditorFileSystemDirectory *d, HashSet<String> &extensions) {
editor/editor_file_system.cpp:2468: _scan_extensions_dir(d->get_subdir(i), extensions);
editor/editor_file_system.cpp:2471:bool EditorFileSystem::_scan_extensions() {
editor/editor_file_system.cpp:2475: _scan_extensions_dir(d, extensions);
editor/editor_file_system.h:292: bool _scan_extensions();
core/extension/gdextension.cpp:45:String GDExtension::get_extension_list_config_file() {
core/extension/gdextension.h:119: static String get_extension_list_config_file();
core/extension/gdextension_manager.cpp:229: Ref<FileAccess> f = FileAccess::open(GDExtension::get_extension_list_config_file(), FileAccess::READ);
editor/editor_file_system.cpp:2495: String extension_list_config_file = GDExtension::get_extension_list_config_file();
editor/export/editor_export_platform.cpp:852: String extension_list_config_file = GDExtension::get_extension_list_config_file();
|
Update: Currently the hack executing godot --path <project> --headless --editor --quit |
I ran into a similar issue while making a minimal project for #85268 v4.1.3 crashes with a similar backtrace if v4.2-rc1 doesn't crash, but prints |
Using the headless hack mentioned above doesn't seem to work for me using Is there a further workaround, perhaps a way to generate the extensions file externally? (Terrain3d would be my first plugin, I don't know if that matters) |
No crash in 4.3 |
Godot version
4.2.dev c495eb5
System information
Godot v4.2.dev (c495eb5) - Fedora Linux 38 (KDE Plasma) - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4090 (nvidia; 535.98) - 13th Gen Intel(R) Core(TM) i9-13900K (32 Threads)
Issue description
The editor crashes when importing Terrain3D add-on for the first time (but not after restarting the editor). Relevant part of the log:
Backtrace:
Looking at the backtrace, this is caused by GDScript rather than resource importing.
Steps to reproduce
Minimal reproduction project
https://github.com/outobugi/Terrain3D/releases/tag/v0.8.2-alpha_gd4.1.1
The text was updated successfully, but these errors were encountered: