I'm trying to upload my avi but i keep getting this problem, ArgumentException: Getting control 2's position in a group with only 2 controls when doing repaint Aborting

Its my first time trying to upload and I’m very lost. Here’s the full error code:

ArgumentException: Getting control 2’s position in a group with only 2 controls when doing repaint
Aborting
UnityEngine.GUILayoutGroup.GetNext () (at :0)
UnityEngine.GUILayoutUtility.BeginLayoutGroup (UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption options, System.Type layoutType) (at :0)
UnityEditor.EditorGUILayout.BeginHorizontal (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption options) (at <7105be432fb64891b07085914e6cd5c1>:0)
UnityEditor.EditorGUILayout.BeginHorizontal (UnityEngine.GUILayoutOption options) (at <7105be432fb64891b07085914e6cd5c1>:0)
UnityEditor.EditorGUILayout.LabelField (UnityEngine.GUIContent label, UnityEngine.GUIContent label2, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption options) (at <7105be432fb64891b07085914e6cd5c1>:0)
UnityEditor.EditorGUILayout.HelpBox (System.String message, UnityEditor.MessageType type) (at <7105be432fb64891b07085914e6cd5c1>:0)
VRCSdkControlPanel.OnGUIShowIssues (UnityEngine.Object subject) (at Packages/com.vrchat.base/Editor/VRCSDK/Dependencies/VRChat/ControlPanel/VRCSdkControlPanelBuilder.cs:306)
VRC.SDK3A.Editor.VRCSdkControlPanelAvatarBuilder.ShowBuilder () (at Packages/com.vrchat.avatars/Editor/VRCSDK/SDK3A/VRCSdkControlPanelAvatarBuilder.cs:152)
VRCSdkControlPanel+<>c__DisplayClass179_0.b__4 () (at Packages/com.vrchat.base/Editor/VRCSDK/Dependencies/VRChat/ControlPanel/VRCSdkControlPanelBuilder.cs:747)
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 :0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at :0)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at :0)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Boolean straightY, System.Single pixelsPerPoint, System.Exception& immediateException) (at :0)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render (UnityEngine.Rect viewport, UnityEngine.Matrix4x4 projection, UnityEngine.UIElements.PanelClearFlags clearFlags) (at :0)
UnityEngine.UIElements.UIRRepaintUpdater.DrawChain (UnityEngine.Rect viewport, UnityEngine.Matrix4x4 projection) (at :0)
UnityEngine.UIElements.UIRRepaintUpdater.Update () (at :0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at :0)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at :0)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at :0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at :0)
UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at :0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at :0)

hello there i can help you upload your avatar for both pc and quest
for more info you can message me via Discord: mancor

I’m having the same issue. Did you ever figure out how to get it to work?

1 Like

I would have guessed that the error about redrawing controls wouldn’t matter.

Whenever I see someone post a screenshot of the console, it’s always an exercise in convincing the person to not focus on the last error.

When there are tools shipped with an avatar, the error list starts with not being able to load mathematics, the actionable error somewhere in middle, and then finally a bunch of nonsense. So the real trick is to look at all errors

1 Like