please log a bug with a repro scene showing the crash, the crash did happen a few time to some user but we don’t have a good repro project to investigate.
The bug happens when mixing animations that have “missing” curves (curves that exist in the clip but do not map on anything on the object) with other animations. It causes a mixup between animation states.
This will sometimes crash (usually if you have invalid curves in one of your animations. Those usually throw out errors or warnings), and will sometime remap your animation curve to something unrelated, and will lead to weird results.
Fixing your warnings in your clips might help, and removing unwanted curves might also help, but as I said, the fix for this will come in the next patch, or the one after, depending on QA and release timing.
In some cases, we share animations between different hierarchies. To animate objects that are sometimes in the hierarchy, and sometimes are not, although we don’t see any log warning. Clean up the curves is not an option in this case.
The same animations didn’t crash the editor in a clean project, in very similar conditions. We will send the repro project anyway
I’m having the same problem with my game when i updated to 5.4.
I narrowed it down to a specific animation.play(…) in the code, but can’t seem to fix it. I’ve re-imported the fbx, cleaned the warnings, etc, but nothing works.
Everything else seems to work. It’s just this specific animationclip or something that’s causing the issue.
5.4.0p3 just got released, and the fix didn’t make it.
It will be in 5.4.0p4 (or 5.4.1? I’m not sure at what patch number we roll up the patches into a minor version)
Looking at the recent history of patches here: Download Archive, the fix should be there next week, or the week after that, if there is a 5.3.x patch next week.