-
-
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
Godot 4.0.3 RC2 exits immediately after clicking on a Skeleton3D node #77046
Comments
Looking into it too. |
Test plan:
|
Attached is a smaller test project, click on Skeleton3D node to observe the abrupt exit. |
I'll have a look |
#77074 this fixes the crash. |
Some notes from rocket chat:
The part that was confusing to me was that is_inside_tree() returns true before _notification NOTIFICATION_ENTER_TREE has fired, but this is not new behavior. (the parent class is synchronously triggering another notification) Before the PR #76592, widgets were being constructed in the constructor. from reading other editor code, this pattern is universal or very common So by calling create_editors after the constructor, it breaks the pattern. Supposedly, some editor constructions were moved to ENTER_TREE, not just for this node. But I haven't seen this, and Yuri confirmed that it is rare to construct widgets in this way. The other problem with #76592: if ENTER_TREE happens multiple times (reloading or reparenting) this will leak mem. In summary, most editor components construct everything in the constructor, so they do not need to worry about ordering between ENTER_TREE and THEME_CHANGED. Otherwise, it might be necessary to use null check instead of is_inside_tree() From @akien-mga :
|
Thanks for the fix and the explanation :) |
Godot version
v4.0.3.rc2.official.2ac4e3bb3
System information
Windows 10, NVIDIA GeForce GTX 745
Issue description
Godot 4.0.3 RC2 exits immediately after clicking on a Skeleton3D node. This does not happen with 4.0.3 RC1, so it appears to be a regression with RC2.
Steps to reproduce
Expected behavior (from RC1). I am having trouble recording mouse cursor, but basically I clicked on Skeleton3D on the left and the bone hierarchy shows up on the right.
godot_4_0_3_rc1.mp4
Actual behavior (from RC2). The yellow box shows up, and Godot exits abruptly, which causes the recorder to stop.
godot_4_0_3_rc2.mp4
Minimal reproduction project
skeleton_test.zip
The text was updated successfully, but these errors were encountered: