-
-
Notifications
You must be signed in to change notification settings - Fork 21.8k
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
Node tree state is inconsistent during NOTIFICATION_CHILD_ORDER_CHANGED
#77870
Comments
It is likely, that merging #77867 will hide this issue, so that a more elaborate setup will be required to trigger it. |
Just got the bug mentioned in the main post ("Children name does not match parent name in hashtable, this is a bug.") after updating from 4.0.3. Running through the terminal, it threw a ton of warnings (like the one at the beginning, but I only kept the one instead of the dozens for brevity's sake), gave the said error as well as "Condition "data.parent" is true" and a backtrace. Edit: Forgot to mention, this happens whenever I try to change the active scene in the editor; I can open 4.1B1 to my previously open scene, but trying to swap scene tabs crashes, regardless of the view (Script, 2D or 3D). Figure add this here in case it helps in some way.
|
@Omgesus Can you open a new issue for that and include a project, there seem to be bigger issues than just this (this issue shouldn't result in crashes) |
@RedworkDE I think I figured things out. I left the room while the project was reimporting (1100+ files takes a little bit, even on good hardware :p), and when I came back Godot had closed. My guess is that it crashed while importing and a few scenes were corrupted, and then it crashed trying to load some bad data. I did a git reset on my project and reimported everything, and it has been working so far. |
Godot version
543750a
Issue description
Looking into the cause of the
Children name does not match parent name in hashtable, this is a bug.
from #77845 and making notes in this issue before I forget what I wanted to report (again).godot/scene/main/node.cpp
Lines 1432 to 1440 in 543750a
During
NOTIFICATION_CHILD_ORDER_CHANGED
the child node had been removed from the parents list of children, the child still has the parent set, making it possible to attempt to remove it from its parent again triggering the error.Steps to reproduce
Add this script to any node and run
Minimal reproduction project
Test_77870.zip
The text was updated successfully, but these errors were encountered: