Search Issue Tracker
Fixed
Unknown (hidden) 2021.3.X, 2022.1.X, 2022.2.X
Fixed in 2023.1.0a5
Votes
0
Found in
2021.3.3f1
2022.1.3f1
2022.2.0a13
Issue ID
UUM-1438
Regression
No
Animation Window undo error in rec mode after preview offset
Getting an InvalidOperationException error after the following operations in the Animation window.
This can be reproduced with a single cube and two keys.
repro:
- create a cube with 2 keys moving the cube over time in the Animation window
or
- open attached project and test scene, open the Animation window and select cube in the scene
- scrub the animation window time ruler to activate Preview mode and set current time half way through the animation
- now offset the cube in the scene window, more than once
- now immediately click the red button to set the Animation window into record mode...
- Ctrl-Z (CMD-Z) to Undo the operation...
bug: error in the console
see arrached gif
Alternative repro:
- scrub the animation window time ruler to activate Preview mode and set current time half way through the animation
- now offset the cube in the scene window once
- RMB-Click on the animated property in the Inspector and select Add key
- Ctrl-Z (CMD-Z) to Undo the operation...
InvalidOperationException: AnimationMode.AddCandidates may only be called when recording candidates. See AnimationMode.StartCandidateRecording.
UnityEditorInternal.AnimationWindowControl.ResampleAnimation (UnityEditorInternal.AnimationWindowControl+ResampleFlags flags) (at /Users/bokken/buildslave/unity/build/Editor/Mono/Animation/AnimationWindow/AnimationWindowControl.cs:686)
UnityEditorInternal.AnimationWindowControl.ResampleAnimation () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Animation/AnimationWindow/AnimationWindowControl.cs:628)
UnityEditorInternal.AnimationWindowState.UndoRedoPerformed () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Animation/AnimationWindow/AnimationWindowState.cs:432)
UnityEditor.Undo.Internal_CallUndoRedoPerformed () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Undo/Undo.bindings.cs:237)
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler() (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:428)
this bug is present in all versions back to at least 2019.4 and current 2021.2
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The Editor becomes unresponsive and memory allocation errors are spammed in the Console when Generating Lightning
- Crash on BatchApplyPropertiesFromSourceAssetDB when opening a specific project
- Scene view Camera cannot be moved with WASD/QE keys when the Right Mouse Button is held down and the Mouse is not moved
- Crash when calling default interface method from virtual method with same name
- [Android] Unity does not include the ".aab" extension for an AppBundle when it is built via script with the buildPlayerOptions.locationPathName = "AppName.apk" and EditorUserBuildSettings.buildAppBundle = true
Resolution Note (fix version 2023.1.0a5):
Animation: Fixed AnimationWindow throwing InvalidOperationException in some cases after performing Undo
Resolution Note (2022.2.X):
internally reported low priority bug, no backport required
Resolution Note (2022.1.X):
internally reported low priority bug, no backport required
Resolution Note (2021.3.X):
internally reported low priority bug, no backport required