Search Issue Tracker
Fixed in 5.0.1
Votes
0
Found in [Package]
5.0.0, 4.1.2, 1.0.14-preview.2
Issue ID
1256914
Regression
No
[2D][SpriteShape] Exception thrown continuously when Undo operation is performed with sprites are assigned earlier
When more than 2 Sprites are assigned to "Sprite Shape Profiler" and after that when Undo operation is performed then it causes the Editor to throw ArgumentOutOfRangeException continuously, refer the attached video.
Steps to repro:
1. Create a new project with 2D Template
2. Project window > Create > 2D > Sprite Shape Profiler
3. Sprites > Add 2 Sprites Selector > Assigned Sprites
4. Edit > Undo Inspector
5. Edit > Undo Inspector > Repeat 2 times
Actual Result:
ArgumentOutOfRangeException is thrown on performing Undo operation when more than 2 sprites are assigned to "Sprite Shape Profiler" earlier
Expected Result:
Undo operation is performed gracefully
Occurring on:
2020.2.0a15, 2020.1.0b14, 2019.3.15f1, 2019.2.13f1, 2019.1.11f1, 2018.4.24f1
Package found version: 5.0.0, 4.1.2, 3.0.11, 2.1.0-preview.11, 1.0.14-preview.2
Environment:
Windows10 and macOS 10.14
Stack trace:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <fb001e01371b4adca20013e0ac763896>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <fb001e01371b4adca20013e0ac763896>:0)
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <fb001e01371b4adca20013e0ac763896>:0)
UnityEditor.U2D.SpriteShapeEditor.DrawSpritePreview (UnityEngine.Rect rect) (at Library/PackageCache/com.unity.2d.spriteshape@5.0.0/Editor/SpriteShapeEditor.cs:606)
UnityEditor.U2D.SpriteShapeEditor.DoRangesGUI () (at Library/PackageCache/com.unity.2d.spriteshape@5.0.0/Editor/SpriteShapeEditor.cs:544)
UnityEditor.U2D.SpriteShapeEditor.OnInspectorGUI () (at Library/PackageCache/com.unity.2d.spriteshape@5.0.0/Editor/SpriteShapeEditor.cs:290)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <47f38d2e628840eaa536de5b3e34149b>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
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
- “ArgumentOutOfRangeException” error appears when inserting a double character if using “SetValueWithoutNotify” on UI Toolkit’s TextField
- Particle System emission delays between particle generations when playing the simulation
- EditorUtility.DisplayDialog is not shown when Input.GetMouseButtonDown is called a second time
- Animator Enum Properties get set to 0 instead of the value specified in the Scene when the Property is animated by a State that is not playing
- [iOS] Background thread runs a few times slower when “application.targetFrameRate“ is set to 30 compared to 29 on some iOS devices
Resolution Note (fix version 5.0.1):
A fix for this issue is available on Unity 2020.2.0b1 with the 2D SpriteShape 5.0.1 package
Resolution Note:
A fix for this issue is available on Unity 2019.4.10f1 and above with 2D SpriteShape 3.0.13 package
Resolution Note:
A fix for this issue is available on Unity 2020.1.4f1 and above with 2D SpriteShape 4.1.3 package