-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Crash when duplicating an editor internal node #90991
Comments
According to the stack trace, it doesnt even happen inside _duplicate. |
The segfault happens here: Lines 2903 to 2905 in 4a01602
because p_copy is null (discovered using gdb). Lines 2815 to 2826 in 4a01602
And Lines 2656 to 2661 in 4a01602
|
I'll definitely take a look at this. |
Thanks! |
Tested versions
System information
Linux
Issue description
Trying to duplicate a node that class isn't exposed by ClassDB results in a segfault.
This happens because the node created by Node::duplicate() is instantiated using ClassDB:
godot/scene/main/node.cpp
Lines 2656 to 2661 in 4a01602
Backtrace:
Steps to reproduce
Search for a node named "SceneTreeEditor" in the editor scene tree using a
@tool
script and duplicate it:Minimal reproduction project (MRP)
MRP: scene_tree_editor_crash.zip (open node.tscn in the editor to reproduce the crash)
The text was updated successfully, but these errors were encountered: