Search Issue Tracker
Fixed in 5.2.0
Votes
1
Found in
5.0.0f1
Issue ID
671300
Regression
Yes
[AnimatorWindow] IndexOutOfRangeException: Array index is out of range is thrown and animator corrupts
To reproduce:
1. open the attached project and the animator
2. observe errors:
IndexOutOfRangeException: Array index is out of range.
UnityEditor.Graphs.AnimatorControllerTool.ResetBreadCrumbs () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Animation/AnimatorControllerTool.cs:441)
UnityEditor.Graphs.AnimatorControllerTool.ResetUI () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Animation/AnimatorControllerTool.cs:417)
UnityEditor.Graphs.LayerControllerView.get_selectedLayerIndex () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Animation/LayerControllerView.cs:27)
UnityEditor.Graphs.LayerControllerView.ResetUI () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Animation/LayerControllerView.cs:139)
UnityEditor.Graphs.AnimatorControllerTool.set_animatorController (UnityEditor.Animations.AnimatorController value) (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Animation/AnimatorControllerTool.cs:51)
UnityEditor.Graphs.AnimatorControllerTool.DetectAnimatorControllerFromSelection () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Animation/AnimatorControllerTool.cs:254)
UnityEditor.Graphs.AnimatorControllerTool.OnEnable () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Animation/AnimatorControllerTool.cs:264)
UnityEditor.DockArea:OnGUI()
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Graphs.LayerControllerView.OnEvent () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Animation/LayerControllerView.cs:435)
UnityEditor.Graphs.AnimatorControllerTool.OnGUIEditor (Rect editorRect) (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Animation/AnimatorControllerTool.cs:620)
UnityEditor.Graphs.AnimatorControllerTool.OnGUI () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Animation/AnimatorControllerTool.cs:732)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
This might be happening as the animation controller got corrupted. Corruption appears to be random, however, the errors can be seen everytime when trying to open a corrupted controller.
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
- Crash on ScheduleGenerateTilingShape when modifying PolygonCollider2D path count and setting path vertices
- Crash when a scene is created with LocalPhysicsMode::Physics3D
- [HDRP] Light doesn't bounce off terrains
- Unity Hub opens instead of the Unity Editor when launching a project from a Windows command line if a backslash is added to the end of the project path
- "ParseErrorException" is thrown when parsing a float with a very small value from JSON
Jorch
Feb 25, 2016 19:56
it keeps happening until Unity 5.3 tho...
s2quinnh
Mar 23, 2015 21:30
I believe this error was fixed when Unity 5 launched.