Search Unity

Bug Unity crashes when entering play mode

Discussion in 'Editor & General Support' started by kuurse, Apr 8, 2023.

  1. kuurse

    kuurse

    Joined:
    Mar 29, 2023
    Posts:
    1
    My Unity Editor is crashing when I try to enter play mode. Some facts about the problem:
    • I am using version 2021.3.22f1
    • Only happens when I use URP and try to enter play mode (I haven't tested HDRP)
    • After the crash, a window appears with the following message in the title bar: "Unity Editor 2021.3.22f1_b6c551784ba3"
    • If Visual Studio 2022 is open it always crashes, even if there is no script open in VS, it is enough that VS 2022 is open
    • If I change my Main External Script Editor to VSCode it crashes, even though VSCode is not open
    • If I update my Version Control to 2.0.3 in the Package Manager window, it also
    • I ran my tests on a completely new project, without importing any assets or packages other than the defaults
    -------------------------------------------------------------------------------------------------------------------------------------------
    • I get the following log:
      Obtained 64 stack frames
      0x00007fffaf21ad3c (mono-2.0-bdwgc) [mono-hash.c:122] mono_g_hash_table_find_slot
      0x00007fffaf291154 (mono-2.0-bdwgc) [reflection.c:491] mono_type_get_object_checked
      0x00007fffaf22cabe (mono-2.0-bdwgc) [object.c:2280] mono_class_create_runtime_vtable
      0x00007fffaf334e20 (mono-2.0-bdwgc) [method-to-ir.c:9027] mono_method_to_ir
      0x00007fffaf2e5580 (mono-2.0-bdwgc) [mini.c:3492] mini_method_compile
      0x00007fffaf2e7127 (mono-2.0-bdwgc) [mini.c:4086] mono_jit_compile_method_inner
      0x00007fffaf2edddc (mono-2.0-bdwgc) [mini-runtime.c:2700] mono_jit_compile_method_with_opt
      0x00007fffaf2ef828 (mono-2.0-bdwgc) [mini-runtime.c:3309] mono_jit_runtime_invoke
      0x00007fffaf22e764 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
      0x00007fffaf229810 (mono-2.0-bdwgc) [object.c:563] mono_runtime_class_init_full
      0x00007fffaf3444c2 (mono-2.0-bdwgc) [method-to-ir.c:9929] mono_method_to_ir
      0x00007fffaf2e5580 (mono-2.0-bdwgc) [mini.c:3492] mini_method_compile
      0x00007fffaf2e7127 (mono-2.0-bdwgc) [mini.c:4086] mono_jit_compile_method_inner
      0x00007fffaf2edddc (mono-2.0-bdwgc) [mini-runtime.c:2700] mono_jit_compile_method_with_opt
      0x00007fffaf2ef828 (mono-2.0-bdwgc) [mini-runtime.c:3309] mono_jit_runtime_invoke
      0x00007fffaf22e764 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
      0x00007fffaf22e8fc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
      0x00007ff649bc1e94 (Unity) scripting_method_invoke
      0x00007ff649ba1694 (Unity) ScriptingInvocation::Invoke
      0x00007ff649b9c2ba (Unity) ScriptingInvocation::Invoke<bool>
      0x00007ff649ce8958 (Unity) Scripting::UnityEngine::DebugProxy::CallOverridenDebugHandler
      0x00007ff649ba1d1c (Unity) Scripting::LogException
      0x00007ff649ba16f2 (Unity) ScriptingInvocation::Invoke
      0x00007ff649556e30 (Unity) BurstCompilerService::CompileAsync
      0x00007ff649557bea (Unity) BurstCompilerService::GetDisassembly
      0x00007ff648df20f4 (Unity) BurstCompilerService_CUSTOM_GetDisassembly
      0x000001f996c4bb65 ((<unknown>))
      0x000001f996c4b9fb ((<unknown>))
      0x000001f996c4e643 ((<unknown>))
      0x000001f996c4b883 ((<unknown>))
      0x000001f996c4ad73 ((<unknown>))
      0x000001f996c48c4b ((<unknown>))
      0x000001f996c4976d ((<unknown>))
      0x00007fffaf2efeb4 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
      0x00007fffaf22e764 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
      0x00007fffaf229810 (mono-2.0-bdwgc) [object.c:563] mono_runtime_class_init_full
      0x00007fffaf196290 (mono-2.0-bdwgc) [icall-def.h:756] ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_RunClassConstructor_raw
      0x000001fc270d184a ((<unknown>))
      0x000001fc270d173b ((<unknown>))
      0x000001fc270d059b ((<unknown>))
      0x000001fc1f3f5468 ((<unknown>))
      0x00007fffaf2efeb4 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
      0x00007fffaf22e764 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
      0x00007fffaf22e8fc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
      0x00007ff649bc1e94 (Unity) scripting_method_invoke
      0x00007ff649ba1694 (Unity) ScriptingInvocation::Invoke
      0x00007ff649b9c295 (Unity) ScriptingInvocation::Invoke<void>
      0x00007ff649cde973 (Unity) Scripting::UnityEditor::EditorAssembliesProxy::processInitializeOnLoadAttributes
      0x00007ff649b964db (Unity) MonoManager::SetupLoadedEditorAssemblies
      0x00007ff649b8bfcd (Unity) MonoManager::EndReloadAssembly
      0x00007ff649b93b58 (Unity) MonoManager::ReloadAssembly
      0x00007ff64aaf531d (Unity) Internal_ADB_Only_ReloadAllUsedAssemblies
      0x00007ff64afb55da (Unity) ImportOutOfDateAssets
      0x00007ff64afc1483 (Unity) RefreshInternalV2
      0x00007ff64afc8d8b (Unity) StopAssetImportingV2Internal
      0x00007ff64aad0736 (Unity) EditorSceneManager::RestoreSceneBackups
      0x00007ff64a7d8c35 (Unity) PlayerLoopController::EnterPlayMode
      0x00007ff64a7e8ad7 (Unity) PlayerLoopController::SetIsPlaying
      0x00007ff64a7ebf4b (Unity) Application::TickTimer
      0x00007ff64ac40fba (Unity) MainMessageLoop
      0x00007ff64ac4588b (Unity) WinMain
      0x00007ff64c02315e (Unity) __scrt_common_main_seh
      0x00007ff827d67614 (KERNEL32) BaseThreadInitThunk
      0x00007ff829c026a1 (ntdll) RtlUserThreadStart