-
-
Notifications
You must be signed in to change notification settings - Fork 21k
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
calling TreeItem set_text() on a TreeItem that was removed via remove_child() causes debugging to end without any error message #85650
Comments
A check in either place should be sufficient, possible leftover from allowing handling items without a tree and the previous assumption tree items were always in a tree |
Yup, crashing specifically here at Lines 4347 to 4353 in d76c1d0
|
That's not the error position, the tree is null, so it crashes when it calls the method on tree |
Yeah my bad, I failed to notice |
Godot version
4.2 Stable
System information
Linux
Issue description
Calling TreeItem set_text() on a TreeItem that was removed via remove_child() causes debugging to end and the application to close without any error message.
Steps to reproduce
Run the included example to get the debugger to crash. Comment out "treeItem.remove_child(subTreeItem)" for normal behaviour.
Minimal reproduction project
treeItemCrash.zip
The text was updated successfully, but these errors were encountered: