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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
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