Search Issue Tracker

Fixed in 2021.1.X

Votes

0

Found in

2021.1.0a6

2021.1.0a7

Issue ID

1293834

Regression

Yes

[Profiler] Crash in ProfilerDriver_Get_Custom_PropSelectedPropertyPath on Editor exit

Profiling

-

The Editor always crashes on exit, the stacktrace in the editor.log indicates ProfilerDriver_Get_Custom_PropSelectedPropertyPath.

To reproduce:
* Open attached proejct with 2020.1.0a7 (Windows)
* Close Editor
* A crash dialog will appear

Reproducible with: 2021.1.0a6, 2021.1.0a7
Not reproducible with: 2021.1.0a5

Before the crash there were lines:

[LAYOUT] About to save layout F:\UnityProjects\case_1273728-Physics\Library/CurrentLayout-default.dwlt
[LAYOUT] About to save layout C:/Users/tomas/AppData/Roaming/Unity/Editor-5.x/Preferences\Layouts\default\LastLayout.dwlt

Here's the crash stacktrace:

0x00007FF758C4171B (Unity) [D:\Projects\input-scene-fix\artifacts\WinEditor\Editor\Win64_VS2019_dev_m_ut_d\EditorBindings.gen.cpp:16995] ProfilerDriver_Get_Custom_PropSelectedPropertyPath
0x000001A216E22903 (Mono JIT Code) (wrapper managed-to-native) UnityEditorInternal.ProfilerDriver:get_selectedPropertyPath ()
0x000001A1C79D5493 (Mono JIT Code) [D:\Projects\input-scene-fix\Modules\ProfilerEditor\ProfilerWindow\ProfilerModules\CPU\CPUProfilerModule.cs:215] UnityEditorInternal.Profiling.CPUProfilerModule:ClearSelectedPropertyPath ()
0x000001A1C79D4886 (Mono JIT Code) [D:\Projects\input-scene-fix\Modules\ProfilerEditor\ProfilerWindow\ProfilerModules\CPUorGPUProfilerModule.cs:178] UnityEditorInternal.Profiling.CPUOrGPUProfilerModule:OnDisable ()
0x000001A1C79D422B (Mono JIT Code) [D:\Projects\input-scene-fix\Modules\ProfilerEditor\ProfilerWindow\ProfilerModules\CPU\CPUProfilerModule.cs:65] UnityEditorInternal.Profiling.CPUProfilerModule:OnDisable ()
0x000001A1C79D1522 (Mono JIT Code) [D:\Projects\input-scene-fix\Modules\ProfilerEditor\ProfilerWindow\ProfilerWindow.cs:524] UnityEditor.ProfilerWindow:OnDisable ()
0x000001A1CB989988 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FF85D82E0D0 (mono-2.0-bdwgc) mono_get_runtime_build_info
0x00007FF85D7B2912 (mono-2.0-bdwgc) mono_perfcounters_init
0x00007FF85D7BB96F (mono-2.0-bdwgc) mono_runtime_invoke
0x00007FF7556E7A47 (Unity) [D:\Projects\input-scene-fix\Runtime\ScriptingBackend\Mono\ScriptingApi_Mono.cpp:638] scripting_method_invoke
0x00007FF7556D4581 (Unity) [D:\Projects\input-scene-fix\Runtime\Scripting\ScriptingInvocation.cpp:273] ScriptingInvocation::Invoke
0x00007FF7556D49FD (Unity) [D:\Projects\input-scene-fix\Runtime\Scripting\ScriptingInvocation.cpp:122] ScriptingInvocation::InvokeChecked
0x00007FF755852DFE (Unity) [D:\Projects\input-scene-fix\Runtime\Scripting\ManagedReference\SerializableManagedRef.cpp:570] SerializableManagedRef::CallMethod
0x00007FF7556416CE (Unity) [D:\Projects\input-scene-fix\Runtime\Mono\MonoBehaviour.cpp:243] MonoBehaviour::WillUnloadScriptableObject
0x00007FF7555D9A6D (Unity) [D:\Projects\input-scene-fix\Runtime\Mono\ManagedMonoBehaviourRef.cpp:239] ManagedMonoBehaviourRef::WillBeDestroyed
0x00007FF7544D31DA (Unity) [D:\Projects\input-scene-fix\Runtime\Misc\SaveAndLoadHelper.cpp:457] CleanupAllObjects
0x00007FF7544D3FE8 (Unity) [D:\Projects\input-scene-fix\Runtime\Misc\SaveAndLoadHelper.cpp:549] CleanupEngine
0x00007FF7565C73E0 (Unity) [D:\Projects\input-scene-fix\Editor\Src\Application\Application.cpp:1823] Application::CoreShutdown
0x00007FF7565FEE34 (Unity) [D:\Projects\input-scene-fix\Editor\Src\Application\Application.cpp:3279] Application::Terminate
0x00007FF757B803E1 (Unity) [D:\Projects\input-scene-fix\Editor\Platform\Windows\ContainerWindow.cpp:626] ContainerWindow::ContainerWndProc

  1. Resolution Note (fix version 2021.1):

    Fixed in: 2021.1.0a9

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.