Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug regression: UIT inspector spamming the console

Discussion in '2023.1 Beta' started by laurentlavigne, Jan 25, 2023.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,335
    when switching to IMGUI default inspector all this goes away
    I would set IMGUI inspector on by default when this version is released

    upload_2023-1-24_18-54-19.png

    Code (CSharp):
    1. InvalidOperationException: The operation is not possible when moved past all properties (Next returned false)
    2. UnityEditor.SerializedProperty.Verify (UnityEditor.SerializedProperty+VerifyFlags verifyFlags) (at <bc8f8c22c6b045fc8158410a4c7e9f32>:0)
    3. UnityEditor.SerializedProperty.get_isArray () (at <bc8f8c22c6b045fc8158410a4c7e9f32>:0)
    4. UnityEditor.PropertyHandler.IsNonStringArray (UnityEditor.SerializedProperty property) (at <bc8f8c22c6b045fc8158410a4c7e9f32>:0)
    5. UnityEditor.PropertyHandler.UseReorderabelListControl (UnityEditor.SerializedProperty property) (at <bc8f8c22c6b045fc8158410a4c7e9f32>:0)
    6. UnityEditor.EditorGUI.PropertyField (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at <bc8f8c22c6b045fc8158410a4c7e9f32>:0)
    7. UnityEditor.EditorGUI.DoInspectorTitlebar (UnityEngine.Rect position, System.Int32 id, System.Boolean foldout, UnityEngine.Object[] targetObjs, UnityEditor.SerializedProperty enabledProperty, UnityEngine.GUIStyle baseStyle) (at <bc8f8c22c6b045fc8158410a4c7e9f32>:0)
    8. UnityEditor.EditorGUI.InspectorTitlebar (UnityEngine.Rect position, System.Boolean foldout, UnityEditor.Editor editor) (at <bc8f8c22c6b045fc8158410a4c7e9f32>:0)
    9. UnityEditor.EditorGUILayout.InspectorTitlebar (System.Boolean foldout, UnityEditor.Editor editor) (at <bc8f8c22c6b045fc8158410a4c7e9f32>:0)
    10. UnityEditor.UIElements.EditorElement.DrawEditorSmallHeader (UnityEditor.Editor[] editors, UnityEngine.Object target, System.Boolean wasVisible) (at <bc8f8c22c6b045fc8158410a4c7e9f32>:0)
    11. UnityEditor.UIElements.EditorElement.DrawEditorHeader (UnityEditor.Editor[] editors, UnityEngine.Object target, System.Boolean& wasVisible) (at <bc8f8c22c6b045fc8158410a4c7e9f32>:0)
    12. UnityEditor.UIElements.EditorElement.HeaderOnGUI () (at <bc8f8c22c6b045fc8158410a4c7e9f32>:0)
    13. 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 <b3b7056bcc0f4d7bbfa7e38095e34c9c>:0)
    14. UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <b3b7056bcc0f4d7bbfa7e38095e34c9c>:0)
    15. UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <b3b7056bcc0f4d7bbfa7e38095e34c9c>:0)
    16. UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at <b3b7056bcc0f4d7bbfa7e38095e34c9c>:0)
    17. Rethrow as ImmediateModeException
    18. UnityEngine.UIElements.UIR.RenderChain.Render () (at <b3b7056bcc0f4d7bbfa7e38095e34c9c>:0)
    19. UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <b3b7056bcc0f4d7bbfa7e38095e34c9c>:0)
    20. UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <b3b7056bcc0f4d7bbfa7e38095e34c9c>:0)
    21. UnityEngine.UIElements.Panel.UpdateForRepaint () (at <b3b7056bcc0f4d7bbfa7e38095e34c9c>:0)
    22. UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <b3b7056bcc0f4d7bbfa7e38095e34c9c>:0)
    23. UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <b3b7056bcc0f4d7bbfa7e38095e34c9c>:0)
    24. UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <b3b7056bcc0f4d7bbfa7e38095e34c9c>:0)
    25. UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <b3b7056bcc0f4d7bbfa7e38095e34c9c>:0)
    26. UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <b3b7056bcc0f4d7bbfa7e38095e34c9c>:0)
    27. UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <a77ee613b7b343de99a493e01f6701ed>:0)
    28.  
     
  2. ryan-at-melcher

    ryan-at-melcher

    Joined:
    Oct 22, 2018
    Posts:
    15
    I was seeing the same errors in a Unity 2021.3.0f1 project. It only happened when some game objects were selected (Camera or Canvas) and it would occur even if the inspector, project and scene/game views were closed.

    I wasn't able to find a setting to make the inspector use IMGUI. Perhaps it is added in newer Unity versions?

    A coworker suggested restarting Unity and that fixed it!