-
-
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
Off-thread access error spam in specific case from AnimationTree #102106
Comments
I've tried to follow the steps to reproduce the issue but couldn't trigger it (on Linux, Fedora 41). You mention a MRP is n/a, but the steps you outline seem like they'd give a reproducible project? Can you attach a MRP that reproduces it reliably for you? If it's platform/timing specific, that will also make it easier to see if others can trigger the bug. |
Sorry, I've updated the project with an mrp. The reason I was hesitant to include one was because although there needed to be an animation tree, or at least seemed to need, the project itself did not necessarily reproduce the issue. It seemed somehow dependent on compilation options when I was trying to repro/nail it down before. With the current mrp on master (296de7d), I did
On a larger project with many more animation nodes this turned into a few pages of console spam. I'll try to repro on windows/linux in a bit. |
This seems maybe specific to macs. I was not able to reproduce on windows or linux with either the official 4.4.beta3 builds or my own off the current head but on macos I'm able to reproduce on both master and 4.4.beta3 even when I backup and remove
|
Ok I could've found this much more easily lol. Lessons for next time I guess. This is being caused by Considering the error is printed when the preview is being generated and getting the animation list only serves to assign the property hint, I think it would be reasonable to just not add that hint if not on the main thread. The current behavior anyways gives back an empty list of options. |
Tested versions
Reproducible on and after [53f3143] but I have no idea why this commit would be related. Bizarrely while initially bisecting I was only able to reproduce the error on mono builds and not standard, but after
git clean -fdx
and rebuilding to make sure I was only able to reproduce on standard and not mono.System information
Godot v4.4.beta.mono (6dc78c8) - macOS Sequoia (15.2.0) - Multi-window, 1 monitor - Metal (Forward+) - integrated Apple M2 (Apple8) - Apple M2 (8 threads)
Issue description
This error gets printed out once per animation node within an animation tree (at least a blend tree) when opening the project and sometimes when running the project/opening a scene as well:
at least in this case (I'm not sure if there are other triggering cases)
is_visible
is called byAnimationTreeEditor::get_animation_list
. The error can be avoided by changing the condition in that method to:however this feels like a bad hack, especially without understanding the root cause
Steps to reproduce
In an affected version, create an AnimationTree node with a blend tree root and add animation playback nodes to the tree. There doesn't need to be an animation library or an animation set on the node for the error to print. Save the scene and close + reopen the editor.
Minimal reproduction project (MRP)
mrp.zip
The text was updated successfully, but these errors were encountered: