Search Unity

Bug Unity 2022.3.1f1 Error Cosole

Discussion in 'Editor & General Support' started by Lyten02, Dec 28, 2023.

  1. Lyten02

    Lyten02

    Joined:
    Aug 3, 2020
    Posts:
    2
    The error appears after opening the inspector, and also when launching the scene, but no crash occurs.

    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.PreviewWindow.RebuildContentsContainers () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.InspectorWindow.RedrawFromNative () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.InspectorWindow:OnEnable()
    UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget(String)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)

    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.InspectorWindow.get_isVisible () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.SceneView.CollectActiveEditors () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.SceneView.get_activeEditors () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.SceneView.CallOnPreSceneGUI () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.SceneView.DoOnPreSceneGUICallbacks (UnityEngine.Rect cameraRect) (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.SceneView.DoOnGUI () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.SceneView.OnSceneGUI () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    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 <d293f45b4ec64e6c9e762fe89794e7a5>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)

    GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced.
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,697
    This specific error, coming from this location (eg, NOT your code, such as
    UnityEditor.Graphs
    or
    UIElements
    or
    PlasticSCM
    ), is often fixed by either Reset Layouts (upper right) or else Right-click Project, Reimport-All.
     
    Lyten02 likes this.
  3. Lyten02

    Lyten02

    Joined:
    Aug 3, 2020
    Posts:
    2
    The error is gone, but when I press playback mode and make the window full screen, it appears again, maybe I should write to is bug report?

    MissingReferenceException: The object of type 'DockArea' has been destroyed but you are still trying to access it.
    Your script should either check if it is null or you should not destroy the object.
    UnityEditor.GUIView.Internal_SetPosition (UnityEngine.Rect windowPosition) (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.GUIView.SetPosition (UnityEngine.Rect newPos) (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.HostView.SetPosition (UnityEngine.Rect newPos) (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.View.set_position (UnityEngine.Rect value) (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.SplitView.PlaceView (System.Int32 i, System.Single pos, System.Single size) (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.SplitView.SetupRectsFromSplitter () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.SplitView.Reflow () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.SplitView.SetPosition (UnityEngine.Rect newPos) (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.View.set_position (UnityEngine.Rect value) (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.SplitView.PlaceView (System.Int32 i, System.Single pos, System.Single size) (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.SplitView.SetupRectsFromSplitter () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.SplitView.Reflow () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.SplitView.Cleanup () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.SplitView.Cleanup () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.DockArea.KillIfEmpty () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.DockArea.RemoveTab (UnityEditor.EditorWindow pane, System.Boolean killIfEmpty, System.Boolean sendEvents) (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.EditorWindow.Close () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.InspectorWindow.OnDestroy () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.EditorApplication:Internal_CallDelayFunctions()

    Invalid editor window of type: UnityEditor.PreviewWindow, title: Preview
    UnityEditor.EditorApplication:Internal_CallDelayFunctions ()

    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.InspectorWindow.get_isVisible () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.SceneView.CollectActiveEditors () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.SceneView.get_activeEditors () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.SceneView.CallOnPreSceneGUI () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.SceneView.DoOnPreSceneGUICallbacks (UnityEngine.Rect cameraRect) (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.SceneView.DoOnGUI () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    UnityEditor.SceneView.OnSceneGUI () (at <582c35e8f45345d395e99f8e72e3c16d>:0)
    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 <d293f45b4ec64e6c9e762fe89794e7a5>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)

    GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced.
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,697
    Yeah, that would be pretty awesome if you did! Unity does fix bugs like this...

    If you have a bug, there is only one way to report it.

    Help -> Report A Bug.

    Report one bug at a time with all the expected supporting information attached.