Search Unity

Bug ArgumentException: Getting control 0's position in a group with only 0 controls when doing mouseDrag

Discussion in 'Linux' started by Xortas, Feb 2, 2021.

  1. Xortas

    Xortas

    Joined:
    Nov 27, 2020
    Posts:
    7
    Hi there!
    I'm having a problem with Unity 2019.4.18.f1 under Linux Mint ''Ulyssa''. Whenever I'm trying to move/drag any of the editor's windows to dock it somewhere else it goes completely mental. I tried searching for a solution on my own, but had no luck with that. Below are video showing the issue and console logs:

    Code (CSharp):
    1. ArgumentException: Getting control 0's position in a group with only 0 controls when doing mouseDrag
    2. Aborting
    3. UnityEngine.GUILayoutGroup.GetNext () (at /home/bokken/buildslave/unity/build/Modules/IMGUI/LayoutGroup.cs:122)
    4. UnityEngine.GUILayoutUtility.BeginLayoutArea (UnityEngine.GUIStyle style, System.Type layoutType) (at /home/bokken/buildslave/unity/build/Modules/IMGUI/GUILayoutUtility.cs:361)
    5. UnityEngine.GUILayoutUtility.DoBeginLayoutArea (UnityEngine.GUIStyle style, System.Type layoutType) (at /home/bokken/buildslave/unity/build/Modules/IMGUI/GUILayoutUtility.cs:378)
    6. UnityEditor.EditorGUILayoutUtilityInternal.BeginLayoutArea (UnityEngine.GUIStyle style, System.Type LayoutType) (at /home/bokken/buildslave/unity/build/Editor/Mono/GUI/EditorGUIInternal.cs:66)
    7. UnityEditor.HostView.BeginOffsetArea (UnityEngine.Rect screenRect, UnityEngine.GUIContent content, UnityEngine.GUIStyle style) (at /home/bokken/buildslave/unity/build/Editor/Mono/HostView.cs:311)
    8. UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at /home/bokken/buildslave/unity/build/Editor/Mono/HostView.cs:337)
    9. UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at /home/bokken/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:407)
    10. UnityEditor.DockArea.OldOnGUI () (at /home/bokken/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:396)
    11. 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/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:293)
    12. UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /home/bokken/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:508)
    13. UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /home/bokken/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:491)
    14. UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at /home/bokken/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:484)
    15. UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus) (at /home/bokken/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:477)
    16. UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at /home/bokken/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:449)
    17. UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at /home/bokken/buildslave/unity/build/Modules/UIElements/Events/EventHandler.cs:77)
    18. UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /home/bokken/buildslave/unity/build/Modules/UIElements/Events/MouseCaptureDispatchingStrategy.cs:92)
    19. UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:310)
    20. UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:275)
    21. UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:238)
    22. UnityEngine.UIElements.EventDispatcher.OpenGate () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:203)
    23. UnityEngine.UIElements.EventDispatcherGate.Dispose () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:44)
    24. UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:301)
    25. UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:238)
    26. UnityEngine.UIElements.EventDispatcher.OpenGate () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:203)
    27. UnityEngine.UIElements.EventDispatcherGate.Dispose () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:44)
    28. UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:301)
    29. UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:238)
    30. UnityEngine.UIElements.EventDispatcher.OpenGate () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:203)
    31. UnityEngine.UIElements.EventDispatcherGate.Dispose () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:44)
    32. UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:301)
    33. UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:238)
    34. UnityEngine.UIElements.EventDispatcher.OpenGate () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:203)
    35. UnityEngine.UIElements.EventDispatcherGate.Dispose () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:44)
    36. UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:301)
    37. UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:238)
    38. UnityEngine.UIElements.EventDispatcher.OpenGate () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:203)
    39. UnityEngine.UIElements.EventDispatcherGate.Dispose () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:44)
    40. UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:301)
    41. UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:238)
    42. UnityEngine.UIElements.EventDispatcher.OpenGate () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:203)
    43. UnityEngine.UIElements.EventDispatcherGate.Dispose () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:44)
    44. UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:301)
    45. UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:238)
    46. UnityEngine.UIElements.EventDispatcher.OpenGate () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:203)
    47. UnityEngine.UIElements.EventDispatcherGate.Dispose () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:44)
    48. UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:301)
    49. UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:238)
    50. UnityEngine.UIElements.EventDispatcher.OpenGate () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:203)
    51. UnityEngine.UIElements.EventDispatcherGate.Dispose () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:44)
    52. UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:301)
    53. UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:238)
    54. UnityEngine.UIElements.EventDispatcher.OpenGate () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:203)
    55. UnityEngine.UIElements.EventDispatcherGate.Dispose () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:44)
    56. UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:301)
    57. UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:238)
    58. UnityEngine.UIElements.EventDispatcher.OpenGate () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:203)
    59. UnityEngine.UIElements.EventDispatcherGate.Dispose () (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:44)
    60. UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:301)
    61. UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at /home/bokken/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:159)
    62. UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at /home/bokken/buildslave/unity/build/Modules/UIElements/Panel.cs:257)
    63. UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /home/bokken/buildslave/unity/build/Modules/UIElements/UIElementsUtility.bindings.cs:404)
    64. UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /home/bokken/buildslave/unity/build/Modules/UIElements/UIElementsUtility.bindings.cs:194)
    65. UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /home/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:197)
    Code (CSharp):
    1. Assertion failed
    2. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /home/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:197)
    If it matters, I've got recommended nvidia drivers version 460 installed.

    Another thing I wanted to mention here, my VS Code is not highlighting errors. It's the only thing I'm missing and can't get to work in VS. Screen with installed plugins below: vscode.png
     
  2. KevinWelton

    KevinWelton

    Joined:
    Jul 26, 2018
    Posts:
    239
    For the highlighting issue, make sure you have mono installed and in your VS Code settings, set "Omnisharp: Use Global Mono" to "always".
     
  3. Xortas

    Xortas

    Joined:
    Nov 27, 2020
    Posts:
    7
    Thank you, Kevin! I was sure I installed mono, silly me. It seems that for some reason I managed not to (I'm a Linux newbie). Anyway, it works flawlessly now, so many thanks again!

    When it comes to weird behaviour of the editor, I guess I won some stupid lottery with it?
     
  4. KevinWelton

    KevinWelton

    Joined:
    Jul 26, 2018
    Posts:
    239
    Don't worry about. It the mono thing is non-trivial to figure out. I think I learned it myself by reading the forums here :)
     
    Xortas likes this.