So the past day or so I keep getting the following errors, and it only occurs when I go to change a texture in the material menu in the inspector (where you click “select” and it shows a preview list of all of your texture files…drag and drop the texture into material still works fine)
I haven’t changed anything about my project for this to happen (no new scripts, no new imports, everything is the same except for scenes which are being populated w/ 3D assets, all 3D assets are present in other in-project scenes)
sometimes restarting Unity resolves it, but it will happen again pretty quickly.
I’ve also tried a full project reimport, deleting my texture files and reimporting those, but it still happens after a few minutes.
Unity 2022.3.22f1, URP 14.0.10
GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
And also this::
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.TextureInspector.OnPreviewGUI (UnityEngine.Rect r, UnityEngine.GUIStyle background) (at <80a8ce1980c648dca8e68f0d8aa3b930>:0)
UnityEditor.EditorWrapper.OnPreviewGUI (UnityEngine.Rect position, UnityEngine.GUIStyle background) (at <80a8ce1980c648dca8e68f0d8aa3b930>:0)
UnityEditor.ObjectSelector.WidePreview (System.Single actualSize, System.String s, UnityEngine.Object o, UnityEditor.EditorWrapper p) (at <80a8ce1980c648dca8e68f0d8aa3b930>:0)
UnityEditor.ObjectSelector.PreviewArea () (at <80a8ce1980c648dca8e68f0d8aa3b930>:0)
UnityEditor.ObjectSelector.OnObjectGridGUI () (at <80a8ce1980c648dca8e68f0d8aa3b930>:0)
UnityEditor.ObjectSelector.OnGUI () (at <80a8ce1980c648dca8e68f0d8aa3b930>:0)
UnityEditor.HostView.OldOnGUI () (at <80a8ce1980c648dca8e68f0d8aa3b930>: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 <332857d8803a4878904bcf8f9581ec33>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)