You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a Node is added to the scene tree by add_sibling and removed (either by reparenting or removing) from the scene tree during it's own ready callback, a crash can occur. The crash is caused by line 1430 in Node.cpp trying to set the index of the new Node, assuming it knows that it is (or where it is) in the scene tree.
Godot version
v4.1.3.stable.official [f06b6836a]
System information
Godot v4.1.3.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1080 (NVIDIA; 31.0.15.3734) - Intel(R) Core(TM) i5-10600KF CPU @ 4.10GHz (12 Threads)
Issue description
If a Node is added to the scene tree by
add_sibling
and removed (either by reparenting or removing) from the scene tree during it's ownready
callback, a crash can occur. The crash is caused by line 1430 in Node.cpp trying to set the index of the new Node, assuming it knows that it is (or where it is) in the scene tree.godot/scene/main/node.cpp
Lines 1428 to 1430 in b733901
I opened a pull request (#78834) to fix this in the past, but consensus wasn't reached so I figured the issue should be tracked seperately
Steps to reproduce
Attach the following script to a button and press it a few times:
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: