random Editor Crash on entering play mode

this seems to happen at random, hard to replicate intentionally, but it happens multiple times a day.
here’s some snippets from the Editor.log file afterwards

Assertion failed on expression: 'task.computeData.buffer == NULL'
UnityEditor.EditorGUIUtility:RenderPlayModeViewCamerasInternal_Injected(RenderTexture, Int32, Vector2&, Boolean, Boolean)
UnityEditor.EditorGUIUtility:RenderPlayModeViewCamerasInternal(RenderTexture, Int32, Vector2, Boolean, Boolean)
UnityEditor.PlayModeView:RenderView(Vector2, Boolean)
UnityEditor.GameView:OnGUI()
System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Reflection.MethodBase:Invoke(Object, Object[])
UnityEditor.HostView:Invoke(String, Object)
UnityEditor.HostView:Invoke(String)
UnityEditor.HostView:InvokeOnGUI(Rect, Rect)
UnityEditor.DockArea:smile:rawView(Rect, Rect)
UnityEditor.DockArea:OldOnGUI()
UnityEngine.UIElements.IMGUIContainer:smile:oOnGUI(Event, Matrix4x4, Rect, Boolean, Rect, Boolean)
UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Matrix4x4, Rect, Boolean)
UnityEngine.UIElements.IMGUIContainer:smile:oIMGUIRepaint()
UnityEngine.UIElements.UIR.RenderChainCommand:ExecuteNonDrawMesh(DrawParams, Boolean, Single, Exception&)
UnityEngine.UIElements.UIR.UIRenderDevice:EvaluateChain(RenderChainCommand, Rect, Matrix4x4, PanelClearFlags, Texture, Texture, Texture, Single, NativeArray`1, NativeArray`1, Exception&)
UnityEngine.UIElements.UIR.UIRenderDevice:smile:rawChain(RenderChainCommand, Rect, Matrix4x4, PanelClearFlags, Texture, Texture, Texture, Single, NativeArray`1, NativeArray`1, Exception&)
UnityEngine.UIElements.UIR.RenderChain:Render(Rect, Matrix4x4, PanelClearFlags)
UnityEngine.UIElements.UIRRepaintUpdater:smile:rawChain(Rect, Matrix4x4)
UnityEngine.UIElements.UIRRepaintUpdater:Update()
UnityEngine.UIElements.VisualTreeUpdater:UpdateVisualTreePhase(VisualTreeUpdatePhase)
UnityEngine.UIElements.Panel:UpdateForRepaint()
UnityEngine.UIElements.Panel:Repaint(Event)
UnityEngine.UIElements.UIElementsUtility:smile:oDispatch(BaseVisualElementPanel)
UnityEngine.UIElements.UIElementsUtility:ProcessEvent(Int32, IntPtr)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
========== OUTPUTTING STACK TRACE ==================

0x00007FF688B9A5D0 (Unity) ComputeBuffer::SetData
0x00007FF6876CDBD8 (Unity) GeometryJobTasks::PutGeometryJobFenceInternal
0x00007FF6876CDB02 (Unity) GeometryJobTasks::PutGeometryJobFence
0x00007FF6876FAED8 (Unity) GfxDevice::PutGeometryJobFence
0x00007FF6876F865C (Unity) GfxDevice::smile:rawSharedGeometryJobs
0x00007FF68807FEFC (Unity) GfxDeviceWorker::RunCommand
0x00007FF68808C8AB (Unity) GfxDeviceWorker::RunExt
0x00007FF68808CC68 (Unity) GfxDeviceWorker::RunGfxDeviceWorker
0x00007FF688F142F3 (Unity) Thread::RunThreadWrapper
0x00007FFE2E317BD4 (KERNEL32) BaseThreadInitThunk
0x00007FFE3018CED1 (ntdll) RtlUserThreadStart

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

If you’re able to sometimes reproduce the issue, I think it would help if you submit a bug-report as described in this document:

It’s important that you report these issues together with a reproduction project if you want them to get fixed. If you don’t do it, it might be a long time until someone else reports them or until Unity Technologies find them.

After you submitted the bug-report, you receive a confirmation email with a bug-report Case number. Please post the Case number (number only, not the link) in this forum thread for Unity staff to pick up.

I would do so if it was easily reproducible. However, it’s not, so there’s not a project I can put together. It’s probably something rarely specific to my project, so I gave them a stack trace here. Hopefully the trace makes it obvious what is actually causing the crash.

i have kind of the same crash (RenderPlayModeViewCamerasInternal_Injected)

unity 2019.3.0f3

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) UnityEditor.EditorGUIUtility.RenderPlayModeViewCamerasInternal_Injected (UnityEngine.RenderTexture,int,UnityEngine.Vector2&,bool,bool) [0x0000c] in <83a73882c51c4602b3d34743827d03e7>:0
  at UnityEditor.EditorGUIUtility.RenderPlayModeViewCamerasInternal (UnityEngine.RenderTexture,int,UnityEngine.Vector2,bool,bool) [0x00007] in <83a73882c51c4602b3d34743827d03e7>:0
  at UnityEditor.PlayModeView.RenderView (UnityEngine.Vector2,bool) [0x000a7] in <83a73882c51c4602b3d34743827d03e7>:0
  at UnityEditor.GameView.OnGUI () [0x002ee] in <83a73882c51c4602b3d34743827d03e7>:0
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) [0x0004f] in <437ba245d8404784b9fbab9b439ac908>:0
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) [0x00016] in <437ba245d8404784b9fbab9b439ac908>:0
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) [0x00038] in <437ba245d8404784b9fbab9b439ac908>:0
  at System.Reflection.MethodBase.Invoke (object,object[]) [0x00006] in <437ba245d8404784b9fbab9b439ac908>:0
  at UnityEditor.HostView.Invoke (string,object) [0x00012] in <83a73882c51c4602b3d34743827d03e7>:0
  at UnityEditor.HostView.Invoke (string) [0x00009] in <83a73882c51c4602b3d34743827d03e7>:0
  at UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect) [0x0007a] in <83a73882c51c4602b3d34743827d03e7>:0
  at UnityEditor.DockArea.DrawView (UnityEngine.Rect,UnityEngine.Rect) [0x00004] in <83a73882c51c4602b3d34743827d03e7>:0
  at UnityEditor.DockArea.OldOnGUI () [0x001a9] in <83a73882c51c4602b3d34743827d03e7>:0
  at UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,bool) [0x001a6] in <a24e7ce9cb384beb988b124973437b7f>:0
  at UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool) [0x00076] in <a24e7ce9cb384beb988b124973437b7f>:0
  at UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () [0x00054] in <a24e7ce9cb384beb988b124973437b7f>:0
  at UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams,bool,single,System.Exception&) [0x00083] in <a24e7ce9cb384beb988b124973437b7f>:0
  at UnityEngine.UIElements.UIR.UIRenderDevice.EvaluateChain (UnityEngine.UIElements.UIR.RenderChainCommand,UnityEngine.Rect,UnityEngine.Matrix4x4,UnityEngine.UIElements.PanelClearFlags,UnityEngine.Texture,UnityEngine.Texture,UnityEngine.Texture,single,Unity.Collections.NativeArray`1<UnityEngine.UIElements.UIR.Transform3x4>,Unity.Collections.NativeArray`1<UnityEngine.Vector4>,System.Exception&) [0x00500] in <a24e7ce9cb384beb988b124973437b7f>:0
  at UnityEngine.UIElements.UIR.UIRenderDevice.DrawChain (UnityEngine.UIElements.UIR.RenderChainCommand,UnityEngine.Rect,UnityEngine.Matrix4x4,UnityEngine.UIElements.PanelClearFlags,UnityEngine.Texture,UnityEngine.Texture,UnityEngine.Texture,single,Unity.Collections.NativeArray`1<UnityEngine.UIElements.UIR.Transform3x4>,Unity.Collections.NativeArray`1<UnityEngine.Vector4>,System.Exception&) [0x0002c] in <a24e7ce9cb384beb988b124973437b7f>:0
  at UnityEngine.UIElements.UIR.RenderChain.Render (UnityEngine.Rect,UnityEngine.Matrix4x4,UnityEngine.UIElements.PanelClearFlags) [0x0066e] in <a24e7ce9cb384beb988b124973437b7f>:0
  at UnityEngine.UIElements.UIRRepaintUpdater.DrawChain (UnityEngine.Rect,UnityEngine.Matrix4x4) [0x00020] in <a24e7ce9cb384beb988b124973437b7f>:0
  at UnityEngine.UIElements.UIRRepaintUpdater.Update () [0x00033] in <a24e7ce9cb384beb988b124973437b7f>:0
  at UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase) [0x0001f] in <a24e7ce9cb384beb988b124973437b7f>:0
  at UnityEngine.UIElements.Panel.UpdateForRepaint () [0x0003c] in <a24e7ce9cb384beb988b124973437b7f>:0
  at UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event) [0x00061] in <a24e7ce9cb384beb988b124973437b7f>:0
  at UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel) [0x00029] in <a24e7ce9cb384beb988b124973437b7f>:0
  at UnityEngine.UIElements.UIElementsUtility.ProcessEvent (int,intptr) [0x0003e] in <a24e7ce9cb384beb988b124973437b7f>:0
  at UnityEngine.GUIUtility.ProcessEvent (int,intptr) [0x00014] in <59837000ebf54955a9cb1d31caa86097>:0
  at (wrapper runtime-invoke) <Module>.runtime_invoke_bool_int_intptr (object,intptr,intptr,intptr) [0x00028] in <59837000ebf54955a9cb1d31caa86097>:0
========== OUTPUTTING STACK TRACE ==================

0x00007FF6A2458090 (Unity) ProcessShadowCasterNodeVisibilityAndCullWithoutUmbra_Kernel<0,8>
0x00007FF6A245D894 (Unity) ProcessShadowCasterNodeVisibilityAndCullWithoutUmbra
0x00007FF6A23ED596 (Unity) CullShadowCastersWithoutUmbraThreaded
0x00007FF6A23ECBB6 (Unity) CullLocalShadowCastersJob
0x00007FF6A2AA28FD (Unity) JobQueue::Exec
0x00007FF6A2AA99E8 (Unity) JobQueue::WaitForJobGroupID
0x00007FF6A2A915A1 (Unity) CompleteFenceInternal
0x00007FF6A2436FAD (Unity) CullResults::~CullResults
0x00007FF6A2A77439 (Unity) CleanupScriptableCullResults
0x00007FF6A2A59DE9 (Unity) ScriptableRenderContext::~ScriptableRenderContext
0x00007FF6A242113D (Unity) RenderManager::RenderCamerasWithScriptableRenderLoop
0x00007FF6A242098E (Unity) RenderManager::RenderCameras
0x00007FF6A0DFFB9B (Unity) RepaintController::RenderPlayModeViewCameras
0x00007FF6A160FDFE (Unity) EditorGUIUtility::RenderPlayModeViewCamerasInternal
0x00007FF6A1F36622 (Unity) EditorGUIUtility_CUSTOM_RenderPlayModeViewCamerasInternal_Injected
0x000002AF8854AF77 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.EditorGUIUtility:RenderPlayModeViewCamerasInternal_Injected (UnityEngine.RenderTexture,int,UnityEngine.Vector2&,bool,bool)
0x000002AF8854AE23 (Mono JIT Code) UnityEditor.EditorGUIUtility:RenderPlayModeViewCamerasInternal (UnityEngine.RenderTexture,int,UnityEngine.Vector2,bool,bool)
0x000002AF88545F7B (Mono JIT Code) UnityEditor.PlayModeView:RenderView (UnityEngine.Vector2,bool)
0x000002AF60CE24E3 (Mono JIT Code) UnityEditor.GameView:OnGUI ()
0x000002AF8C4C13C8 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FF80046CBD0 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\mini\mini-runtime.c:2809] mono_jit_runtime_invoke 
0x00007FF8003F2142 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\object.c:2921] do_runtime_invoke 
0x00007FF8003FB312 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\object.c:3073] mono_runtime_invoke_checked 
0x00007FF8003FBAA9 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\object.c:5264] mono_runtime_try_invoke_array 
0x00007FF8003FB2A6 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\object.c:5142] mono_runtime_invoke_array_checked 
0x00007FF8003A02D4 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\icall.c:3358] ves_icall_InternalInvoke 
0x000002AF36981766 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
0x000002AF3697FB5B (Mono JIT Code) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
0x000002AF3697F81F (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[])
0x000002AF37BE545B (Mono JIT Code) UnityEditor.HostView:Invoke (string,object)
0x000002AF37BE52CB (Mono JIT Code) UnityEditor.HostView:Invoke (string)
0x000002AF60CDAD5B (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect)
0x000002AF60CDA503 (Mono JIT Code) UnityEditor.DockArea:smile:rawView (UnityEngine.Rect,UnityEngine.Rect)
0x000002AF60952D4B (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
0x000002AF40047FF4 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:smile:oOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,bool)
0x000002AF40045AFB (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool)
0x000002AF8641616B (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:smile:oIMGUIRepaint ()
0x000002AF86411786 (Mono JIT Code) UnityEngine.UIElements.UIR.RenderChainCommand:ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams,bool,single,System.Exception&)
0x000002AF81FBB773 (Mono JIT Code) UnityEngine.UIElements.UIR.UIRenderDevice:EvaluateChain (UnityEngine.UIElements.UIR.RenderChainCommand,UnityEngine.Rect,UnityEngine.Matrix4x4,UnityEngine.UIElements.PanelClearFlags,UnityEngine.Texture,UnityEngine.Texture,UnityEngine.Texture,single,Unity.Collections.NativeArray`1<UnityEngine.UIElements.UIR.Transform3x4>,Unity.Collections.NativeArray`1<UnityEngine.Vector4>,System.Exception&)
0x000002AF81FB4C7B (Mono JIT Code) UnityEngine.UIElements.UIR.UIRenderDevice:smile:rawChain (UnityEngine.UIElements.UIR.RenderChainCommand,UnityEngine.Rect,UnityEngine.Matrix4x4,UnityEngine.UIElements.PanelClearFlags,UnityEngine.Texture,UnityEngine.Texture,UnityEngine.Texture,single,Unity.Collections.NativeArray`1<UnityEngine.UIElements.UIR.Transform3x4>,Unity.Collections.NativeArray`1<UnityEngine.Vector4>,System.Exception&)
0x000002AF81F2D4C3 (Mono JIT Code) UnityEngine.UIElements.UIR.RenderChain:Render (UnityEngine.Rect,UnityEngine.Matrix4x4,UnityEngine.UIElements.PanelClearFlags)
0x000002AF81F29AAB (Mono JIT Code) UnityEngine.UIElements.UIRRepaintUpdater:smile:rawChain (UnityEngine.Rect,UnityEngine.Matrix4x4)
0x000002AF81F28A8E (Mono JIT Code) UnityEngine.UIElements.UIRRepaintUpdater:Update ()
0x000002AF3FFC791A (Mono JIT Code) UnityEngine.UIElements.VisualTreeUpdater:UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase)
0x000002AF81F27153 (Mono JIT Code) UnityEngine.UIElements.Panel:UpdateForRepaint ()
0x000002AF81F2683B (Mono JIT Code) UnityEngine.UIElements.Panel:Repaint (UnityEngine.Event)
0x000002AF3FFC6721 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:smile:oDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x000002AF3FFC60DB (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:ProcessEvent (int,intptr)
0x000002AF3FFC5923 (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr)
0x000002AF3FFC5BA3 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_bool_int_intptr (object,intptr,intptr,intptr)
0x00007FF80046CBD0 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\mini\mini-runtime.c:2809] mono_jit_runtime_invoke 
0x00007FF8003F2142 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\object.c:2921] do_runtime_invoke 
0x00007FF8003FB13F (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\object.c:2968] mono_runtime_invoke 
0x00007FF6A313D0FE (Unity) scripting_method_invoke
0x00007FF6A3136DDD (Unity) ScriptingInvocation::Invoke
0x00007FF6A3130DDA (Unity) ScriptingInvocation::Invoke<bool>
0x00007FF6A0532185 (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007FF6A0F296C4 (Unity) GUIView::ProcessRetainedMode
0x00007FF6A19388C6 (Unity) GUIView::OnInputEvent
0x00007FF6A0F295BC (Unity) GUIView::ProcessInputEvent
0x00007FF6A192FB2D (Unity) GUIView::smile:oPaint
0x00007FF6A193B1ED (Unity) GUIView::RepaintAll
0x00007FF6A0FFEE92 (Unity) PlayerLoopController::UpdateScene
0x00007FF6A0FFCBA8 (Unity) Application::TickTimer
0x00007FF6A1937890 (Unity) MainMessageLoop
0x00007FF6A194150A (Unity) WinMain
0x00007FF6A48B0342 (Unity) __scrt_common_main_seh
0x00007FF8894A7BD4 (KERNEL32) BaseThreadInitThunk
0x00007FF88B44CED1 (ntdll) RtlUserThreadStart

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

Thanks for raising this. We are trying to track down the cause.

My Editor crashed while editing the particle system. I have send allready the Crash Bug Report.

1 Like

Thank you! Do you know your case number? It will help me find it faster.

it constantly happens with Point Lights that are in viewport of camera (URP)

Any chance of a bug report? It would definitely help us fix it faster.

yea, Case 1207828

thanks

2 Likes

2019.3.0f3 crashes all the time, several times a day. Mostly during play mode, but nothing specific that I can reproduce reliably.

turns out my issue is well known and not so new

i guess wont be fixed anytime soon

It’s being looked at - keep the faith :slight_smile:

3 Likes

I stopped getting this crash with the previous Unity update, but I updated to latest again today and I’m crashing constantly after moments in Play mode, impossible to debug like this.

I’ve just had another look at the bug report, to see where we are at regarding a fix.

It looks like we made a fix for it in URP 7.2.0, but the most recent info on the bug suggests that our fix hasn’t fully resolved the issue. So it’s still ongoing :frowning:

2019.3.3f1 has same crashing issues

If anything it seems to happen even more frequently on latest. I often can’t get more than a couple minutes of work done before crashing. I’ve already sent several crash reports. Unfortunately, I am not doing anything specific when I crash, so I can’t really give any further details. For example, sometimes it just happens right away after loading the project, before I even have a chance to do anything at all. I have even tried deleting my project and redownloading it from the cloud just in case it has cached anything broken, and same for the editor itself, but no dice.

We’re still trying to narrow down the cause. It is being worked on and it is a high priority to fix this.

3 Likes

Unfortunately still happens in 4f1. However, I replaced the Point Lights in my scene with Spotlights and it doesn’t seem to crash any more.

After getting a chance to actually dig into it, I’m thinking that original crash (from exiting play mode) is because I de-allocate a render texture which an async GetData is waiting on, which causes Unity to crash. I submitted a bug report about it, and for now just made sure the async request is completed before de-allocating the resource.

1 Like