Not signed in
Copyright © 2026 Unity Technologies
We cannot reproduce this issue anymore.
Steps to reproduce:
Expected results: No warnings or errors are thrown
Actual results: Errors are thrown:
GUI Error: Invalid GUILayout state in view. Verify that all layout Begin/End calls match
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /home/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:203)
ArgumentException: Getting control 1's position in a group with only 1 controls when doing repaint Aborting UnityEngine.GUILayoutGroup.GetNext () (at /home/bokken/build/output/unity/unity/Modules/IMGUI/LayoutGroup.cs:129) UnityEngine.GUILayoutUtility.DoGetRect (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at /home/bokken/build/output/unity/unity/Modules/IMGUI/GUILayoutUtility.cs:477) UnityEngine.GUILayoutUtility.GetRect (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at /home/bokken/build/output/unity/unity/Modules/IMGUI/GUILayoutUtility.cs:434) UnityEngine.GUILayout.DoButton (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at /home/bokken/build/output/unity/unity/Modules/IMGUI/GUILayout.cs:36) UnityEngine.GUILayout.Button (System.String text, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at /home/bokken/build/output/unity/unity/Modules/IMGUI/GUILayout.cs:32) UnityEditor.Android.AndroidBuildWindowExtension.DoTargetListUnsafe () (at <a80ad7622fbd41b4bdac9439131388ba>:0) UnityEditor.Android.AndroidBuildWindowExtension.DoTargetList () (at <a80ad7622fbd41b4bdac9439131388ba>:0) UnityEditor.Android.AndroidBuildWindowExtension.ShowPlatformBuildOptions () (at <a80ad7622fbd41b4bdac9439131388ba>:0) UnityEditor.BuildPlayerWindow.ShowBuildTargetSettings () (at /home/bokken/build/output/unity/unity/Editor/Mono/BuildPlayerWindow.cs:889) UnityEditor.BuildPlayerWindow.OnGUI () (at /home/bokken/build/output/unity/unity/Editor/Mono/BuildPlayerWindow.cs:531) UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at /home/bokken/build/output/unity/unity/Editor/Mono/HostView.cs:512) UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at /home/bokken/build/output/unity/unity/Editor/Mono/GUI/DockArea.cs:386) UnityEditor.DockArea.OldOnGUI () (at /home/bokken/build/output/unity/unity/Editor/Mono/GUI/DockArea.cs:377) 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 /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/IMGUIContainer.cs:376) UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/IMGUIContainer.cs:676) UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/IMGUIContainer.cs:536) UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Renderer/UIRenderer/UIRenderers.cs:130) Rethrow as ImmediateModeException UnityEngine.UIElements.UIR.RenderChain.Render () (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Renderer/UIRRenderChain.cs:519) UnityEngine.UIElements.UIRRepaintUpdater.Update () (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Renderer/UIRRepaintUpdater.cs:79) UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/VisualTreeUpdater.cs:111) UnityEngine.UIElements.Panel.UpdateForRepaint () (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Panel.cs:1114) UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/Panel.cs:1175) UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:455) UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:206) UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:74) UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at /home/bokken/build/output/unity/unity/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:28) UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at /home/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:203)
Not reproducible with versions: 2022.3.42f1
Tested on (OS): Ubuntu 20
Sign in to see your voted issues