Skip to content
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

Godot crashes when fixing broken dependency #80712

Closed
RechieKho opened this issue Aug 17, 2023 · 1 comment
Closed

Godot crashes when fixing broken dependency #80712

RechieKho opened this issue Aug 17, 2023 · 1 comment

Comments

@RechieKho
Copy link
Contributor

Godot version

Godot Engine v4.2.dev.custom_build (c5a7462)

System information

Arch Linux, AMD ATI Radeon Vega Series / Radeon Vega Mobile Series, CPU: AMD Ryzen 3 3200G (4) @ 3.600GHz

Issue description

I was trying to reproduce a bug by dragin' and dropping suspecting files into a new project. And I ended up stumble upon a new bug when fixing dependency.

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.2.dev.custom_build (c5a7462a00a665a72c7c1a746c105e3c1c475c96)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /usr/lib/libc.so.6(+0x3e710) [0x7f5e2843e710] (??:0)
[2] FileSystemDock::_get_imported_files(String const&, String&, Vector<String>&) const (/home/rechie/Documents/cxx_projects/gobread/editor/filesystem_dock.cpp:3179)
[3] FileSystemDock::_update_import_dock() (/home/rechie/Documents/cxx_projects/gobread/editor/filesystem_dock.cpp:3224)
[4] void call_with_variant_args_helper<__UnexistingClass>(__UnexistingClass*, void (__UnexistingClass::*)(), Variant const**, Callable::CallError&, IndexSequence<>) (/home/rechie/Documents/cxx_projects/gobread/./core/variant/binder_common.h:308)
[5] void call_with_variant_args_dv<__UnexistingClass>(__UnexistingClass*, void (__UnexistingClass::*)(), Variant const**, int, Callable::CallError&, Vector<Variant> const&) (/home/rechie/Documents/cxx_projects/gobread/./core/variant/binder_common.h:?)
[6] MethodBindT<>::call(Object*, Variant const**, int, Callable::CallError&) const (/home/rechie/Documents/cxx_projects/gobread/./core/object/method_bind.h:331)
[7] Object::callp(StringName const&, Variant const**, int, Callable::CallError&) (/home/rechie/Documents/cxx_projects/gobread/core/object/object.cpp:741)
[8] Callable::callp(Variant const**, int, Variant&, Callable::CallError&) const (/home/rechie/Documents/cxx_projects/gobread/core/variant/callable.cpp:62)
[9] CallQueue::_call_function(Callable const&, Variant const*, int, bool) (/home/rechie/Documents/cxx_projects/gobread/core/object/message_queue.cpp:220)
[10] CallQueue::flush() (/home/rechie/Documents/cxx_projects/gobread/core/object/message_queue.cpp:326)
[11] SceneTree::physics_process(double) (/home/rechie/Documents/cxx_projects/gobread/scene/main/scene_tree.cpp:471)
[12] Main::iteration() (/home/rechie/Documents/cxx_projects/gobread/main/main.cpp:3429)
[13] OS_LinuxBSD::run() (/home/rechie/Documents/cxx_projects/gobread/platform/linuxbsd/os_linuxbsd.cpp:933)
[14] /home/rechie/Documents/cxx_projects/gobread/bin/godot.linuxbsd.editor.dev.x86_64.llvm(main+0x1d3) [0x5579af483663] (/home/rechie/Documents/cxx_projects/gobread/platform/linuxbsd/godot_linuxbsd.cpp:76)
[15] /usr/lib/libc.so.6(+0x27cd0) [0x7f5e28427cd0] (??:0)
[16] /usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7f5e28427d8a] (??:0)
[17] /home/rechie/Documents/cxx_projects/gobread/bin/godot.linuxbsd.editor.dev.x86_64.llvm(_start+0x25) [0x5579af4833b5] (??:?)
-- END OF BACKTRACE --
================================================================

Steps to reproduce

From the given minimal reproduction project:

  1. Open fix broken dependency window of loading_cover/loading_cover.tscn
  2. Fix the broken dependency of the script by choosing loading_cover/loading_cover.gd
  3. A resources/ directory magically appear
  4. Close the fix broken dependency window and click the magic resources/ folder.
  5. Godot crash.

Minimal reproduction project

file_dialog_crash.zip

PSS: Don't mind the filename. I was trying to reproduce another bug.

@akien-mga akien-mga added this to the 4.2 milestone Aug 17, 2023
@akien-mga akien-mga changed the title [Godot 4.2] Godot crashes when fixing broken dependency Godot crashes when fixing broken dependency Aug 17, 2023
@bitsawer
Copy link
Member

Same cause as in #76183, just debugged that issue today. I can create a PR for this hopefully soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants