Has anyone run into a Editor crash looking like this:
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at (wrapper stelemref) System.Object.virt_stelemref_sealed_class(intptr,object)
at System.IO.Path.CanonicalizePath (System.String path) [0x000d6] in <787acc3c9a4c471ba7d971300105af24>:0
at System.IO.Path.InsecureGetFullPath (System.String path) [0x001db] in <787acc3c9a4c471ba7d971300105af24>:0
at System.IO.Path.GetFullPath (System.String path) [0x00000] in <787acc3c9a4c471ba7d971300105af24>:0
at System.IO.Path.GetRelativePath (System.String relativeTo, System.String path, System.StringComparison comparisonType) [0x00033] in <787acc3c9a4c471ba7d971300105af24>:0
at System.IO.Path.GetRelativePath (System.String relativeTo, System.String path) [0x00007] in <787acc3c9a4c471ba7d971300105af24>:0
at System.IO.DefaultWatcher.IterateAndModifyFilesData (System.IO.DefaultWatcherData data, System.String directory, System.Boolean dispatch, System.String[ ] files) [0x001e3] in <d054a9182977441aa432503a474315ba>:0
at System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, System.Boolean dispatch) [0x000a8] in <d054a9182977441aa432503a474315ba>:0
at System.IO.DefaultWatcher.UpdateDataAndDispatch (System.IO.DefaultWatcherData data, System.Boolean dispatch) [0x00040] in <d054a9182977441aa432503a474315ba>:0
at System.IO.DefaultWatcher.Monitor () [0x0007b] in <d054a9182977441aa432503a474315ba>:0
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <787acc3c9a4c471ba7d971300105af24>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <787acc3c9a4c471ba7d971300105af24>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <787acc3c9a4c471ba7d971300105af24>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <787acc3c9a4c471ba7d971300105af24>:0
at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <787acc3c9a4c471ba7d971300105af24>:0
I just migrated my project to 2022 from 19. For the most part it works but I am opening a large text file in a coroutine. Not really doing anything with it. But when the system gets back from processing that coroutine it throws any number of errors. This one seems to be the most common. It is different each time I run. Sometimes it the error looks like this:
NullReferenceException: Object reference not set to an instance of an object
at UnityEngine.UIElements.StyleVariable.GetHashCode () [0x00022] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.StyleVariableContext.Add (UnityEngine.UIElements.StyleVariable sv) [0x00001] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.VisualTreeStyleUpdaterTraversal.ProcessMatchedVariables (UnityEngine.UIElements.StyleSheet sheet, UnityEngine.UIElements.StyleRule rule) [0x00031] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.VisualTreeStyleUpdaterTraversal.ProcessMatchedRules (UnityEngine.UIElements.VisualElement element, System.Collections.Generic.List`1[T] matchingSelectors) [0x00147] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.VisualTreeStyleUpdaterTraversal.TraverseRecursive (UnityEngine.UIElements.VisualElement element, System.Int32 depth) [0x0012d] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.StyleSheets.HierarchyTraversal.Recurse (UnityEngine.UIElements.VisualElement element, System.Int32 depth) [0x00016] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.VisualTreeStyleUpdaterTraversal.TraverseRecursive (UnityEngine.UIElements.VisualElement element, System.Int32 depth) [0x0029c] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.StyleSheets.HierarchyTraversal.Recurse (UnityEngine.UIElements.VisualElement element, System.Int32 depth) [0x00016] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.VisualTreeStyleUpdaterTraversal.TraverseRecursive (UnityEngine.UIElements.VisualElement element, System.Int32 depth) [0x0029c] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.StyleSheets.HierarchyTraversal.Recurse (UnityEngine.UIElements.VisualElement element, System.Int32 depth) [0x00016] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.VisualTreeStyleUpdaterTraversal.TraverseRecursive (UnityEngine.UIElements.VisualElement element, System.Int32 depth) [0x0029c] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.StyleSheets.HierarchyTraversal.Recurse (UnityEngine.UIElements.VisualElement element, System.Int32 depth) [0x00016] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.VisualTreeStyleUpdaterTraversal.TraverseRecursive (UnityEngine.UIElements.VisualElement element, System.Int32 depth) [0x0029c] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.StyleSheets.HierarchyTraversal.Recurse (UnityEngine.UIElements.VisualElement element, System.Int32 depth) [0x00016] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.VisualTreeStyleUpdaterTraversal.TraverseRecursive (UnityEngine.UIElements.VisualElement element, System.Int32 depth) [0x0029c] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.StyleSheets.HierarchyTraversal.Recurse (UnityEngine.UIElements.VisualElement element, System.Int32 depth) [0x00016] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.VisualTreeStyleUpdaterTraversal.TraverseRecursive (UnityEngine.UIElements.VisualElement element, System.Int32 depth) [0x0029c] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.StyleSheets.HierarchyTraversal.Recurse (UnityEngine.UIElements.VisualElement element, System.Int32 depth) [0x00016] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.VisualTreeStyleUpdaterTraversal.TraverseRecursive (UnityEngine.UIElements.VisualElement element, System.Int32 depth) [0x0029c] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.StyleSheets.HierarchyTraversal.Traverse (UnityEngine.UIElements.VisualElement element) [0x00001] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.VisualTreeStyleUpdater.ApplyStyles () [0x0003f] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.VisualTreeStyleUpdater.Update () [0x00024] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) [0x0001e] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.Panel.UpdateForRepaint () [0x0000e] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) [0x00078] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) [0x00051] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) [0x0003d] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) [0x0001a] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) [0x00001] in <79c7b132c51745cbae03eebea8111c0e>:0
at UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) [0x00010] in <69483bb8da2444acb7ff79facafdfbf3>:0
Submitting a bug report and sending them project isn’t really an option. This is not a game applications and is for government work…