Search Issue Tracker
Fixed in 4.2.0
Fixed in 3.2.0
Votes
0
Found in [Package]
4.1.1, 4.1.0, 3.0.8
Issue ID
1220887
Regression
Yes
[2D] ArgumentOutOfRangeException thrown continuously on Reverting the Edges on Sprite in Skinning Editor
On Reverting the Edges from Skinning Editor causes the editor to throws ArgumentOutOfRangeException continuously, refer the attached video.
Steps to repro:
1. Create a new project with 2D Template.
2. Import any texture
3. Open Sprite Editor Window
4. Select "Skinning Editor"
5. Create Vertex
6. Create Edge > Revert
Actual Result:
ArgumentOutOfRangeException thrown continuously when Edges are Reverted.
Expected Result:
Created edges should be Reverted without any exception thrown.
Occurring on:
2020.1.0a24, 2020.1.0a1, 2019.3.0b11 with package version 4.1.1, 4.1.0, 3.0.8
Working Fine on:
2020.1.0a1, 2019.3.0b11 with package version 3.0.6, 3.0.5, 3.0.4
Environment:
Windows 10 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 <437ba245d8404784b9fbab9b439ac908>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <437ba245d8404784b9fbab9b439ac908>:0)
UnityEditor.U2D.Animation.MeshCache.GetPosition (System.Int32 index) (at Library/PackageCache/com.unity.2d.animation@4.1.1/Editor/SkinningModule/SkinningCache/MeshCache.cs:74)
UnityEditor.U2D.Animation.SpriteMeshController.CalculateEdgeIntersection (System.Int32 vertexIndex, System.Int32 hoveredVertexIndex, System.Int32 hoveredEdgeIndex, UnityEngine.Vector2 targetPosition) (at Library/PackageCache/com.unity.2d.animation@4.1.1/Editor/SkinningModule/IMGUI/SpriteMeshController.cs:613)
UnityEditor.U2D.Animation.SpriteMeshController.UpdateEdgeInstersection () (at Library/PackageCache/com.unity.2d.animation@4.1.1/Editor/SkinningModule/IMGUI/SpriteMeshController.cs:599)
UnityEditor.U2D.Animation.SpriteMeshController.DrawEdges () (at Library/PackageCache/com.unity.2d.animation@4.1.1/Editor/SkinningModule/IMGUI/SpriteMeshController.cs:127)
UnityEditor.U2D.Animation.SpriteMeshController.OnGUI () (at Library/PackageCache/com.unity.2d.animation@4.1.1/Editor/SkinningModule/IMGUI/SpriteMeshController.cs:64)
UnityEditor.U2D.Animation.MeshTool.OnGUI () (at Library/PackageCache/com.unity.2d.animation@4.1.1/Editor/SkinningModule/MeshTool/MeshTool.cs:138)
UnityEditor.U2D.Animation.BaseTool.DoGUI () (at Library/PackageCache/com.unity.2d.animation@4.1.1/Editor/SkinningModule/BaseTool.cs:59)
UnityEditor.U2D.Animation.MeshToolWrapper.DoMeshGUI () (at Library/PackageCache/com.unity.2d.animation@4.1.1/Editor/SkinningModule/MeshTool/MeshToolWrapper.cs:101)
UnityEditor.U2D.Animation.MeshToolWrapper.OnGUI () (at Library/PackageCache/com.unity.2d.animation@4.1.1/Editor/SkinningModule/MeshTool/MeshToolWrapper.cs:83)
UnityEditor.U2D.Animation.BaseTool.DoGUI () (at Library/PackageCache/com.unity.2d.animation@4.1.1/Editor/SkinningModule/BaseTool.cs:59)
UnityEditor.U2D.Animation.SkinningModule.DoMainGUI () (at Library/PackageCache/com.unity.2d.animation@4.1.1/Editor/SkinningModule/SkinningModule.cs:298)
UnityEditor.U2D.Sprites.SpriteEditorWindow.DoTextureGUIExtras () (at F:/build1/Unity 2020.1.0a24/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.2d.sprite/Editor/SpriteEditor/SpriteEditorWindow.cs:663)
UnityEditor.U2D.Sprites.SpriteUtilityWindow.DoTextureGUI () (at F:/build1/Unity 2020.1.0a24/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.2d.sprite/Editor/SpriteEditor/SpriteUtilityWindow.cs:377)
UnityEditor.U2D.Sprites.SpriteEditorWindow.DoTextureAndModulesGUI () (at F:/build1/Unity 2020.1.0a24/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.2d.sprite/Editor/SpriteEditor/SpriteEditorWindow.cs:635)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <3ba7d054e9e347bc9510309c7861b19b>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <3ba7d054e9e347bc9510309c7861b19b>:0)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <3ba7d054e9e347bc9510309c7861b19b>:0)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at <3ba7d054e9e347bc9510309c7861b19b>:0)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render () (at <3ba7d054e9e347bc9510309c7861b19b>:0)
UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <3ba7d054e9e347bc9510309c7861b19b>:0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <3ba7d054e9e347bc9510309c7861b19b>:0)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at <3ba7d054e9e347bc9510309c7861b19b>:0)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <3ba7d054e9e347bc9510309c7861b19b>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <3ba7d054e9e347bc9510309c7861b19b>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <3ba7d054e9e347bc9510309c7861b19b>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <3ba7d054e9e347bc9510309c7861b19b>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <3ba7d054e9e347bc9510309c7861b19b>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <fa83d136cc594919bea78eaa8421fde3>:0)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Add comment