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

Duplicating a Decal node crashes Godot #100629

Open
novemberist opened this issue Dec 20, 2024 · 1 comment · May be fixed by #100632
Open

Duplicating a Decal node crashes Godot #100629

novemberist opened this issue Dec 20, 2024 · 1 comment · May be fixed by #100632

Comments

@novemberist
Copy link

Tested versions

reproducible in Godot v4.4.dev (89001f9)
not reproducible in v4.3.stable.fedora [77dcf97]

System information

Godot v4.4.dev (89001f9) - Arch Linux 20240101.0.204074 on Wayland - Wayland display driver, Single-window, 2 monitors - Vulkan (Forward+) - dedicated Intel(R) Arc(tm) A750 Graphics (DG2) - AMD Ryzen 5 3600 6-Core Processor (12 threads)

Issue description

Duplicating any Decal node immediately crashes godot

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.4.dev.custom_build (89001f91d21ebd08b59756841426f540b154b97d)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /usr/lib/libc.so.6(+0x3d1d0) [0x7f5ceb90b1d0] (??:0)
[2] /usr/bin/godot(+0x3254cf5) [0x558ef8734cf5] (??:0)
[3] /usr/bin/godot(+0x329293b) [0x558ef877293b] (??:0)
[4] /usr/bin/godot(+0x4d1b59a) [0x558efa1fb59a] (??:0)
[5] /usr/bin/godot(+0x4d63b5c) [0x558efa243b5c] (??:0)
[6] /usr/bin/godot(+0x54c0c82) [0x558efa9a0c82] (??:0)
[7] /usr/bin/godot(+0x2d98542) [0x558ef8278542] (??:0)
[8] /usr/bin/godot(+0x2d985fb) [0x558ef82785fb] (??:0)
[9] /usr/bin/godot(+0x1f0053a) [0x558ef73e053a] (??:0)
[10] /usr/bin/godot(+0x1f027ca) [0x558ef73e27ca] (??:0)
[11] /usr/bin/godot(+0x2da2e98) [0x558ef8282e98] (??:0)
[12] /usr/bin/godot(+0x2da3bc3) [0x558ef8283bc3] (??:0)
[13] /usr/bin/godot(+0x2e1444d) [0x558ef82f444d] (??:0)
[14] /usr/bin/godot(+0x2e486b9) [0x558ef83286b9] (??:0)
[15] /usr/bin/godot(+0x55e66d0) [0x558efaac66d0] (??:0)
[16] /usr/bin/godot(+0x704810) [0x558ef5be4810] (??:0)
[17] /usr/bin/godot(+0x4a42a41) [0x558ef9f22a41] (??:0)
[18] /usr/bin/godot(+0x4a4414d) [0x558ef9f2414d] (??:0)
[19] /usr/bin/godot(+0x64031c) [0x558ef5b2031c] (??:0)
[20] /usr/lib/libc.so.6(+0x25e08) [0x7f5ceb8f3e08] (??:0)
[21] /usr/lib/libc.so.6(__libc_start_main+0x8c) [0x7f5ceb8f3ecc] (??:0)
[22] /usr/bin/godot(+0x66a6c5) [0x558ef5b4a6c5] (??:0)
-- END OF BACKTRACE --
================================================================

Steps to reproduce

  • create a new project and add a decal node
  • select the node and duplicate it (ctrl+d)

Minimal reproduction project (MRP)

see steps to reproduce

@Namey5
Copy link
Contributor

Namey5 commented Dec 20, 2024

Confirming with debug symbols:

Godot v4.4.dev (fafc07335)
 - EndeavourOS #1 SMP PREEMPT_DYNAMIC Wed, 11 Dec 2024 15:35:54 +0000 on Wayland
 - X11 display driver, Multi-window, 1 monitor
 - Vulkan (Forward+)
 - dedicated NVIDIA GeForce RTX 3080 Ti (nvidia; 565.77)
 - 12th Gen Intel(R) Core(TM) i9-12900KF (24 threads)
================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.4.dev.custom_build (fafc07335bdecacd96b548c4119fbe1f47ee5866)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /usr/lib/libc.so.6(+0x3d1d0) [0x7e29bd81e1d0] (??:0)
[2] Decal::set_texture(Decal::DecalTexture, Ref<Texture2D> const&) (/home/alex/dev/godot/godot-engine/scene/3d/decal.cpp:50)
[3] void call_with_variant_args_helper<__UnexistingClass, Decal::DecalTexture, Ref<Texture2D> const&, 0ul, 1ul>(__UnexistingClass*, void (__UnexistingClass::*)(Decal::DecalTexture, Ref<Texture2D> const&), Variant const**, Callable::CallError&, IndexSequence<0ul, 1ul>) (/home/alex/dev/godot/godot-engine/./core/variant/binder_common.h:304)
[4] void call_with_variant_args_dv<__UnexistingClass, Decal::DecalTexture, Ref<Texture2D> const&>(__UnexistingClass*, void (__UnexistingClass::*)(Decal::DecalTexture, Ref<Texture2D> const&), Variant const**, int, Callable::CallError&, Vector<Variant> const&) (/home/alex/dev/godot/godot-engine/./core/variant/binder_common.h:452)
[5] MethodBindT<Decal::DecalTexture, Ref<Texture2D> const&>::call(Object*, Variant const**, int, Callable::CallError&) const (/home/alex/dev/godot/godot-engine/./core/object/method_bind.h:345)
[6] ClassDB::set_property(Object*, StringName const&, Variant const&, bool*) (/home/alex/dev/godot/godot-engine/core/object/class_db.cpp:1622)
[7] Object::set(StringName const&, Variant const&, bool*) (/home/alex/dev/godot/godot-engine/core/object/object.cpp:254)
[8] Node::_duplicate_properties(Node const*, Node const*, Node*, int) const (/home/alex/dev/godot/godot-engine/scene/main/node.cpp:3024)
[9] Node::duplicate_from_editor(HashMap<Node const*, Node*, HashMapHasherDefault, HashMapComparatorDefault<Node const*>, DefaultTypedAllocator<HashMapElement<Node const*, Node*> > >&, HashMap<Ref<Resource>, Ref<Resource>, HashMapHasherDefault, HashMapComparatorDefault<Ref<Resource> >, DefaultTypedAllocator<HashMapElement<Ref<Resource>, Ref<Resource> > > > const&) const (/home/alex/dev/godot/godot-engine/scene/main/node.cpp:2916)
[10] Node::duplicate_from_editor(HashMap<Node const*, Node*, HashMapHasherDefault, HashMapComparatorDefault<Node const*>, DefaultTypedAllocator<HashMapElement<Node const*, Node*> > >&) const (/home/alex/dev/godot/godot-engine/scene/main/node.cpp:2904)
[11] SceneTreeDock::_tool_selected(int, bool) (/home/alex/dev/godot/godot-engine/editor/scene_tree_dock.cpp:921)
[12] SceneTreeDock::shortcut_input(Ref<InputEvent> const&) (/home/alex/dev/godot/godot-engine/editor/scene_tree_dock.cpp:202)
[13] Node::_call_shortcut_input(Ref<InputEvent> const&) (/home/alex/dev/godot/godot-engine/scene/main/node.cpp:3480)
[14] SceneTree::_call_input_pause(StringName const&, SceneTree::CallInputType, Ref<InputEvent> const&, Viewport*) (/home/alex/dev/godot/godot-engine/scene/main/scene_tree.cpp:1342)
[15] Viewport::_push_unhandled_input_internal(Ref<InputEvent> const&) (/home/alex/dev/godot/godot-engine/scene/main/viewport.cpp:?)
[16] Viewport::push_input(Ref<InputEvent> const&, bool) (/home/alex/dev/godot/godot-engine/scene/main/viewport.cpp:?)
[17] Window::_window_input(Ref<InputEvent> const&) (/home/alex/dev/godot/godot-engine/scene/main/window.cpp:1681)
[18] void call_with_variant_args_helper<Window, Ref<InputEvent> const&, 0ul>(Window*, void (Window::*)(Ref<InputEvent> const&), Variant const**, Callable::CallError&, IndexSequence<0ul>) (/home/alex/dev/godot/godot-engine/./core/variant/binder_common.h:304)
[19] void call_with_variant_args<Window, Ref<InputEvent> const&>(Window*, void (Window::*)(Ref<InputEvent> const&), Variant const**, int, Callable::CallError&) (/home/alex/dev/godot/godot-engine/./core/variant/binder_common.h:419)
[20] CallableCustomMethodPointer<Window, void, Ref<InputEvent> const&>::call(Variant const**, int, Variant&, Callable::CallError&) const (/home/alex/dev/godot/godot-engine/./core/object/callable_method_pointer.h:111)
[21] Callable::callp(Variant const**, int, Variant&, Callable::CallError&) const (/home/alex/dev/godot/godot-engine/core/variant/callable.cpp:58)
[22] Variant Callable::call<Ref<InputEvent> >(Ref<InputEvent>) const (/home/alex/dev/godot/godot-engine/./core/variant/variant.h:921)
[23] DisplayServerX11::_dispatch_input_event(Ref<InputEvent> const&) (/home/alex/dev/godot/godot-engine/platform/linuxbsd/x11/display_server_x11.cpp:4082)
[24] DisplayServerX11::_dispatch_input_events(Ref<InputEvent> const&) (/home/alex/dev/godot/godot-engine/platform/linuxbsd/x11/display_server_x11.cpp:4059)
[25] Input::_parse_input_event_impl(Ref<InputEvent> const&, bool) (/home/alex/dev/godot/godot-engine/core/input/input.cpp:921)
[26] Input::flush_buffered_events() (/home/alex/dev/godot/godot-engine/core/input/input.cpp:1203)
[27] DisplayServerX11::process_events() (/home/alex/dev/godot/godot-engine/platform/linuxbsd/x11/display_server_x11.cpp:5212)
[28] OS_LinuxBSD::run() (/home/alex/dev/godot/godot-engine/platform/linuxbsd/os_linuxbsd.cpp:958)
[29] ./bin/godot.linuxbsd.editor.dev.x86_64.llvm(main+0x1bf) [0x55b2f84ca7bf] (/home/alex/dev/godot/godot-engine/platform/linuxbsd/godot_linuxbsd.cpp:86)
[30] /usr/lib/libc.so.6(+0x25e08) [0x7e29bd806e08] (??:0)
[31] /usr/lib/libc.so.6(__libc_start_main+0x8c) [0x7e29bd806ecc] (??:0)
[32] ./bin/godot.linuxbsd.editor.dev.x86_64.llvm(_start+0x25) [0x55b2f84ca525] (??:?)
-- END OF BACKTRACE --
================================================================

@Namey5 Namey5 linked a pull request Dec 20, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Unassessed
Development

Successfully merging a pull request may close this issue.

4 participants