Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Bug Project constantly crashing when modifying code in the IDE

Discussion in 'Editor & General Support' started by Magnatales, Dec 31, 2022.

  1. Magnatales

    Magnatales

    Joined:
    Aug 1, 2020
    Posts:
    4
    When I'm working on Rider or Visual Studio, the Unity editor crashes, it usually happen after 5-10 minutes writing code. This is the crash log

    Also is very likely to happen when saving/compiling the code

    Using Unity 2021.3.0f1

    Obtained 48 stack frames
    0x00007ff72e5d3f74 (Unity) purecall
    0x00007ff72dc992a7 (Unity) Camera::AsyncCompileSelectionShaders
    0x00007ff72dc9a241 (Unity) Camera::DoRenderSelected
    0x00007ff72dc9ab7d (Unity) Camera::ExecuteCustomRenderPipeline
    0x00007ff72dc9d463 (Unity) Camera::RenderEditorCamera
    0x00007ff72dc9ed85 (Unity) Camera::RenderEditorCamera
    0x00007ff72b8984af (Unity) Handles_CUSTOM_Internal_DrawCameraWithGrid
    0x0000018f9cbe63a7 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.Handles:Internal_DrawCameraWithGrid (UnityEngine.Camera,UnityEditor.DrawCameraMode,UnityEditor.DrawGridParameters&,bool,bool)
    0x0000018f9cba87eb (Mono JIT Code) UnityEditor.Handles:DrawCameraImpl (UnityEngine.Rect,UnityEngine.Camera,UnityEditor.DrawCameraMode,bool,UnityEditor.DrawGridParameters,bool,bool,bool,UnityEngine.GameObject[])
    0x0000018f9cba7c1b (Mono JIT Code) UnityEditor.Handles:DrawCameraStep1 (UnityEngine.Rect,UnityEngine.Camera,UnityEditor.DrawCameraMode,UnityEditor.DrawGridParameters,bool,bool)
    0x0000018f9cba1af3 (Mono JIT Code) UnityEditor.SceneView:DoDrawCamera (UnityEngine.Rect,UnityEngine.Rect,bool&)
    0x0000018f9cb84963 (Mono JIT Code) UnityEditor.SceneView:DoOnGUI ()
    0x0000018f9cb82813 (Mono JIT Code) UnityEditor.SceneView:OnSceneGUI ()
    0x0000018f096b1ae1 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
    0x0000018f096aca23 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
    0x0000018f096a98bb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoIMGUIRepaint ()
    0x0000018f096a5bba (Mono JIT Code) UnityEngine.UIElements.UIR.RenderChainCommand:ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams,single,System.Exception&)
    0x0000018f096a2ceb (Mono JIT Code) UnityEngine.UIElements.UIR.UIRenderDevice:EvaluateChain (UnityEngine.UIElements.UIR.RenderChainCommand,UnityEngine.Material,UnityEngine.Material,UnityEngine.Texture,UnityEngine.Texture,single,Unity.Collections.NativeSlice`1<UnityEngine.UIElements.UIR.Transform3x4>,Unity.Collections.NativeSlice`1<UnityEngine.Vector4>,UnityEngine.MaterialPropertyBlock,bool,System.Exception&)
    0x0000018f0653a30b (Mono JIT Code) UnityEngine.UIElements.UIR.RenderChain:Render ()
    0x0000018f064c8133 (Mono JIT Code) UnityEngine.UIElements.UIRRepaintUpdater:Update ()
    0x0000018f051abe1a (Mono JIT Code) UnityEngine.UIElements.VisualTreeUpdater:UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase)
    0x0000018ede8e9393 (Mono JIT Code) UnityEngine.UIElements.Panel:UpdateForRepaint ()
    0x0000018ede8e57f3 (Mono JIT Code) UnityEngine.UIElements.Panel:Repaint (UnityEngine.Event)
    0x0000018ede8e4421 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
    0x0000018ede8e3d73 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
    0x0000018ede8e3794 (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:processEvent (int,intptr)
    0x0000018ede8e34ab (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
    0x0000018ede8e2f55 (Mono JIT Code) UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
    0x0000018ede8e3196 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
    0x00007ffa26f0e0a4 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
    0x00007ffa26e4e744 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
    0x00007ffa26e4e8dc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
    0x00007ff72c23ecf4 (Unity) scripting_method_invoke
    0x00007ff72c239914 (Unity) ScriptingInvocation::Invoke
    0x00007ff72c233235 (Unity) ScriptingInvocation::Invoke<void>
    0x00007ff72c33be2a (Unity) Scripting::UnityEngine::GUIUtilityProxy::processEvent
    0x00007ff72cd72396 (Unity) GUIView::processRetainedMode
    0x00007ff72d2b62ab (Unity) GUIView::OnInputEvent
    0x00007ff72cd721aa (Unity) GUIView::processInputEvent
    0x00007ff72d2af04e (Unity) GUIView::DoPaint
    0x00007ff72d2b843d (Unity) GUIView::RepaintAll
    0x00007ff72ce45d76 (Unity) PlayerLoopController::UpdateScene
    0x00007ff72ce43d5f (Unity) Application::TickTimer
    0x00007ff72d28bf7a (Unity) MainMessageLoop
    0x00007ff72d29084b (Unity) WinMain
    0x00007ff72e5b1d4e (Unity) __scrt_common_main_seh
    0x00007ffabc0f7614 (KERNEL32) BaseThreadInitThunk
    0x00007ffabdea26a1 (ntdll) RtlUserThreadStart

    Not really sure how to fix that
     
    Last edited: Dec 31, 2022