Selecting different UI game objects values using a mouse in the Inspector window throws InvalidOperationException: Stack empty. errors
Steps to reproduce:
- Open a new project
- Create any UI (Canvas) game object
- In the Inspector window, using a mouse, start selecting different input fields
Actual results:
Getting errors:
InvalidOperationException: Stack empty.
System.Collections.Generic.Stack`1[T].ThrowForEmptyStack () (at <a145436f8291401f83a99993a54f74b5>:0)
System.Collections.Generic.Stack`1[T].Pop () (at <a145436f8291401f83a99993a54f74b5>:0)
UnityEditor.EditorGUI.EndProperty () (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorGUI.cs:7389)
UnityEditor.RectTransformEditor.SmartPositionAndSizeFields (System.Boolean anyWithoutParent, System.Boolean anyDrivenX, System.Boolean anyDrivenY) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/RectTransformEditor.cs:494)
UnityEditor.RectTransformEditor.OnInspectorGUI () (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/RectTransformEditor.cs:329)
UnityEditor.UIElements.InspectorElement+<>c_DisplayClass88_0.<CreateInspectorElementUsingIMGUI>b_2 () (at /Users/bokken/build/output/unity/unity/Editor/Mono/UIElements/Inspector/InspectorElement.cs:872)
UnityEditor.GUIView:ProcessEvent(EntityId, IntPtr, Boolean&) (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUIView.cs:86)
Expected results:
No errors while navigating and editing UI game objects values in the Inspector window
Reproducible with versions:
6000.7.0a3 (4e1564fc2cca), 6000.7.0a4 (7305b6f6fd4f)
Not reproducible with versions:
6000.0.81f1 (6238fec1e98f), 6000.3.21f1 (c02631ffc030), 6000.5.7f1 (017862109af0), 6000.6.0b7 (53d4abb44f07), 6000.7.0a2 (83605ec097c0)
Tested on (OS):
MacOS Sequoia 15.7.7 M1, Windows 11