Search Issue Tracker

Fixed in 2020.1.X

Fixed in 2019.2.X, 2019.3.X

Votes

0

Found in

2019.3.0b1

Issue ID

1179878

Regression

No

[UI Element Debugger] InvalidOperationException: Stack empty error is thrown on changing Windows panel visibility mode to Hidden

UI Toolkit

-

InvalidOperationException: Stack empty error is thrown on changing Windows panel visibility mode to Hidden.

Steps to repro:
1. Create a new project.
2. Windows > Analysis> UIElement Debugger.
3. Select ProjectBrowser window from Select Panel dropdown.
4. Select VisualElement > Click on Show All > Change Visibility Mode to Hidden.

Actual Result:
InvalidOperationException error is thrown in the console.

Expected Result:
No error in the console.

Reproducible in:
2020.1.0a2, 2019.3.0b1, 2019.3.0a1, 2019.2.0f1.

Environment:
Windows & Mac 10.14.

Stack trace:
InvalidOperationException: Stack empty.
System.Collections.Generic.Stack`1[T].ThrowForEmptyStack () (at <639bbb26ab3943999c40ae26105f428e>:0)
System.Collections.Generic.Stack`1[T].Peek () (at <639bbb26ab3943999c40ae26105f428e>:0)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Boolean straightY, System.Single pixelsPerPoint, System.Exception& immediateException) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.UIR.UIRenderDevice.EvaluateChain (UnityEngine.UIElements.UIR.RenderChainCommand head, UnityEngine.Rect viewport, UnityEngine.Matrix4x4 projection, UnityEngine.Texture atlas, UnityEngine.Texture gradientSettings, System.Single pixelsPerPoint, System.Exception& immediateException) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.UIR.UIRenderDevice.DrawChain (UnityEngine.UIElements.UIR.RenderChainCommand head, UnityEngine.Rect viewport, UnityEngine.Matrix4x4 projection, UnityEngine.Texture atlas, UnityEngine.Texture gradientSettings, System.Single pixelsPerPoint, System.Exception& immediateException) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.UIR.RenderChain.Render (UnityEngine.Rect viewport, UnityEngine.Matrix4x4 projection) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.UIRRepaintUpdater.DrawChain (UnityEngine.Rect viewport, UnityEngine.Matrix4x4 projection) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTree () (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <3dd62d3208914b14a9c3250b5037e105>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <47533d5f70c041debc5c751474c7409d>:0)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.