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

Crashing and breaking a scene when moved with parent scene #79850

Closed
gravit22 opened this issue Jul 24, 2023 · 2 comments · Fixed by #81657
Closed

Crashing and breaking a scene when moved with parent scene #79850

gravit22 opened this issue Jul 24, 2023 · 2 comments · Fixed by #81657

Comments

@gravit22
Copy link

gravit22 commented Jul 24, 2023

Godot version

4.1.1

System information

Godot v4.1.1.stable - Ubuntu 22.04.2 LTS 22.04 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 3GB (nvidia; 525.125.06) - AMD Ryzen 9 3900X 12-Core Processor (24 Threads)

Issue description

If I move inherited scene, with the scene that I had inherited from + if those two scenes are open in the editor, it crashes, and the inherited scene is breaking.

Steps to reproduce

image
The project is already set up, the only thing that you need to do, is to open two scenes and then select them both and try to drug them to "directory" folder, and it should crash.

Minimal reproduction project

Bug report.zip

@gravit22 gravit22 changed the title Crushing and braking scene when moved with parent scene Crashing and braking scene when moved with parent scene Jul 24, 2023
@gravit22 gravit22 changed the title Crashing and braking scene when moved with parent scene Crashing and braking a scene when moved with parent scene Jul 24, 2023
@svdragster
Copy link

I tried it on my machine, godot 4.1.1 built with scons debug_symbols=yes. An empty "Alert" error box pops up right before the crash.

Godot Engine v4.1.1.stable.custom_build.bd6af8e0e - https://godotengine.org
OpenGL API 3.3.0 NVIDIA 535.86.05 - Compatibility - Using Device: NVIDIA - NVIDIA GeForce RTX 3060
 
Editing project: /home/sven/Downloads/Bug report
Godot Engine v4.1.1.stable.custom_build.bd6af8e0e - https://godotengine.org
Vulkan API 1.3.242 - Forward+ - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce RTX 3060
[sven@sveni9 bin]$  
ERROR: Attempt to open script 'res://Manager.gd' resulted in error 'File not found'.
   at: load_source_code (modules/gdscript/gdscript.cpp:1032)
ERROR: Failed loading resource: res://Manager.gd. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:273)
ERROR: Can't autoload: res://Manager.gd.
   at: _create_autoload (editor/editor_autoload_settings.cpp:417)
WARNING: Blend file import is enabled in the project settings, but no Blender path is configured in the editor settings. Blend files will not be imported.
     at: _editor_init (modules/gltf/register_types.cpp:73)
ERROR: Cannot open file 'res://bug.tscn'.
   at: load (scene/resources/resource_format_text.cpp:1638)
ERROR: Failed loading resource: res://bug.tscn. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:273)
ERROR: Cannot open file 'res://bug.tscn'.
   at: load (scene/resources/resource_format_text.cpp:1638)
ERROR: Failed loading resource: res://bug.tscn. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:273)
ERROR: Invalid scene: root node ChildBug in an instance, but there's no base scene.
   at: instantiate (scene/resources/packed_scene.cpp:138)
ERROR: Index p_idx = 1 is out of bounds (edited_scene.size() = 1).
   at: move_edited_scene_to_index (editor/editor_data.cpp:813)
ERROR: FATAL: Index p_index = 1 is out of bounds (size() = 1).
   at: get (./core/templates/cowdata.h:155)

================================================================
handle_crash: Program crashed with signal 4
Engine version: Godot Engine v4.1.1.stable.custom_build (bd6af8e0ea69167dd0627f3bd54f9105bda0f8b5)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /usr/lib/libc.so.6(+0x39ab0) [0x7f3c2a7faab0] (??:0)
[2] /home/sven/dev/godot_src/godot/bin/godot.linuxbsd.editor.x86_64(+0x2cc9ddc) [0x55fee2dcaddc] (/home/sven/dev/godot_src/godot/./core/templates/cowdata.h:155 (discriminator 3))
[3] /home/sven/dev/godot_src/godot/bin/godot.linuxbsd.editor.x86_64(+0x2045157) [0x55fee2146157] (/home/sven/dev/godot_src/godot/editor/editor_node.cpp:6072 (discriminator 2))
[4] /home/sven/dev/godot_src/godot/bin/godot.linuxbsd.editor.x86_64(+0x207773d) [0x55fee217873d] (/home/sven/dev/godot_src/godot/./core/templates/cowdata.h:412)
[5] /home/sven/dev/godot_src/godot/bin/godot.linuxbsd.editor.x86_64(+0x4ea119b) [0x55fee4fa219b] (/home/sven/dev/godot_src/godot/core/variant/callable_bind.cpp:145)
[6] /home/sven/dev/godot_src/godot/bin/godot.linuxbsd.editor.x86_64(+0x5152179) [0x55fee5253179] (/home/sven/dev/godot_src/godot/core/object/message_queue.cpp:220)
[7] /home/sven/dev/godot_src/godot/bin/godot.linuxbsd.editor.x86_64(+0x5155609) [0x55fee5256609] (/home/sven/dev/godot_src/godot/core/object/message_queue.cpp:320)
[8] /home/sven/dev/godot_src/godot/bin/godot.linuxbsd.editor.x86_64(+0x310a136) [0x55fee320b136] (/home/sven/dev/godot_src/godot/scene/main/scene_tree.cpp:473)
[9] /home/sven/dev/godot_src/godot/bin/godot.linuxbsd.editor.x86_64(+0xd6331a) [0x55fee0e6431a] (/home/sven/dev/godot_src/godot/main/main.cpp:3387 (discriminator 2))
[10] /home/sven/dev/godot_src/godot/bin/godot.linuxbsd.editor.x86_64(+0xcf69a1) [0x55fee0df79a1] (/home/sven/dev/godot_src/godot/platform/linuxbsd/os_linuxbsd.cpp:912 (discriminator 1))
[11] /home/sven/dev/godot_src/godot/bin/godot.linuxbsd.editor.x86_64(+0xce7559) [0x55fee0de8559] (/home/sven/dev/godot_src/godot/platform/linuxbsd/godot_linuxbsd.cpp:76)
[12] /usr/lib/libc.so.6(+0x23850) [0x7f3c2a7e4850] (??:0)
[13] /usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7f3c2a7e490a] (??:0)
[14] /home/sven/dev/godot_src/godot/bin/godot.linuxbsd.editor.x86_64(+0xcf3c95) [0x55fee0df4c95] (??:?)
-- END OF BACKTRACE --
================================================================


@svdragster
Copy link

Could be related to #77289

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

Successfully merging a pull request may close this issue.

4 participants