Profiler crashing Editor 5.6b8

Doesn’t happen always, as usual.

Case submitted: 881938

Stack Trace

========== OUTPUTING STACK TRACE ==================

0x000000014053B10E (Unity) ProfilerProperty::GetFrameTime
0x00000001413516E1 (Unity) ProfilerProperty_Get_Custom_PropFrameTime
0x000000003FACFFAF (Mono JIT Code) (wrapper managed-to-native) UnityEditorInternal.ProfilerProperty:get_frameTime ()
0x000000003FACEF52 (Mono JIT Code) [C:\buildslave\unity\build\Editor\Mono\Profiler\ProfilerWindow.cs:602] UnityEditor.ProfilerWindow:smile:rawCPUorGPUCommonToolbar (UnityEditorInternal.ProfilerProperty)
0x000000003FACE7BE (Mono JIT Code) [C:\buildslave\unity\build\Editor\Mono\Profiler\ProfilerWindow.cs:530] UnityEditor.ProfilerWindow:smile:rawCPUOrGPUHierarchyViewToolbar (UnityEditorInternal.ProfilerProperty,bool)
0x000000003FACCD6D (Mono JIT Code) [C:\buildslave\unity\build\Editor\Mono\Profiler\ProfilerWindow.cs:718] UnityEditor.ProfilerWindow:smile:rawCPUOrGPUPane (UnityEditorInternal.ProfilerHierarchyGUI,UnityEditorInternal.ProfilerTimelineGUI)
0x000000003FAC0BEE (Mono JIT Code) [C:\buildslave\unity\build\Editor\Mono\Profiler\ProfilerWindow.cs:1598] UnityEditor.ProfilerWindow:OnGUI ()
0x000000000B70FBC4 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FFCEB4A5703 (mono) [c:\buildslave\mono\build\mono\mini\mini.c:4937] mono_jit_runtime_invoke
0x00007FFCEB3F8425 (mono) [c:\buildslave\mono\build\mono\metadata\object.c:2623] mono_runtime_invoke
0x00007FFCEB3FE933 (mono) [c:\buildslave\mono\build\mono\metadata\object.c:3838] mono_runtime_invoke_array
0x00007FFCEB3BCE23 (mono) [c:\buildslave\mono\build\mono\metadata\icall.c:2750] ves_icall_InternalInvoke
0x000000000B6D2A39 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[ ],System.Exception&)
0x000000000B6D04E2 (Mono JIT Code) [/Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222] System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[ ],System.Globalization.CultureInfo)
0x00000000321DFBE1 (Mono JIT Code) [/Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115] System.Reflection.MethodBase:Invoke (object,object[ ])
0x0000000032245DB7 (Mono JIT Code) [C:\buildslave\unity\build\Editor\Mono\HostView.cs:262] UnityEditor.HostView:Invoke (string,object)
0x0000000032245C19 (Mono JIT Code) [C:\buildslave\unity\build\Editor\Mono\HostView.cs:255] UnityEditor.HostView:Invoke (string)
0x0000000034CE71B5 (Mono JIT Code) [C:\buildslave\unity\build\Editor\Mono\HostView.cs:222] UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
0x00000000335C2251 (Mono JIT Code) [C:\buildslave\unity\build\Editor\Mono\GUI\DockArea.cs:348] UnityEditor.DockArea:OnGUI ()
0x000000000B70FBC4 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FFCEB4A5703 (mono) [c:\buildslave\mono\build\mono\mini\mini.c:4937] mono_jit_runtime_invoke
0x00007FFCEB3F8425 (mono) [c:\buildslave\mono\build\mono\metadata\object.c:2623] mono_runtime_invoke
0x0000000141055775 (Unity) scripting_method_invoke
0x000000014104AFE1 (Unity) ScriptingInvocation::Invoke
0x0000000140CF5E4F (Unity) MonoBehaviourDoGUI
0x0000000140CE8950 (Unity) IMGUIModule::MonoBehaviourDoGUI
0x000000014148E68D (Unity) MonoBehaviour::smile:oGUI
0x00000001417C2A05 (Unity) GUIView::SendLayoutEvent
0x00000001417C3259 (Unity) GUIView::OnInputEvent
0x000000014008ECB3 (Unity) GUIView::ProcessInputEvent
0x00000001417BEFF6 (Unity) GUIView::smile:oPaint
0x000000014130C849 (Unity) GUIView_CUSTOM_RepaintImmediately
0x000000003FB14BFF (Mono JIT Code) (wrapper managed-to-native) UnityEditor.GUIView:RepaintImmediately ()
0x000000003FB14A58 (Mono JIT Code) [C:\buildslave\unity\build\Editor\Mono\EditorWindow.cs:742] UnityEditor.EditorWindow:RepaintImmediately ()
0x000000003FAE759D (Mono JIT Code) [C:\buildslave\unity\build\Editor\Mono\Profiler\ProfilerWindow.cs:461] UnityEditor.ProfilerWindow:RepaintAllProfilerWindows ()
0x000000000B6C15B0 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
0x00007FFCEB4A5703 (mono) [c:\buildslave\mono\build\mono\mini\mini.c:4937] mono_jit_runtime_invoke
0x00007FFCEB3F8425 (mono) [c:\buildslave\mono\build\mono\metadata\object.c:2623] mono_runtime_invoke
0x0000000141055775 (Unity) scripting_method_invoke
0x000000014104AFE1 (Unity) ScriptingInvocation::Invoke
0x0000000141713041 (Unity) Application::TickTimer
0x00000001417DD84C (Unity) CrashCallback
0x00000001417DF494 (Unity) WinMain
0x0000000141AC3DCC (Unity) strnlen
0x00007FFD10F88364 (KERNEL32) BaseThreadInitThunk
0x00007FFD138570D1 (ntdll) RtlUserThreadStart

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

Hi CDF,

A fix for this callstack crash was submitted in 5.6.0b9. Let us know if you still experience it.

Charles

I see this in 5.6.0b9 (reported as 883908 / 883909)

========== OUTPUTING STACK TRACE ==================

ERROR: SymGetSymFromAddr64, GetLastError: ‘The specified module could not be found.’ (Address: 0000000140535CA5)
0x0000000140535CA5 (Unity)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 000000014133BA21)
0x000000014133BA21 (Unity)
0x00000000385C4C6D (Mono JIT Code) (wrapper managed-to-native) UnityEditorInternal.ProfilerProperty:get_frameTime ()
0x00000000385C41E0 (Mono JIT Code) [C:\buildslave\unity\build\Editor\Mono\Profiler\ProfilerWindow.cs:602] UnityEditor.ProfilerWindow:smile:rawCPUorGPUCommonToolbar (UnityEditorInternal.ProfilerProperty)
0x00000000385C37DC (Mono JIT Code) [C:\buildslave\unity\build\Editor\Mono\Profiler\ProfilerWindow.cs:530] UnityEditor.ProfilerWindow:smile:rawCPUOrGPUHierarchyViewToolbar (UnityEditorInternal.ProfilerProperty,bool)
0x00000000385C20DB (Mono JIT Code) [C:\buildslave\unity\build\Editor\Mono\Profiler\ProfilerWindow.cs:718] UnityEditor.ProfilerWindow:smile:rawCPUOrGPUPane (UnityEditorInternal.ProfilerHierarchyGUI,UnityEditorInternal.ProfilerTimelineGUI)
0x00000000385B3DEE (Mono JIT Code) [C:\buildslave\unity\build\Editor\Mono\Profiler\ProfilerWindow.cs:1598] UnityEditor.ProfilerWindow:OnGUI ()
0x00000000008D6C42 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FF86EFA5703 (mono) mono_set_defaults
0x00007FF86EEF8425 (mono) mono_runtime_invoke
0x00007FF86EEFE933 (mono) mono_runtime_invoke_array
0x00007FF86EEBCE23 (mono) mono_domain_finalize
0x00000000008A0257 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[ ],System.Exception&)
0x000000000089E3B2 (Mono JIT Code) [/Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222] System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[ ],System.Globalization.CultureInfo)
0x00000000153B6D7F (Mono JIT Code) [/Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115] System.Reflection.MethodBase:Invoke (object,object[ ])
0x00000000153FAB75 (Mono JIT Code) [C:\buildslave\unity\build\Editor\Mono\HostView.cs:262] UnityEditor.HostView:Invoke (string,object)
0x00000000153FAA17 (Mono JIT Code) [C:\buildslave\unity\build\Editor\Mono\HostView.cs:255] UnityEditor.HostView:Invoke (string)
0x0000000015543293 (Mono JIT Code) [C:\buildslave\unity\build\Editor\Mono\HostView.cs:222] UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
0x000000001552406D (Mono JIT Code) [C:\buildslave\unity\build\Editor\Mono\GUI\DockArea.cs:348] UnityEditor.DockArea:OnGUI ()
0x00000000008D6C42 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FF86EFA5703 (mono) mono_set_defaults
0x00007FF86EEF8425 (mono) mono_runtime_invoke
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 000000014104F345)
0x000000014104F345 (Unity)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 0000000141044E91)
0x0000000141044E91 (Unity)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 0000000140CEFABF)
0x0000000140CEFABF (Unity)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 0000000140CE2AF0)
0x0000000140CE2AF0 (Unity)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 0000000141485FFD)
0x0000000141485FFD (Unity)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00000001417BB735)
0x00000001417BB735 (Unity)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00000001417BBF89)
0x00000001417BBF89 (Unity)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 000000014008EDA3)
0x000000014008EDA3 (Unity)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00000001417B7CD6)
0x00000001417B7CD6 (Unity)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00000001413068B9)
0x00000001413068B9 (Unity)
0x00000000385D6CED (Mono JIT Code) (wrapper managed-to-native) UnityEditor.GUIView:RepaintImmediately ()
0x00000000385D6B86 (Mono JIT Code) [C:\buildslave\unity\build\Editor\Mono\EditorWindow.cs:742] UnityEditor.EditorWindow:RepaintImmediately ()
0x000000003858C785 (Mono JIT Code) [C:\buildslave\unity\build\Editor\Mono\Profiler\ProfilerWindow.cs:461] UnityEditor.ProfilerWindow:RepaintAllProfilerWindows ()
0x0000000000890A8E (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
0x00007FF86EFA5703 (mono) mono_set_defaults
0x00007FF86EEF8425 (mono) mono_runtime_invoke
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 000000014104F345)
0x000000014104F345 (Unity)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 0000000141044E91)
0x0000000141044E91 (Unity)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 000000014170B2A1)
0x000000014170B2A1 (Unity)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00000001417D635C)
0x00000001417D635C (Unity)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 00000001417D7FA4)
0x00000001417D7FA4 (Unity)
ERROR: SymGetSymFromAddr64, GetLastError: ‘Attempt to access invalid address.’ (Address: 0000000141ABC494)
0x0000000141ABC494 (Unity)
0x00007FF8B33E8364 (KERNEL32) BaseThreadInitThunk
0x00007FF8B38570D1 (ntdll) RtlUserThreadStart

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

Thanks Richard, we are going to look into these callstacks.

I have the same problem in 5.6.0b9. I reported the bug.

The fix for the issue has landed to 5.6.0b10 - b9 still has the issue.