Search Issue Tracker
Fixed in 2018.3.X
Votes
0
Found in
2018.1.0b10
Issue ID
1010230
Regression
No
[2D] InvalidOperationException occurs on selecting resliced sprite gameObject once its bones are generated
InvalidOperationException occurs on selecting resliced sprite once its bones are generated and scene view disappears on scaling docked window next to it
Steps to Repro:
1. Open attached project
2. go to project window and select atlas
3. Open sprite editor > Slice > apply
4. Open 'SampleScene' and select 'atlas' game object
5. Scale the hierarchy window docked next to scene view
Actual Result:
1. Observe that scene view disappears
2. Observe the console for errors
Occurring with:
2018.1.0b10, 2018.1.0b5
Note:
unable to check with older unity versions as packman UI is not available
Occurring on:
Windows 10 and Mac OSX 10.13
Stack Trace:
Error 1:
InvalidOperationException: Operation is not valid due to the current state of the object
System.Linq.Enumerable.First[SpriteBone] (IEnumerable`1 source)
UnityEditor.Experimental.U2D.Animation.BoneGizmo.DrawBoneGizmo (UnityEngine.Experimental.U2D.Animation.SpriteSkin skin, GizmoType gizmoType) (at C:/ProgramData/Unity/cache/packages/staging-packages.unity.com/com.unity.2d.animation@1.0.10-experimental/Editor/SpriteSkin/BoneGizmo.cs:38)
UnityEditor.Experimental.U2D.Animation.BoneGizmo.<BoneGizmo>m__0 (UnityEditor.SceneView sv) (at C:/ProgramData/Unity/cache/packages/staging-packages.unity.com/com.unity.2d.animation@1.0.10-experimental/Editor/SpriteSkin/BoneGizmo.cs:25)
UnityEditor.SceneView.CallOnSceneGUI () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:2605)
UnityEditor.SceneView.HandleSelectionAndOnSceneGUI () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1907)
UnityEditor.SceneView.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1744)
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/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
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/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:291)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:284)
UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:251)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Error 2:
GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
Add comment