godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.57k stars 21.27k forks source link

Visual Script crash (3.1) #27642

Closed Darkinggq closed 4 years ago

Darkinggq commented 5 years ago

Godot version: v3.1.stable.official

OS/device including version: Debian 9.8

Issue description: visual script resource loader blade crash immediately and can not run the project :(

ERROR: load: Resource: 'res://visualscrpits/Node0.vs' is already being loaded. Cyclic reference?
   At: core/io/resource_loader.cpp:363.
ERROR: set_path: Another resource is loaded from path: res://visualscrpits/Node0.vs (possible cyclic resource inclusion)
   At: core/resource.cpp:79.
handle_crash: Program crashed with signal 11
Dumping the backtrace. Please include this when reporting the bug on 
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x33060) [0x7f6beb1ef060] (??:0)
[2] /Godot_v3.1-stable_x11.64() [0x1016578] (??:?)
[3] /Godot_v3.1-stable_x11.64() [0x1016bcb] (??:?)
[4] /Godot_v3.1-stable_x11.64() [0x101b0ec] (??:?)
[5] /Godot_v3.1-stable_x11.64() [0x101ebe9] (??:?)
[6] /Godot_v3.1-stable_x11.64() [0x101fb07] (??:?)
[7] /Godot_v3.1-stable_x11.64() [0x2530445] (??:?)
[8] /Godot_v3.1-stable_x11.64() [0x1006b5d] (<artificial>:?)
[9] /Godot_v3.1-stable_x11.64() [0x86b4ee] (??:?)
[10] /Godot_v3.1-stable_x11.64() [0x2174733] (??:?)
[11] /Godot_v3.1-stable_x11.64() [0x21e4e02] (??:?)
[12] /Godot_v3.1-stable_x11.64() [0x21e5e40] (??:?)
[13] /Godot_v3.1-stable_x11.64() [0xeec664] (<artificial>:?)
[14] /Godot_v3.1-stable_x11.64() [0x2129a84] (??:?)
[15] /Godot_v3.1-stable_x11.64() [0x1652dde] (<artificial>:?)
[16] /Godot_v3.1-stable_x11.64() [0x16cb431] (??:?)
[17] /Godot_v3.1-stable_x11.64() [0xaf1220] (??:?)
[18] /Godot_v3.1-stable_x11.64() [0x7b28ed] (??:?)
[19] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0x7f6beb1dc2e1] (??:0)
[20] /Godot_v3.1-stable_x11.64() [0x7bfc4e] (??:?)
-- END OF BACKTRACE --

Minimal reproduction project: 1.tar.gz

Darkinggq commented 5 years ago

visual script is generally not stable (often crash)

qarmin commented 5 years ago

In master I can't even open this project:

[1] /lib/x86_64-linux-gnu/libc.so.6(+0x3ef20) [0x7f45385dcf20] (??:0)
[2] EditorPropertyRevert::can_property_revert(Object*, StringName const&) (/home/rafal/Pulpit/godot/editor/editor_inspector.cpp:474)
[3] EditorFolding::_do_object_unfolds(Object*, Set<Ref<Resource>, Comparator<Ref<Resource> >, DefaultAllocator>&) (/home/rafal/Pulpit/godot/editor/editor_folding.cpp:233 (discriminator 1))
[4] EditorFolding::_do_node_unfolds(Node*, Node*, Set<Ref<Resource>, Comparator<Ref<Resource> >, DefaultAllocator>&) (/home/rafal/Pulpit/godot/editor/editor_folding.cpp:276)
[5] EditorFolding::unfold_scene(Node*) (/home/rafal/Pulpit/godot/editor/editor_folding.cpp:283)
[6] EditorNode::load_scene(String const&, bool, bool, bool, bool) (/home/rafal/Pulpit/godot/editor/editor_node.cpp:3081)
[7] EditorNode::_sources_changed(bool) (/home/rafal/Pulpit/godot/editor/editor_node.cpp:543)
[8] MethodBind1<bool>::call(Object*, Variant const**, int, Variant::CallError&) (/home/rafal/Pulpit/godot/./core/method_bind.gen.inc:729 (discriminator 12))
[9] Object::call(StringName const&, Variant const**, int, Variant::CallError&) (/home/rafal/Pulpit/godot/core/object.cpp:942 (discriminator 1))
[10] Object::emit_signal(StringName const&, Variant const**, int) (/home/rafal/Pulpit/godot/core/object.cpp:1228 (discriminator 1))
[11] Object::emit_signal(StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&) (/home/rafal/Pulpit/godot/core/object.cpp:1285)
[12] EditorFileSystem::_notification(int) (/home/rafal/Pulpit/godot/editor/editor_file_system.cpp:1159 (discriminator 4))
[13] EditorFileSystem::_notificationv(int, bool) (/home/rafal/Pulpit/godot/editor/editor_file_system.h:107 (discriminator 14))
[14] Object::notification(int, bool) (/home/rafal/Pulpit/godot/core/object.cpp:954)
[15] SceneTree::_notify_group_pause(StringName const&, int) (/home/rafal/Pulpit/godot/scene/main/scene_tree.cpp:971)
[16] SceneTree::idle(float) (/home/rafal/Pulpit/godot/scene/main/scene_tree.cpp:518 (discriminator 3))
[17] Main::iteration() (/home/rafal/Pulpit/godot/main/main.cpp:1885)
[18] OS_X11::run() (/home/rafal/Pulpit/godot/platform/x11/os_x11.cpp:3006)
[19] /usr/bin/godot(main+0xdc) [0x12f1073] (/home/rafal/Pulpit/godot/platform/x11/godot_x11.cpp:56)
[20] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f45385bfb97] (??:0)
[21] /usr/bin/godot(_start+0x2a) [0x12f0eda] (??:?)
Jummit commented 5 years ago

I just wanted to put this here, I am on Linux and whilst working with visualscript I never encountered any bugs or crashes.

fire commented 5 years ago

Tried on Windows and https://github.com/godotengine/godot/commit/ae6c390eb215c8c3f27f0f7a249cb2c07fcfc08a.

Still crashes.

KoBeWi commented 4 years ago

Seems like it still crashes, but the script is likely invalid/corrupted and it's not editor crash, so closing.

If someone can create a crashing script in Godot 3.2.3 or newer, please comment and we can reopen this.