RuntimeUnityEditor icon indicating copy to clipboard operation
RuntimeUnityEditor copied to clipboard

GUI Error: You are pushing more GUIClips than you are popping.

Open DarkEyeDragon opened this issue 3 years ago • 1 comments

Hello! Just stumbled upon your little tool. Looks promising! However my game (Alien Marauder) crashes when enabling the overlay (by pressing f12).

The stacktrace:

[Error  : Unity Log] GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced.
[Error  : Unity Log] ArgumentException: GUILayout: Mismatched LayoutGroup.repaint
Stack trace:
UnityEngine.GUILayoutUtility.BeginLayoutGroup (UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options, System.Type layoutType) (at <22f4964958684322850dc0d6e1fb8a07>:0)
UnityEngine.GUILayout.BeginHorizontal (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <22f4964958684322850dc0d6e1fb8a07>:0)
UnityEngine.GUILayout.BeginHorizontal (UnityEngine.GUILayoutOption[] options) (at <22f4964958684322850dc0d6e1fb8a07>:0)
RuntimeUnityEditor.Core.ObjectTree.ObjectTreeViewer.DisplayObjectTreeHelper (UnityEngine.GameObject go, System.Int32 indent, System.Int32& currentCount) (at <99c1546bc79d4347bde8599da486cdaa>:0)
RuntimeUnityEditor.Core.ObjectTree.ObjectTreeViewer.DisplayObjectTree () (at <99c1546bc79d4347bde8599da486cdaa>:0)
RuntimeUnityEditor.Core.ObjectTree.ObjectTreeViewer.WindowFunc (System.Int32 id) (at <99c1546bc79d4347bde8599da486cdaa>:0)
UnityEngine.GUILayout+LayoutedWindow.DoWindow (System.Int32 windowID) (at <22f4964958684322850dc0d6e1fb8a07>:0)
UnityEngine.GUI.CallWindowDelegate (UnityEngine.GUI+WindowFunction func, System.Int32 id, System.Int32 instanceID, UnityEngine.GUISkin _skin, System.Int32 forceRect, System.Single width, System.Single height, UnityEngine.GUIStyle style) (at <22f4964958684322850dc0d6e1fb8a07>:0)

image

DarkEyeDragon avatar Nov 26 '21 00:11 DarkEyeDragon

These exceptions are harmless and unfortunately fairly common because of how the lists are virtualized.

It looks like the game is looking for any exceptions to happen and assumes the game itself crashed. Patching this out is probably going to be easier than fixing it on runtime editor side (depends on what exactly the game is looking for).

ManlyMarco avatar Nov 26 '21 07:11 ManlyMarco

Closing because this probably got fixed with recent changes to UI code, and if it didn't then it should just be patched out in the game.

ManlyMarco avatar Nov 11 '22 21:11 ManlyMarco