Animation Editor crashes when trying to load or import a CurveAnimation that has been relocated (moved to a different location than inside the animation editor at any point)
Reproduction Steps:
Create new place
Create a rig using the Rig Builder
Create an animation and give it a keyframe (move one of the joints)
Convert it to a Curve Animation using the button on the top left of the Animation Editor
Save the animation
Close the editor
Move the CurveAnimation from AnimSaves to a different location (ReplicatedStorage for example)
Move the CurveAnimation back into AnimSaves model
Open the animation editor
Load the animation (It will crash)
You can also try publishing the CurveAnimation object (after moving it) to the website and importing that into a rig.
Reproduction Files:
I’ve attached a place file that has reproduced up to step 8. If you open the animation editor on the rig and hit Load -> test, studio will crash. curveeditorcrashtest.rbxl (84.9 KB)
Beta Features: This has been tested with both ALL beta features enabled and ALL beta features disabled
System Info: This is happening on Windows 11.
Update: We have been able to reproduce the issue and we have a fix. This fix allows us to load your animation as well, so be assured that your work won’t be lost. Unfortunately this will require a new release of Studio.
As a workaround, you can delete the NamedKeyframeEvent instance that you can find directly under AnimSaves/animation name/. This will delete all the named keyframes created in your animation (including the “End” keyframe created by default), but it will allow you to open your animation with the current version of Studio. If your experience requires named keyframes, you will have to add them back manually when the fix is live.
Is this fix live yet? I’ve tried to load a CurveAnimation recently and ran into the bug.
For anyone else running into this, if you don’t want to mess with deleting anything you can use a plugin that converts a curve animation to a keyframe sequence, then turn that back into a curve animation in the Animation Editor
A few weeks ago we fixed a bug that prevented named keyframes from being exported for curve animations. Unfortunately, this caused the crash mentioned in this thread. We had a fix for that, which we enabled for a while, but it then revealed another bug further down the animation pipeline in the engine and we had to revert the fix.
We have decided to revert the original fix as well. This means that once again named keyframes won’t be exported for curve animations, until we solve the final bug.
You should reopen your animations in the ACE and publish them once again. This would remove the named keyframes causing the issues you are seeing.
Our apologies for the delay and the inconvenience. We appreciate your patience.