Repository: godot
Issue: Editor crash when pressing at the error in the debugger
Labels: bug,topic:editor,crash

**Godot version:**
<!-- Specify commit hash if non-official. -->


**OS/device including version:**
Ubuntu 19.04


**Issue description:**
Very rarely, when I press at the errors at the debugger, then editor crash with this backtrace:
```
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x43f60) [0x7fac56ef6f60] (??:0)
[2] TreeItem::get_children() (/home/rafal/Pulpit/godot/scene/gui/tree.cpp:389)
[3] ScriptEditorDebugger::_error_activated() (/home/rafal/Pulpit/godot/editor/script_editor_debugger.cpp:1768)
[4] MethodBind0::call(Object*, Variant const**, int, Variant::CallError&) (/home/rafal/Pulpit/godot/./core/method_bind.gen.inc:61 (discriminator 4))
[5] Object::call(StringName const&, Variant const**, int, Variant::CallError&) (/home/rafal/Pulpit/godot/core/object.cpp:940 (discriminator 1))
[6] Object::emit_signal(StringName const&, Variant const**, int) (/home/rafal/Pulpit/godot/core/object.cpp:1240 (discriminator 1))
[7] Object::emit_signal(StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&) (/home/rafal/Pulpit/godot/core/object.cpp:1296)
[8] Tree::_gui_input(Ref<InputEvent>) (/home/rafal/Pulpit/godot/scene/gui/tree.cpp:2651 (discriminator 2))
[9] MethodBind1<Ref<InputEvent> >::call(Object*, Variant const**, int, Variant::CallError&) (/home/rafal/Pulpit/godot/./core/method_bind.gen.inc:775 (discriminator 12))
[10] Object::call_multilevel(StringName const&, Variant const**, int) (/home/rafal/Pulpit/godot/core/object.cpp:775 (discriminator 1))
[11] Object::call_multilevel(StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&) (/home/rafal/Pulpit/godot/core/object.cpp:881)
[12] Viewport::_gui_call_input(Control*, Ref<InputEvent> const&) (/home/rafal/Pulpit/godot/scene/main/viewport.cpp:1525 (discriminator 2))
[13] Viewport::_gui_input_event(Ref<InputEvent>) (/home/rafal/Pulpit/godot/scene/main/viewport.cpp:1827 (discriminator 3))
[14] Viewport::input(Ref<InputEvent> const&) (/home/rafal/Pulpit/godot/scene/main/viewport.cpp:2672 (discriminator 2))
[15] Viewport::_vp_input(Ref<InputEvent> const&) (/home/rafal/Pulpit/godot/scene/main/viewport.cpp:1301)
[16] MethodBind1<Ref<InputEvent> const&>::call(Object*, Variant const**, int, Variant::CallError&) (/home/rafal/Pulpit/godot/./core/method_bind.gen.inc:775 (discriminator 12))
[17] Object::call(StringName const&, Variant const**, int, Variant::CallError&) (/home/rafal/Pulpit/godot/core/object.cpp:940 (discriminator 1))
[18] Object::call(StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&) (/home/rafal/Pulpit/godot/core/object.cpp:865)
[19] SceneTree::call_group_flags(unsigned int, StringName const&, StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&) (/home/rafal/Pulpit/godot/scene/main/scene_tree.cpp:267)
[20] SceneTree::input_event(Ref<InputEvent> const&) (/home/rafal/Pulpit/godot/scene/main/scene_tree.cpp:422 (discriminator 6))
[21] InputDefault::_parse_input_event_impl(Ref<InputEvent> const&, bool) (/home/rafal/Pulpit/godot/main/input_default.cpp:416)
[22] InputDefault::parse_input_event(Ref<InputEvent> const&) (/home/rafal/Pulpit/godot/main/input_default.cpp:260)
[23] InputDefault::flush_accumulated_events() (/home/rafal/Pulpit/godot/main/input_default.cpp:671)
[24] OS_X11::process_xevents() (/home/rafal/Pulpit/godot/platform/x11/os_x11.cpp:2485)
[25] OS_X11::run() (/home/rafal/Pulpit/godot/platform/x11/os_x11.cpp:3032)
[26] /usr/bin/godot(main+0xdc) [0x138298e] (/home/rafal/Pulpit/godot/platform/x11/godot_x11.cpp:56)
[27] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x7fac56ed9b6b] (??:0)
[28] /usr/bin/godot(_start+0x2a) [0x13827fa] (??:?)
```

[Bug.zip](https://github.com/godotengine/godot/files/3254365/Bug.zip)

**Minimal reproduction project:**
I only get this error in this project
https://github.com/qarmin/The-worst-Godot-test-project
commit 9300f7a17ee92c4713199472080088c43fb19f85