Skip to content

Editor crash when opening and closing immediately project #37665

Closed
@qarmin

Description

Godot version:
4.0.dev.custom_build.1222541c9

OS/device including version:
Ubuntu 19.10

Issue description:
When I open minimal and close project with command godot -e --quit, then editor crash with this backtrace

scene/gui/control.cpp:850:57: runtime error: member access within null pointer of type 'const struct Control'
scene/gui/control.cpp:850:57: runtime error: member call on null pointer of type 'const struct Object'
scene/gui/control.cpp:850:57: runtime error: member access within null pointer of type 'const struct Control'
scene/gui/control.cpp:850:57: runtime error: member access within null pointer of type 'const struct Control'
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] bin/godot.linuxbsd.tools.64s() [0x1755a1a] (/mnt/KubuntuWolne/mojgodot/platform/linuxbsd/crash_handler_linuxbsd.cpp:54)
[2] /lib/x86_64-linux-gnu/libc.so.6(+0x46470) [0x7ff05164e470] (??:0)
[3] Control::get_theme_icon(StringName const&, StringName const&) const (/mnt/KubuntuWolne/mojgodot/scene/gui/control.cpp:850 (discriminator 4))
[4] EditorResourcePreview::_generate_preview(Ref<ImageTexture>&, Ref<ImageTexture>&, EditorResourcePreview::QueueItem const&, String const&) (/mnt/KubuntuWolne/mojgodot/editor/editor_resource_preview.cpp:171 (discriminator 6))
[5] EditorResourcePreview::_thread() (/mnt/KubuntuWolne/mojgodot/editor/editor_resource_preview.cpp:269)
[6] EditorResourcePreview::_thread_func(void*) (/mnt/KubuntuWolne/mojgodot/editor/editor_resource_preview.cpp:108)
[7] ThreadPosix::thread_callback(void*) (/mnt/KubuntuWolne/mojgodot/drivers/unix/thread_posix.cpp:76)
[8] /lib/x86_64-linux-gnu/libpthread.so.0(+0x9669) [0x7ff0524c9669] (??:0)
[9] /lib/x86_64-linux-gnu/libc.so.6(clone+0x43) [0x7ff05172a323] (??:0)

For now it may crash with a little different backtrace similar to #37655, until PR which will fix it will be merged.

Minimal reproduction project:
https://github.com/qarmin/The-worst-Godot-test-project/archive/master.zip

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions