Search Issue Tracker

Active

Under Consideration for 1.0.X

Votes

0

Found in [Package]

1.0.2

Issue ID

PROFB-380

Regression

No

“Getting control 1's position in a group with only 1 controls when doing repaint…” Error is thrown when opening Project Auditor section in Project Settings

Package: Project Auditor

-

Reproduction steps:
1. Create a new project
2. Open Project Settings (Edit > Project Settings…)
3. Select Project Auditor section (install Project Auditor package if such section does not exist)
4. Observe the Console

Actual result: “Getting control 1's position in a group with only 1 controls when doing repaint…” error is thrown
Expected result: No errors or warnings are thrown

Reproducible with: 1.0.2 (2021.3.57f1, 2022.3.67f1, 6000.0.60f1, 6000.2.8f1, 6000.3.0b6), 6000.4.0a2
Not reproducible with: 1.0.1 (6000.3.0b6)

Reproduced on: macOS Sequoia 15.4 (M4), Windows 11

Note:
Full error:
{code:java}
ArgumentException: Getting control 1's position in a group with only 1 controls when doing repaint
Aborting
UnityEngine.GUILayoutGroup.GetNext () (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/LayoutGroup.cs:129)
UnityEngine.GUILayoutUtility.DoGetRect (System.Single minWidth, System.Single maxWidth, System.Single minHeight, System.Single maxHeight, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUILayoutUtility.cs:518)
UnityEngine.GUILayoutUtility.GetRect (System.Single minWidth, System.Single maxWidth, System.Single minHeight, System.Single maxHeight, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUILayoutUtility.cs:507)
UnityEditor.EditorGUILayout.GetControlRect (System.Boolean hasLabel, System.Single height, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorGUILayout.cs:2111)
UnityEditor.EditorGUILayout.GetControlRect (System.Boolean hasLabel, System.Single height, UnityEngine.GUILayoutOption[] options) (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorGUILayout.cs:2106)
UnityEditor.EditorGUILayout.LabelField (UnityEngine.GUIContent label, UnityEngine.GUIContent label2, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorGUILayout.cs:150)
UnityEditor.EditorGUILayout.LabelField (System.String label, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorGUILayout.cs:116)
Unity.ProjectAuditor.Editor.DiagnosticParams+PlatformParams.DoGUI () (at ./Library/PackageCache/com.unity.project-auditor@6cc18ad506e9/Editor/API/DiagnosticParams.cs:82)
Unity.ProjectAuditor.Editor.DiagnosticParams.DoGUI (UnityEditor.BuildTargetGroup btg) (at ./Library/PackageCache/com.unity.project-auditor@6cc18ad506e9/Editor/API/DiagnosticParams.cs:246)
Unity.ProjectAuditor.Editor.ProjectAuditorSettingsIMGUIRegister.SettingsGUI (System.String searchContext) (at ./Library/PackageCache/com.unity.project-auditor@6cc18ad506e9/Editor/ProjectAuditorSettingsProvider.cs:45)
UnityEditor.SettingsProvider.OnGUI (System.String searchContext) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Settings/SettingsProvider.cs:104)
UnityEditor.SettingsWindow.DrawControls () (at /Users/bokken/build/output/unity/unity/Editor/Mono/Settings/SettingsWindow.cs:523)
UnityEditor.SettingsWindow.DrawSettingsPanel () (at /Users/bokken/build/output/unity/unity/Editor/Mono/Settings/SettingsWindow.cs:494)
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 /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/IMGUIContainer.cs:429)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/IMGUIContainer.cs:726)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/IMGUIContainer.cs:590)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Renderer/UIRenderer/UIRenderers.cs:127)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Renderer/UIRRenderChain.cs:557)
UnityEngine.UIElements.UIRRepaintUpdater.Render () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Renderer/UIRRepaintUpdater.cs:125)
UnityEngine.UIElements.BaseVisualElementPanel.Render () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Panel.cs:737)
UnityEngine.UIElements.Panel.Render () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Panel.cs:1402)
UnityEditor.UIElements.EditorPanel.Render () (at /Users/bokken/build/output/unity/unity/Modules/UIElementsEditor/EditorPanel.cs:97)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:484)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:232)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:76)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:30)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:219)
{code}
 

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.