-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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 removing last child node from a GraphNode #65557
Comments
The backtrace on Windows is a bit more explicit
Adding a print before the loop on
but we try to access a child using slot key without checking if it exists godot/scene/gui/graph_node.cpp Lines 395 to 397 in 27e1323
I don't know what is |
Godot version
v4.0.alpha16.official [86dd3f3]
System information
Ubuntu 22.04.1 LTS
Issue description
When you have a GraphNode that contains a single node, moving the child node out of the GraphNode or deleting it will cause the editor to crash, and will also cause a running project to crash if you remove it via code.
Adding an additional node will cause it not to happen until you remove all but one node again, all but the last child node can be safely removed.
This also happened in v4.0.alpha15.official [432b25d] (but not in v3.5.stable.official [991bb6a] or v3.5.1.rc1.official [293c384])
Steps to reproduce
Minimal reproduction project steps:
or
queue_free()
In the editor:
While running:
queue_free()
tofunc _ready():
Minimal reproduction project
test project 4 alpha 16.zip
The text was updated successfully, but these errors were encountered: