godot: Godot randomly crashing when opening TileSet Editor

Not fixed by https://github.com/godotengine/godot/pull/21015, https://github.com/godotengine/godot/pull/23578, although the issues are similar.

Godot version: v3.1.alpha.custom_build.37c5aa1 v3.1.alpha.custom_build.a2e4eb7

OS/device including version:

Arch Linux up-to-date Kernel 4.18.16-arch1-1-ARCH Happens both using Intel® HD Graphics 520 (Skylake GT2) and GeForce 940M (driver 410.66)

Issue description: When trying to open TileSet editor through “Open Editor” button, Godot crashes. If opened through dropdown menu “Edit”, as stated by @Liangdi, it won’t crash.

Steps to reproduce:

  1. Open Godot
  2. Create a blank project
  3. Create a 2D Scene
  4. Add a TileMap child to it
  5. On the TileMap properties, create a new TileSet and click on it
  6. Click on “Open Editor”
  7. Click elsewhere to close TileMap properties and repeat step 6 until the engine crashes

On my case, there’s something about 2/3 chance to crash and 1/3 to not crash and open.

Crash log:

(gdb) 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] /usr/lib/libc.so.6(+0x37e00) [0x7ffff6652e00] (??:0)
[2] /usr/bin/godot() [0x187750d] (/home/mateusfccp/Downloads/godot-git/src/godot/./core/set.h:573)
[3] /usr/bin/godot() [0x1878501] (/home/mateusfccp/Downloads/godot-git/src/godot/scene/gui/base_button.cpp:157)
[4] /usr/bin/godot() [0x188209c] (/home/mateusfccp/Downloads/godot-git/src/godot/./core/reference.h:267)
[5] /usr/bin/godot() [0x280ba90] (/home/mateusfccp/Downloads/godot-git/src/godot/./core/variant.h:415)
[6] /usr/bin/godot() [0x280d293] (/home/mateusfccp/Downloads/godot-git/src/godot/core/object.cpp:885)
[7] /usr/bin/godot() [0x184d45e] (/home/mateusfccp/Downloads/godot-git/src/godot/./core/variant.h:415)
[8] /usr/bin/godot() [0x184e856] (/home/mateusfccp/Downloads/godot-git/src/godot/./core/reference.h:267)
[9] /usr/bin/godot() [0x184c35b] (/home/mateusfccp/Downloads/godot-git/src/godot/./core/reference.h:267)
[10] /usr/bin/godot() [0x184c175] (/home/mateusfccp/Downloads/godot-git/src/godot/./core/reference.h:267)
[11] /usr/bin/godot() [0x187128c] (/home/mateusfccp/Downloads/godot-git/src/godot/./core/reference.h:267)
[12] /usr/bin/godot() [0x280d40c] (/home/mateusfccp/Downloads/godot-git/src/godot/core/object.cpp:?)
[13] /usr/bin/godot() [0x280d1fb] (/home/mateusfccp/Downloads/godot-git/src/godot/core/object.cpp:869)
[14] /usr/bin/godot() [0x1818c82] (/home/mateusfccp/Downloads/godot-git/src/godot/scene/main/scene_tree.cpp:262)
[15] /usr/bin/godot() [0x1819dc5] (/home/mateusfccp/Downloads/godot-git/src/godot/scene/main/scene_tree.cpp:418)
[16] /usr/bin/godot() [0x45cd8b] (/home/mateusfccp/Downloads/godot-git/src/godot/./core/reference.h:267)
[17] /usr/bin/godot() [0x44bc3a] (/home/mateusfccp/Downloads/godot-git/src/godot/./core/reference.h:267)
[18] /usr/bin/godot() [0x450f31] (/home/mateusfccp/Downloads/godot-git/src/godot/platform/x11/os_x11.cpp:2819)
[19] /usr/bin/godot(main+0x96) [0x4441c6] (/home/mateusfccp/Downloads/godot-git/src/godot/platform/x11/godot_x11.cpp:56)
[20] /usr/lib/libc.so.6(__libc_start_main+0xf3) [0x7ffff663f223] (??:0)
[21] /usr/bin/godot() [0x44406e] (??:?)
-- END OF BACKTRACE --

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 21 (15 by maintainers)

Most upvoted comments

Seems I am able to narrow this down for when this happens:

If I am editing one tileset in the new tileset editor, and make a change (such as adding a new single tile), then have it still open I switch to a different scene or tilemap, and try to click “Edit Tileset” on that one, it crashes every time.

Just tested with the 2nd beta and is still happening; clicking “Edit Tileset” button from the inspector sometimes crashes.

Linux, Ubuntu, currently testing with an Intel Integrated GPU, but saw same crashes with nvidia.

I managed to trigger it using the steps to reproduce of the OP on 3.1 alpha 4 on Linux. It didn’t crash right away but instead the editor froze, and Godot kept one CPU core busy at 100% until I killed it manually. Sounds like some kind of infinite (or very long) loop.

AUR strips debug info automatically, you have to modify the PKGBUILD to override that: https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces#Compilation_settings

some backtrace:

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] /lib64/libc.so.6(+0x385c0) [0x7fdb38abc5c0] (??:0) [2] Set<BaseButton*, Comparator<BaseButton*>, DefaultAllocator>::front() const (/home/liangdi/git/github/godot/./core/set.h:573) [3] BaseButton::_unpress_group() (/home/liangdi/git/github/godot/scene/gui/base_button.cpp:46) [4] BaseButton::_gui_input(Ref<InputEvent>) (/home/liangdi/git/github/godot/scene/gui/base_button.cpp:157) [5] MethodBind1<Ref<InputEvent> >::call(Object*, Variant const**, int, Variant::CallError&) (/home/liangdi/git/github/godot/./core/method_bind.gen.inc:729 (discriminator 12)) [6] Object::call_multilevel(StringName const&, Variant const**, int) (/home/liangdi/git/github/godot/core/object.cpp:779 (discriminator 1)) [7] Object::call_multilevel(StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&) (/home/liangdi/git/github/godot/core/object.cpp:886) [8] Viewport::_gui_call_input(Control*, Ref<InputEvent> const&) (/home/liangdi/git/github/godot/scene/main/viewport.cpp:1446 (discriminator 2)) [9] Viewport::_gui_input_event(Ref<InputEvent>) (/home/liangdi/git/github/godot/scene/main/viewport.cpp:1784 (discriminator 3)) [10] Viewport::input(Ref<InputEvent> const&) (/home/liangdi/git/github/godot/scene/main/viewport.cpp:2488 (discriminator 2)) [11] Viewport::_vp_input(Ref<InputEvent> const&) (/home/liangdi/git/github/godot/scene/main/viewport.cpp:1227) [12] MethodBind1<Ref<InputEvent> const&>::call(Object*, Variant const**, int, Variant::CallError&) (/home/liangdi/git/github/godot/./core/method_bind.gen.inc:729 (discriminator 12)) [13] Object::call(StringName const&, Variant const**, int, Variant::CallError&) (/home/liangdi/git/github/godot/core/object.cpp:945 (discriminator 1)) [14] Object::call(StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&) (/home/liangdi/git/github/godot/core/object.cpp:870) [15] SceneTree::call_group_flags(unsigned int, StringName const&, StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&) (/home/liangdi/git/github/godot/scene/main/scene_tree.cpp:262) [16] SceneTree::input_event(Ref<InputEvent> const&) (/home/liangdi/git/github/godot/scene/main/scene_tree.cpp:418 (discriminator 6)) [17] InputDefault::_parse_input_event_impl(Ref<InputEvent> const&, bool) (/home/liangdi/git/github/godot/main/input_default.cpp:414) [18] InputDefault::parse_input_event(Ref<InputEvent> const&) (/home/liangdi/git/github/godot/main/input_default.cpp:260) [19] OS_X11::process_xevents() (/home/liangdi/git/github/godot/platform/x11/os_x11.cpp:1997 (discriminator 3)) [20] OS_X11::run() (/home/liangdi/git/github/godot/platform/x11/os_x11.cpp:2819) [21] /home/liangdi/git/github/godot/bin/godot.x11.tools.64(main+0xbb) [0x1135431] (/home/liangdi/git/github/godot/platform/x11/godot_x11.cpp:56) [22] /lib64/libc.so.6(__libc_start_main+0xf3) [0x7fdb38aa8413] (??:0) [23] /home/liangdi/git/github/godot/bin/godot.x11.tools.64(_start+0x2e) [0x11352be] (??:?) – END OF BACKTRACE –

When click on “Open Editor” selection_100

Godot crashed;

But click the drop down menu “Edit” is ok selection_099