So Much crashing

A crash almost once a day for past 2 months

The majority of them seem to spawn from various “OnValidate” calls. With a stack trace similar to this:

The latest of these is coming from Graphic.OnValidate:


I hope something is being done about this, or Unity are aware of how much the Editor crashes.

I can’t exactly submit bug reports because it seems to happen at random.
Sometimes refreshing is fine, other times it crashes.

Another one today…
It never ends

========== OUTPUTTING STACK TRACE ==================

0x00007FF72B250285 (Unity) GetOrCreateObjectStoredInField
0x00007FF729C880BF (Unity) GeneralMonoObjectToTransferFor<ConfigSettingsRead>
0x00007FF72B24D325 (Unity) Transfer_ManagedObject<StreamedBinaryRead,0>
0x00007FF729C87FCB (Unity) ExecuteSerializationCommands<ConfigSettingsRead>
0x00007FF72B24D3D6 (Unity) Transfer_ManagedObject<StreamedBinaryRead,0>
0x00007FF729C87FCB (Unity) ExecuteSerializationCommands<ConfigSettingsRead>
0x00007FF72AD54CDC (Unity) TransferScriptingObject<StreamedBinaryWrite,0>
0x00007FF72AD52429 (Unity) SerializableManagedRefTransfer::Transfer<SerializableManagedRefBackupGenerator>
0x00007FF72B2FE648 (Unity) WriteObjectToVector
0x00007FF72C2B08BD (Unity) CachedPrefabPPtrRemapper::GetCachedPrefabSourceObjectData
0x00007FF72C2EBC13 (Unity) ApplyPrefabStateAndPropertyModificationsToObjects
0x00007FF72C2F9EBB (Unity) MergePrefabChanges
0x00007FF72C2B88F1 (Unity) MergePrefabInternal
0x00007FF72C2B687D (Unity) MergeAllPrefabInstancesDuringLoad
0x00007FF72ABBB732 (Unity) LoadSceneOperation::CompleteAwakeSequence
0x00007FF72ABBBB03 (Unity) LoadSceneOperation::CompletePreloadManagerLoadSceneEditor
0x00007FF72ABBCA09 (Unity) LoadSceneOperation::IntegrateMainThread
0x00007FF72ABC03EC (Unity) PreloadManager::UpdatePreloadingSingleStep
0x00007FF72ABC0CDF (Unity) PreloadManager::WaitForAllAsyncOperationsToComplete
0x00007FF72C347E75 (Unity) EditorSceneManager::RestoreSceneBackups
0x00007FF72C345DC1 (Unity) EditorSceneManager::OpenSceneLoaded
0x00007FF72C344C94 (Unity) EditorSceneManager::OpenScene
0x00007FF72BDF7362 (Unity) Application::OpenFileGeneric
0x00007FF72BCE5A41 (Unity) OpenAsset
0x00007FF72CC7ED29 (Unity) AssetDatabase_CUSTOM_OpenAsset
0x000001D0AC398D33 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.AssetDatabase:OpenAsset (int,int,int)
0x000001D0AC398C5B (Mono JIT Code) UnityEditor.AssetDatabase:OpenAsset (int,int)
0x000001D0AC398BE3 (Mono JIT Code) UnityEditor.AssetDatabase:OpenAsset (int)
0x000001D0AC398B33 (Mono JIT Code) UnityEditor.ProjectBrowser:OpenAssetSelection (int[])
0x000001D0AC398A9B (Mono JIT Code) UnityEditor.ProjectBrowser:AssetTreeItemDoubleClickedCallback (int)
0x000001D0216CABF1 (Mono JIT Code) UnityEditor.IMGUI.Controls.TreeViewController:HandleUnusedMouseEventsForItem (UnityEngine.Rect,UnityEditor.IMGUI.Controls.TreeViewItem,int)
0x000001D0216C2063 (Mono JIT Code) UnityEditor.IMGUI.Controls.TreeViewController:smile:oItemGUI (UnityEditor.IMGUI.Controls.TreeViewItem,int,single,bool)
0x000001D0216C15F3 (Mono JIT Code) UnityEditor.IMGUI.Controls.TreeViewController:IterateVisibleItems (int,int,single,bool)
0x000001D0216BFC1B (Mono JIT Code) UnityEditor.IMGUI.Controls.TreeViewController:OnGUI (UnityEngine.Rect,int)
0x000001D02181F65B (Mono JIT Code) UnityEditor.ProjectBrowser:OnGUI ()
0x000001D01F598A53 (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect)
0x000001D01F5987C3 (Mono JIT Code) UnityEditor.DockArea:smile:rawView (UnityEngine.Rect,UnityEngine.Rect)
0x000001D01F58B743 (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
0x000001D01F570810 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:smile:oOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
0x000001D01F56F6BB (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
0x000001D01F56EF5B (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
0x000001D01F56EDC3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
0x000001D01F56E20B (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
0x000001D01F56B553 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
0x000001D01F0C11BB (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
0x000001D01F0AE589 (Mono JIT Code) UnityEngine.UIElements.EventDispatchUtilities:PropagateEvent (UnityEngine.UIElements.EventBase)
0x000001D01F56DF8B (Mono JIT Code) UnityEngine.UIElements.MouseEventDispatchingStrategy:SendEventToRegularTarget (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel)
0x000001D01F56DE9B (Mono JIT Code) UnityEngine.UIElements.MouseEventDispatchingStrategy:SendEventToTarget (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel)
0x000001D01F56D833 (Mono JIT Code) UnityEngine.UIElements.MouseEventDispatchingStrategy:smile:ispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000001D01F0AD39E (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
0x000001D01F0ACE93 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000001D01F0AC8C3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
0x000001D01F0AC743 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
0x000001D01F0AC68B (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:smile:ispose ()
0x000001D01F0AD123 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000001D01F0AAAB3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:smile:ispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
0x000001D01F0AA92B (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
0x000001D01F54941B (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:smile:oDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x000001D01F548EBB (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
0x000001D01F548C7F (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
0x000001D01F548B9B (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
0x000001D01F5489FD (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
0x000001D01F548AAE (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
0x00007FF9695DD8C0 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\mini\mini-runtime.c:2809] mono_jit_runtime_invoke
0x00007FF969562912 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\object.c:2921] do_runtime_invoke
0x00007FF96956B96F (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\object.c:2968] mono_runtime_invoke
0x00007FF72B203ED4 (Unity) scripting_method_invoke
0x00007FF72B1FD9FB (Unity) ScriptingInvocation::Invoke
0x00007FF72B1F76D5 (Unity) ScriptingInvocation::Invoke<void>
0x00007FF729ABF0FD (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007FF72BD39078 (Unity) GUIView::ProcessRetainedMode
0x00007FF72C60580D (Unity) GUIView::OnInputEvent
0x00007FF72BD38FA1 (Unity) GUIView::ProcessInputEventInternal
0x00007FF72C606E59 (Unity) GUIView::ProcessEventMessages
0x00007FF72C5FFB42 (Unity) GUIView::GUIViewWndProc
0x00007FF9D513E6D8 (USER32) CallWindowProcW
0x00007FF9D513E119 (USER32) DispatchMessageW
0x00007FF72C6049F8 (Unity) MainMessageLoop
0x00007FF72C60DECE (Unity) WinMain
0x00007FF72E2D98F6 (Unity) __scrt_common_main_seh
0x00007FF9D48F7034 (KERNEL32) BaseThreadInitThunk
0x00007FF9D68BCEC1 (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) UnityEditor.AssetDatabase.OpenAsset (int,int,int) [0x00009] in <3037c1046402403280ab8b0782ca806f>:0
  at UnityEditor.AssetDatabase.OpenAsset (int,int) [0x00004] in <3037c1046402403280ab8b0782ca806f>:0
  at UnityEditor.AssetDatabase.OpenAsset (int) [0x00003] in <3037c1046402403280ab8b0782ca806f>:0
  at UnityEditor.ProjectBrowser.OpenAssetSelection (int[]) [0x00018] in <3037c1046402403280ab8b0782ca806f>:0
  at UnityEditor.ProjectBrowser.AssetTreeItemDoubleClickedCallback (int) [0x00006] in <3037c1046402403280ab8b0782ca806f>:0
  at UnityEditor.IMGUI.Controls.TreeViewController.HandleUnusedMouseEventsForItem (UnityEngine.Rect,UnityEditor.IMGUI.Controls.TreeViewItem,int) [0x000b9] in <3037c1046402403280ab8b0782ca806f>:0
  at UnityEditor.IMGUI.Controls.TreeViewController.DoItemGUI (UnityEditor.IMGUI.Controls.TreeViewItem,int,single,bool) [0x00132] in <3037c1046402403280ab8b0782ca806f>:0
  at UnityEditor.IMGUI.Controls.TreeViewController.IterateVisibleItems (int,int,single,bool) [0x00125] in <3037c1046402403280ab8b0782ca806f>:0
  at UnityEditor.IMGUI.Controls.TreeViewController.OnGUI (UnityEngine.Rect,int) [0x002eb] in <3037c1046402403280ab8b0782ca806f>:0
  at UnityEditor.ProjectBrowser.OnGUI () [0x001b9] in <3037c1046402403280ab8b0782ca806f>:0
  at UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect) [0x00066] in <3037c1046402403280ab8b0782ca806f>:0
  at UnityEditor.DockArea.DrawView (UnityEngine.Rect,UnityEngine.Rect) [0x00004] in <3037c1046402403280ab8b0782ca806f>:0
  at UnityEditor.DockArea.OldOnGUI () [0x001a5] in <3037c1046402403280ab8b0782ca806f>:0
  at UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool) [0x001d6] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool) [0x000c8] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event,System.Action,bool) [0x00025] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event,bool) [0x0000a] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool) [0x0002a] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool) [0x00154] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase) [0x0005d] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.EventDispatchUtilities.PropagateEvent (UnityEngine.UIElements.EventBase) [0x0012f] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.MouseEventDispatchingStrategy.SendEventToRegularTarget (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel) [0x00013] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.MouseEventDispatchingStrategy.SendEventToTarget (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel) [0x00003] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.MouseEventDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel) [0x0002a] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool) [0x00028] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel) [0x00047] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () [0x00039] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.EventDispatcher.OpenGate () [0x0003c] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.EventDispatcherGate.Dispose () [0x00007] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel) [0x0011a] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode) [0x00049] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode) [0x0001f] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel) [0x000e3] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&) [0x0003f] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.UIEventRegistration.ProcessEvent (int,intptr) [0x0001f] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.UIElements.UIEventRegistration/<>c.<.cctor>b__1_2 (int,intptr) [0x00003] in <e11cddb636f444f68eec62123764f018>:0
  at UnityEngine.GUIUtility.ProcessEvent (int,intptr,bool&) [0x00018] in <2500dd078a544a69b6c923861af6cd15>:0
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr) [0x0002d] in <2500dd078a544a69b6c923861af6cd15>:0

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Followed by 9999 errors spamming the console and my entire UI broken:

(Filename: <9577ac7a62ef43179789031239ba8798> Line: 0)

NullReferenceException: Object reference not set to an instance of an object
  at System.Reflection.MethodBase.get_IsPublic () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0
  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) [0x00013] in <9577ac7a62ef43179789031239ba8798>:0
  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in <9577ac7a62ef43179789031239ba8798>:0
  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00027] in <9577ac7a62ef43179789031239ba8798>:0
  at System.Activator.CreateInstance[T] () [0x00015] in <9577ac7a62ef43179789031239ba8798>:0
  at UnityEngine.UI.ObjectPool`1[T].Get () [0x0000d] in C:\Program Files\Unity\Hub\Editor\2020.1.10f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\UI\Core\Utility\ObjectPool.cs:27
  at UnityEngine.UI.ListPool`1[T].Get () [0x00000] in C:\Program Files\Unity\Hub\Editor\2020.1.10f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\UI\Core\Utility\ListPool.cs:15
  at UnityEngine.UI.LayoutRebuilder.MarkLayoutForRebuild (UnityEngine.RectTransform rect) [0x00018] in C:\Program Files\Unity\Hub\Editor\2020.1.10f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\UI\Core\Layout\LayoutRebuilder.cs:174
  at UnityEngine.UI.LayoutRebuilder.ReapplyDrivenProperties (UnityEngine.RectTransform driven) [0x00000] in C:\Program Files\Unity\Hub\Editor\2020.1.10f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\UI\Core\Layout\LayoutRebuilder.cs:41
  at UnityEngine.RectTransform.SendReapplyDrivenProperties (UnityEngine.RectTransform driven) [0x0000a] in <052502435982472d92da7f939c7f8164>:0
UnityEditor.EditorApplication:FileMenuNewScene()
UnityEditor.EditorApplication:FireFileMenuNewScene()

We’ve been experiencing crashes that looks a lot like this in 2019.4 since early September, and have been collecting stack traces ever since they started to happen fairly regularly. The plan was to report the issue once we had more data (and the time to write a proper report). Interesting to see that it’s happening to more people.
Here’s some of our stack traces, we have lots more if anyone at Unity is interested. These crashes happen daily. We think it’s happening mainly during domain reloads, as it happens mostly when we have modified scripts, or press play after having made changes to a scene/gameobjects.

========== OUTPUTTING STACK TRACE ==================
0x00007FF671F04065 (Unity) GetOrCreateObjectStoredInField
0x00007FF671F031CE (Unity) LinearCollectionField::LinearCollectionField
0x00007FF671EDD6BF (Unity) TransferField_LinearCollection<ReportScriptingObjectsTransfer>
0x00007FF66F3A443B (Unity) ExecuteSerializationCommands<ConfigSettingsRead>
0x00007FF671F01190 (Unity) Transfer_ManagedObject<StreamedBinaryWrite,0>
0x00007FF66F3A443B (Unity) ExecuteSerializationCommands<ConfigSettingsRead>
0x00007FF671F01190 (Unity) Transfer_ManagedObject<StreamedBinaryWrite,0>
0x00007FF66F3A443B (Unity) ExecuteSerializationCommands<ConfigSettingsRead>
0x00007FF670539B37 (Unity) TransferScriptingObject<StreamedBinaryWrite,0>
0x00007FF6705499B3 (Unity) SerializableManagedRefBackupGenerator::ExtractBackupFromInstance
0x00007FF671E7FA18 (Unity) MonoBehaviour::BackupAndDeflateManagedReferences
0x00007FF671F1EA2A (Unity) SerializableManagedRefsUtilities::BackupAndDeflateAll
0x00007FF671E7FF50 (Unity) MonoManager::BeginReloadAssembly
0x00007FF671E88693 (Unity) MonoManager::ReloadAssembly
0x00007FF670292933 (Unity) ReloadAllUsedAssemblies
0x00007FF67026FC60 (Unity) EditorSceneManager::RestoreSceneBackups
0x00007FF66FCD5D34 (Unity) PlayerLoopController::EnterPlayMode
0x00007FF66FCE8495 (Unity) PlayerLoopController::SetIsPlaying
0x00007FF66FCEB172 (Unity) Application::TickTimer
0x00007FF6706569BE (Unity) MainMessageLoop
0x00007FF670660C18 (Unity) WinMain
0x00007FF673668252 (Unity) __scrt_common_main_seh
0x00007FF9C97D6FD4 (KERNEL32) BaseThreadInitThunk
0x00007FF9C9E3CEC1 (ntdll) RtlUserThreadStart
========== END OF STACKTRACE ===========
========== OUTPUTTING STACK TRACE ==================
0x00007FF61CDA1D45 (Unity) GetOrCreateObjectStoredInField
0x00007FF61CDA0EAE (Unity) LinearCollectionField::LinearCollectionField
0x00007FF61CD7B39F (Unity) TransferField_LinearCollection<ReportScriptingObjectsTransfer>
0x00007FF61A234BDB (Unity) ExecuteSerializationCommands<ConfigSettingsRead>
0x00007FF61CD9EE70 (Unity) Transfer_ManagedObject<StreamedBinaryWrite,0>
0x00007FF61A234BDB (Unity) ExecuteSerializationCommands<ConfigSettingsRead>
0x00007FF61CD9EE70 (Unity) Transfer_ManagedObject<StreamedBinaryWrite,0>
0x00007FF61A234BDB (Unity) ExecuteSerializationCommands<ConfigSettingsRead>
0x00007FF61B3CF987 (Unity) TransferScriptingObject<StreamedBinaryWrite,1>
0x00007FF61B3DF8FE (Unity) SerializableManagedRefBackupGenerator::ExtractBackupFromInstance
0x00007FF61CD1D6F8 (Unity) MonoBehaviour::BackupAndDeflateManagedReferences
0x00007FF61CDBC70A (Unity) SerializableManagedRefsUtilities::BackupAndDeflateAll
0x00007FF61CD1DC30 (Unity) MonoManager::BeginReloadAssembly
0x00007FF61CD26373 (Unity) MonoManager::ReloadAssembly
0x00007FF61B128593 (Unity) ReloadAllUsedAssemblies
0x00007FF61B63ECC9 (Unity) ImportAndPostprocessOutOfDateAssets
0x00007FF61B64691B (Unity) RefreshInternalV2
0x00007FF61B649596 (Unity) StopAssetImportingV2
0x00007FF61B647146 (Unity) RefreshV2
0x00007FF61B569801 (Unity) AssetDatabase::Refresh
0x00007FF61AB63841 (Unity) Application::AutoRefresh
0x00007FF61B4E4240 (Unity) ContainerWindow::ContainerWndProc
0x00007FFC186BE6D8 (USER32) CallWindowProcW
0x00007FFC186BE25C (USER32) DispatchMessageW
0x00007FFC186D0A43 (USER32) SendMessageTimeoutW
0x00007FFC19AEFBC4 (ntdll) KiUserCallbackDispatcher
0x00007FFC17241124 (win32u) NtUserMessageCall
0x00007FFC186BC975 (USER32) GetWindowTextW
0x00007FFC186BC12F (USER32) IsIconic
0x00007FFC148D9C02 (uxtheme) OpenThemeData
0x00007FFC148F39E7 (uxtheme) Ordinal96
0x00007FFC148DD819 (uxtheme) Ordinal132
0x00007FFC148DD281 (uxtheme) Ordinal132
0x00007FFC186BC663 (USER32) GetWindowTextW
0x00007FF61B4E452C (Unity) ContainerWindow::ContainerWndProc
0x00007FFC186BE6D8 (USER32) CallWindowProcW
0x00007FFC186BE119 (USER32) DispatchMessageW
0x00007FF61B4EE0D6 (Unity) MainMessageLoop
0x00007FF61B4F8398 (Unity) WinMain
0x00007FF61E506542 (Unity) __scrt_common_main_seh
0x00007FFC17B67034 (KERNEL32) BaseThreadInitThunk
0x00007FFC19A9CEC1 (ntdll) RtlUserThreadStart
========== END OF STACKTRACE ===========
0x00007FF75C496297 (Unity) DynamicHeapAllocator::Allocate
0x00007FF75C48CA7A (Unity) DualThreadAllocator<DynamicHeapAllocator>::Allocate
0x00007FF75C47493A (Unity) MemoryManager::Allocate
0x00007FF75C47AFF4 (Unity) MemoryManager::Reallocate
0x00007FF75C489D98 (Unity) realloc_internal
0x00007FF75A7A5674 (Unity) dynamic_array_detail::dynamic_array_data::reallocate
0x00007FF75D091896 (Unity) dynamic_array_detail::dynamic_array_data::resize_buffer
0x00007FF75A6F2DA8 (Unity) dynamic_array<KeyframeTpl<float>,0>::resize_buffer_nocheck
0x00007FF75A6F261D (Unity) dynamic_array<KeyframeTpl<float>,0>::assign
0x00007FF75D33D7EB (Unity) TransferField_NonArray<StreamedBinaryWrite,Converter_SimpleNativeClass<AnimationCurveTpl<float> > >
0x00007FF75D35FD64 (Unity) Transfer_SimpleNativeClass<StreamedBinaryWrite,AnimationCurveTpl<float>,0>
0x00007FF75A7F4BDB (Unity) ExecuteSerializationCommands<ConfigSettingsRead>
0x00007FF75B98FD57 (Unity) TransferScriptingObject<StreamedBinaryWrite,0>
0x00007FF75B99FBD3 (Unity) SerializableManagedRefBackupGenerator::ExtractBackupFromInstance
0x00007FF75D2DD6F8 (Unity) MonoBehaviour::BackupAndDeflateManagedReferences
0x00007FF75D37C70A (Unity) SerializableManagedRefsUtilities::BackupAndDeflateAll
0x00007FF75D2DDC30 (Unity) MonoManager::BeginReloadAssembly
0x00007FF75D2E6373 (Unity) MonoManager::ReloadAssembly
0x00007FF75B6E8593 (Unity) ReloadAllUsedAssemblies
0x00007FF75B6C58C0 (Unity) EditorSceneManager::RestoreSceneBackups
0x00007FF75B127544 (Unity) PlayerLoopController::EnterPlayMode
0x00007FF75B139CB5 (Unity) PlayerLoopController::SetIsPlaying
0x00007FF75B13C992 (Unity) Application::TickTimer
0x00007FF75BAAE1C0 (Unity) MainMessageLoop
0x00007FF75BAB8398 (Unity) WinMain
0x00007FF75EAC6542 (Unity) __scrt_common_main_seh
0x00007FFC57927034 (KERNEL32) BaseThreadInitThunk
0x00007FFC5923CEC1 (ntdll) RtlUserThreadStart
========== OUTPUTTING STACK TRACE ==================

0x00007FF632921D45 (Unity) GetOrCreateObjectStoredInField
0x00007FF632920EAE (Unity) LinearCollectionField::LinearCollectionField
0x00007FF6328FB39F (Unity) TransferField_LinearCollection<ReportScriptingObjectsTransfer>
0x00007FF62FDB4BDB (Unity) ExecuteSerializationCommands<ConfigSettingsRead>
0x00007FF63291EE70 (Unity) Transfer_ManagedObject<StreamedBinaryWrite,0>
0x00007FF62FDB4BDB (Unity) ExecuteSerializationCommands<ConfigSettingsRead>
0x00007FF63291EE70 (Unity) Transfer_ManagedObject<StreamedBinaryWrite,0>
0x00007FF62FDB4BDB (Unity) ExecuteSerializationCommands<ConfigSettingsRead>
0x00007FF630F4FD57 (Unity) TransferScriptingObject<StreamedBinaryWrite,0>
0x00007FF630F5FBD3 (Unity) SerializableManagedRefBackupGenerator::ExtractBackupFromInstance
0x00007FF63289D6F8 (Unity) MonoBehaviour::BackupAndDeflateManagedReferences
0x00007FF63293C70A (Unity) SerializableManagedRefsUtilities::BackupAndDeflateAll
0x00007FF63289DC30 (Unity) MonoManager::BeginReloadAssembly
0x00007FF6328A6373 (Unity) MonoManager::ReloadAssembly
0x00007FF630CA8593 (Unity) ReloadAllUsedAssemblies
0x00007FF630C858C0 (Unity) EditorSceneManager::RestoreSceneBackups
0x00007FF6306E7544 (Unity) PlayerLoopController::EnterPlayMode
0x00007FF6306F9CB5 (Unity) PlayerLoopController::SetIsPlaying
0x00007FF6306FC992 (Unity) Application::TickTimer
0x00007FF63106E1C0 (Unity) MainMessageLoop
0x00007FF631078398 (Unity) WinMain
0x00007FF634086542 (Unity) __scrt_common_main_seh
0x00007FF90F747BD4 (KERNEL32) BaseThreadInitThunk
0x00007FF90FC6CED1 (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========
========== OUTPUTTING STACK TRACE ==================

0x00007FF6328FD661 (Unity) TransferField_NonArray<StreamedBinaryWrite,Converter_SimpleNativeClass<RectOffset> >
0x00007FF63291FC94 (Unity) Transfer_SimpleNativeClass<StreamedBinaryWrite,RectOffset,0>
0x00007FF62FDB4BDB (Unity) ExecuteSerializationCommands<ConfigSettingsRead>
0x00007FF630F4FD57 (Unity) TransferScriptingObject<StreamedBinaryWrite,0>
0x00007FF630F5FBD3 (Unity) SerializableManagedRefBackupGenerator::ExtractBackupFromInstance
0x00007FF63289D6F8 (Unity) MonoBehaviour::BackupAndDeflateManagedReferences
0x00007FF63293C70A (Unity) SerializableManagedRefsUtilities::BackupAndDeflateAll
0x00007FF63289DC30 (Unity) MonoManager::BeginReloadAssembly
0x00007FF6328A6373 (Unity) MonoManager::ReloadAssembly
0x00007FF630CA8593 (Unity) ReloadAllUsedAssemblies
0x00007FF630C858C0 (Unity) EditorSceneManager::RestoreSceneBackups
0x00007FF6306E7544 (Unity) PlayerLoopController::EnterPlayMode
0x00007FF6306F9CB5 (Unity) PlayerLoopController::SetIsPlaying
0x00007FF6306FC992 (Unity) Application::TickTimer
0x00007FF63106E1C0 (Unity) MainMessageLoop
0x00007FF631078398 (Unity) WinMain
0x00007FF634086542 (Unity) __scrt_common_main_seh
0x00007FF90F747BD4 (KERNEL32) BaseThreadInitThunk
0x00007FF90FC6CED1 (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========
1 Like

YES. I have these exact stack traces too

Was just playing the game as usual. Switched to Visual Studio to make edits. Game crashed in background

========== OUTPUTTING STACK TRACE ==================

0x00007FF88338C572 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\unity-liveness.c:202] mono_add_process_object
0x00007FF88338C93B (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\unity-liveness.c:379] mono_traverse_array
0x00007FF88338CD4B (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\unity-liveness.c:321] mono_traverse_objects
0x00007FF88338CFC1 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\unity-liveness.c:549] mono_unity_liveness_calculation_from_root
0x00007FF65EC37869 (Unity) MarkDependencies
0x00007FF65EC34283 (Unity) GarbageCollectSharedAssets
0x00007FF65EC9CC16 (Unity) UnloadUnusedAssetsOperation::IntegrateMainThread
0x00007FF65ECA03EC (Unity) PreloadManager::UpdatePreloadingSingleStep
0x00007FF65ECA0CDF (Unity) PreloadManager::WaitForAllAsyncOperationsToComplete
0x00007FF65EC9FD64 (Unity) UnloadUnusedAssetsImmediate
0x00007FF65FD0BAE6 (Unity) EditorAssetGarbageCollectManager::GarbageCollectIfHighMemoryUsage
0x00007FF65FEE294A (Unity) Application::TickTimer
0x00007FF6606E4B34 (Unity) MainMessageLoop
0x00007FF6606EDECE (Unity) WinMain
0x00007FF6623B98F6 (Unity) __scrt_common_main_seh
0x00007FF8F0FC7034 (KERNEL32) BaseThreadInitThunk
0x00007FF8F121CEC1 (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========

3 crashes today. Something is very wrong

1 Like

You both are getting a Quest 2
(if you log them bugs)

Reproduction:
Use Unity for 8 hours a day, 5 days a week.

4 Likes

You mean crashes like these?

0x00007FF7108DAC67 (Unity) TransferField_NonArray<StreamedBinaryWrite,Converter_SimpleNativeClass<RectOffset> >
0x00007FF7108FEDAB (Unity) Transfer_SimpleNativeClass<StreamedBinaryWrite,RectOffset,0>
0x00007FF70F3384DB (Unity) ExecuteSerializationCommands<ConfigSettingsRead>
0x00007FF71040548C (Unity) TransferScriptingObject<StreamedBinaryWrite,1>
0x00007FF7104173BD (Unity) SerializableManagedRefBackupGenerator::ExtractBackupFromInstance
0x00007FF710876818 (Unity) MonoBehaviour::BackupAndDeflateManagedReferences
0x00007FF71091DA03 (Unity) SerializableManagedRefsUtilities::BackupAndDeflateAll
0x00007FF710876DE2 (Unity) MonoManager::BeginReloadAssembly
0x00007FF71087F665 (Unity) MonoManager::ReloadAssembly
0x00007FF711A1A003 (Unity) ReloadAllUsedAssemblies
0x00007FF711DE7E47 (Unity) ImportAndPostprocessOutOfDateAssets
0x00007FF711DEF4FC (Unity) RefreshInternalV2
0x00007FF711DF2EBB (Unity) StopAssetImportingV2
0x00007FF711DF03C4 (Unity) RefreshV2
0x00007FF711D580A4 (Unity) AssetDatabase::Refresh
0x00007FF711499B7F (Unity) Application::AutoRefresh
0x00007FF711CADD52 (Unity) ContainerWindow::ContainerWndProc
0x00007FFACCDE5C1D (USER32) CallWindowProcW
0x00007FFACCDE57EC (USER32) DispatchMessageW
0x00007FFACCDF1F83 (USER32) IsWindowVisible
0x00007FFACED1FE34 (ntdll) KiUserCallbackDispatcher
0x00007FFACC4110C4 (win32u) NtUserPeekMessage
0x00007FFACCDE94F2 (USER32) PeekMessageW
0x00007FFACCDE9AE9 (USER32) PeekMessageA
0x00007FF711CB7A33 (Unity) MainMessageLoop
0x00007FF711CC104E (Unity) WinMain
0x00007FF71398C9F6 (Unity) __scrt_common_main_seh
0x00007FFACDE87C24 (KERNEL32) BaseThreadInitThunk
0x00007FFACECECEA1 (ntdll) RtlUserThreadStart
0x00007FF7108B4CFF (Unity) scripting_object_get_class
0x00007FF7108E5992 (Unity) StreamedBinaryWrite::TransferSTLStyleArray<ArrayOfManagedObjectsTransferer>
0x00007FF7108FE001 (Unity) Transfer_ManagedObject<StreamedBinaryWrite,1>
0x00007FF7108D8B3C (Unity) TransferField_LinearCollection<ReportScriptingObjectsTransfer>
0x00007FF70F3384DB (Unity) ExecuteSerializationCommands<ConfigSettingsRead>
0x00007FF7108FDF06 (Unity) Transfer_ManagedObject<StreamedBinaryRead,0>
0x00007FF70F3384DB (Unity) ExecuteSerializationCommands<ConfigSettingsRead>
0x00007FF7108FDF06 (Unity) Transfer_ManagedObject<StreamedBinaryRead,0>
0x00007FF70F3384DB (Unity) ExecuteSerializationCommands<ConfigSettingsRead>
0x00007FF71040548C (Unity) TransferScriptingObject<StreamedBinaryWrite,1>
0x00007FF7104173BD (Unity) SerializableManagedRefBackupGenerator::ExtractBackupFromInstance
0x00007FF710876818 (Unity) MonoBehaviour::BackupAndDeflateManagedReferences
0x00007FF71091DA03 (Unity) SerializableManagedRefsUtilities::BackupAndDeflateAll
0x00007FF710876DE2 (Unity) MonoManager::BeginReloadAssembly
0x00007FF71087F665 (Unity) MonoManager::ReloadAssembly
0x00007FF711A1A003 (Unity) ReloadAllUsedAssemblies
0x00007FF7114B25CC (Unity) Application::TickTimer
0x00007FF711CB7CB4 (Unity) MainMessageLoop
0x00007FF711CC104E (Unity) WinMain
0x00007FF71398C9F6 (Unity) __scrt_common_main_seh
0x00007FFACDE87C24 (KERNEL32) BaseThreadInitThunk
0x00007FFACECECEA1 (ntdll) RtlUserThreadStart

I get them regularly. I’m lucky if I can work for more than an hour without crashing.
The above is not even from 2020.2 it is from 2020.1.11f1, but these kind of crashes started to happen since 2019.1 and never really got better ever since.

I can’t open bugs because no repro except you have to use the editor, and I’m told that the crash reports are auto-uploaded anyway.

This is probably the biggest usability issue in Unity for me.

I mean it doesnt take much to figure out what the crashes are related to, but I dont know how these could be reproduced if they happen so “randomly”. I’ve been using reference serialization for a long time now and I haven’t had anything of the sort thus far.

From CDFs stack trace, it looks like it happens on a prefab or an SO asset that has a serialized reference.

Can’t test built Addressables in Editor either. Hard crash

========== OUTPUTTING STACK TRACE ==================

0x00007FF7882917B4 (Unity) Sprite::Transfer<StreamedBinaryRead>
0x00007FF78829AF2F (Unity) Sprite::VirtualRedirectTransfer
0x00007FF788C6C937 (Unity) SerializedFile::ReadObject
0x00007FF788C34959 (Unity) PersistentManager::ReadAndActivateObjectThreaded
0x00007FF788C329C6 (Unity) PersistentManager::LoadObjectsThreaded
0x00007FF78855D646 (Unity) LoadOperation::Perform
0x00007FF7878CF0D6 (Unity) AssetBundleLoadAssetOperation::Perform
0x00007FF78855ED06 (Unity) PreloadManager::ProcessSingleOperation
0x00007FF78855F336 (Unity) PreloadManager::Run
0x00007FF7889E96E0 (Unity) Thread::RunThreadWrapper
0x00007FF859337034 (KERNEL32) BaseThreadInitThunk
0x00007FF85975CEC1 (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========

Was just writing code in Visual Studio. Unity crashed in background.

========== OUTPUTTING STACK TRACE ==================

0x00007FF7D78DA279 (Unity) TransferField_NonArray<StreamedBinaryWrite,Converter_SimpleNativeClass<AnimationCurveTpl<float> > >
0x00007FF7D78FE2BB (Unity) Transfer_SimpleNativeClass<StreamedBinaryWrite,AnimationCurveTpl<float>,0>
0x00007FF7D6337FCB (Unity) ExecuteSerializationCommands<ConfigSettingsRead>
0x00007FF7D740495C (Unity) TransferScriptingObject<StreamedBinaryWrite,1>
0x00007FF7D741688D (Unity) SerializableManagedRefBackupGenerator::ExtractBackupFromInstance
0x00007FF7D7875CE8 (Unity) MonoBehaviour::BackupAndDeflateManagedReferences
0x00007FF7D791CED3 (Unity) SerializableManagedRefsUtilities::BackupAndDeflateAll
0x00007FF7D78762B2 (Unity) MonoManager::BeginReloadAssembly
0x00007FF7D787EB35 (Unity) MonoManager::ReloadAssembly
0x00007FF7D8A19343 (Unity) ReloadAllUsedAssemblies
0x00007FF7D84B18DC (Unity) Application::TickTimer
0x00007FF7D8CB4B34 (Unity) MainMessageLoop
0x00007FF7D8CBDECE (Unity) WinMain
0x00007FF7DA9898F6 (Unity) __scrt_common_main_seh
0x00007FFF226E7034 (KERNEL32) BaseThreadInitThunk
0x00007FFF22C1CEC1 (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========

Aaand, 5 mins later another one

========== OUTPUTTING STACK TRACE ==================

0x00007FF7D78DA137 (Unity) TransferField_NonArray<StreamedBinaryWrite,Converter_SimpleNativeClass<RectOffset> >
0x00007FF7D78FE27B (Unity) Transfer_SimpleNativeClass<StreamedBinaryWrite,RectOffset,0>
0x00007FF7D6337FCB (Unity) ExecuteSerializationCommands<ConfigSettingsRead>
0x00007FF7D7404CDC (Unity) TransferScriptingObject<StreamedBinaryWrite,0>
0x00007FF7D7416A9A (Unity) SerializableManagedRefBackupGenerator::ExtractBackupFromInstance
0x00007FF7D7875CE8 (Unity) MonoBehaviour::BackupAndDeflateManagedReferences
0x00007FF7D791CED3 (Unity) SerializableManagedRefsUtilities::BackupAndDeflateAll
0x00007FF7D78762B2 (Unity) MonoManager::BeginReloadAssembly
0x00007FF7D787EB35 (Unity) MonoManager::ReloadAssembly
0x00007FF7D8A19343 (Unity) ReloadAllUsedAssemblies
0x00007FF7D89F7683 (Unity) EditorSceneManager::RestoreSceneBackups
0x00007FF7D849C6B5 (Unity) PlayerLoopController::EnterPlayMode
0x00007FF7D84AF2F9 (Unity) PlayerLoopController::SetIsPlaying
0x00007FF7D84B1861 (Unity) Application::TickTimer
0x00007FF7D8CB4B34 (Unity) MainMessageLoop
0x00007FF7D8CBDECE (Unity) WinMain
0x00007FF7DA9898F6 (Unity) __scrt_common_main_seh
0x00007FFF226E7034 (KERNEL32) BaseThreadInitThunk
0x00007FFF22C1CEC1 (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========

Can you isolate the problem? Is it caused by a specific asset or scene? Can you reproduce these crashes with any project? The callstack often contains something with serialization, perhaps you can trigger the crash by reimporting specific assets?

I cannot reliably reproduce.
The stack trace does not indicate or hint where the issue may be occurring and what asset/s might be involved.
If it did, that would be great and I could isolate.

It’s seemingly random, but usually after some asset refresh/script compile/enter or exit play mode the crashes occur.

That sounds like its happening when the editor decides to save & write to disk, with assets that utilize serialized reference

A hardware problem? Have you tried another hard drive for install/Project?

Nah, Unity crashes multiple times per day even on LTS if you use it a lot, so I don’t think the culprit for a beta crashing is hardware issue.

Unity just crashes a lot.

2 Likes

I work with a team of about 10 people. We’re all experiencing crashes on a daily basis. So not specifc to my machine.

One of my colleagues PC was crashing because of a windows media video issue. At least that was easy to track down. The fix though… Disable all videos on his machine

I am using serialized references in the project. So that’s probably got something to do with it. Refactoring all that code though is not an option at this point.

Serialize Reference should just work correctly.

Quite concerning that there are still fundamental issues with it. like refactoring a class name or asmdef that is used/uses serialize references.

You have to manually edit the yaml meta to fix. Not exactly what I would call production ready