Search Issue Tracker

Fixed

Fixed in 2022.1.23f1, 2022.2.0b15, 2023.1.0a18

Votes

1

Found in

2022.1.20f1

2022.2.0b10

2023.1.0a13

Issue ID

UUM-16838

Regression

Yes

[MacOS] Standalone profiler crashing before opening when editor is ran from external drive

--

-

How to reproduce:
# Create new project
# Open Standalone Profiler (Window>Analysis>Standalone Profiler)
# Wait for Progress bar to reach the step "Initialize Menu"

Expected result: Profiler opens

Actual result: Profiler window crashes

Reproduced with: 2022.1.0a14, 2022.1.20f1, 2022.2.0b11, 2023.1.0a12

Does not reproduce with: 2022.1.0a13

NOTE: Editor must be launched from an external drive

Stacktrace:
*
**
*** Terminating app due to uncaught exception 'NSGenericException', reason: '-[NSApplication runModalSession:] may not be invoked inside of transaction begin/commit pair, or inside of transaction commit (usually this means it was invoked inside of a view's -drawRect: method.)'
*
**
*** First throw call stack:
(
    0   CoreFoundation                      0x00007ff8015801e3 __exceptionPreprocess + 242
    1   libobjc.A.dylib                     0x00007ff8012e0c13 objc_exception_throw + 48
    2   CoreFoundation                      0x00007ff80158004a +[NSException exceptionWithName:reason:userInfo:] + 0
    3   AppKit                              0x00007ff8047abdca _NSRunModal + 152
    4   AppKit                              0x00007ff8043521f8 -[NSApplication runModalSession:] + 241
    5   Unity                               0x0000000108c19b68 -[LaunchScreenController setProgressBar:andText:] + 184
    6   Unity                               0x0000000108c19d2d _ZN18EditorLaunchScreen11SetProgressERKN4core12basic_stringIcNS0_20StringStorageDefaultIcEEEEfb + 45
    7   Unity                               0x0000000107b248e8 _ZL22UpdateProgressBarStateb + 1544
    8   Unity                               0x0000000107b24dd3 _ZN13ProgressScope8PopScopeEm + 499
    9   Unity                               0x00000001075f6ccf _ZL23CommitVariantCompileJobP27SingleVariantCompileJobDatabb + 559
    10  Unity                               0x00000001075f6efc _Z29GetSubProgramForShaderSnippetPN9ShaderLab7ProgramEP6ShaderPNS_4PassERK13ShaderSnippet10ShaderTypejRKN8keywords17LocalKeywordStateESD_RK12fixed_bitsetILi33EjE20BuildTargetSelection22ShaderCompilerPlatformR19ShaderSnippetResult18ShaderRequirements26AsyncShaderCompilationModebb + 332
    11  Unity                               0x00000001068c4c57 _ZN9ShaderLab7Program23CompileShaderSubProgramEP6ShaderPNS_4PassERK13ShaderSnippetjRKN8keywords17LocalKeywordStateERS9_R19ShaderSnippetResult18ShaderRequirements26AsyncShaderCompilationModeb + 1015
    12  Unity                               0x00000001068c623e _ZNK9ShaderLab7Program21GetMatchingSubProgramEPK6ShaderPKNS_4PassERKN8keywords17LocalKeywordStateEjPS8_R19ShaderSnippetResult26AsyncShaderCompilationModebii + 1950
    13  Unity                               0x00000001068d1779 _ZNK9ShaderLab11ShaderState20FindSubProgramsToUseEPK6ShaderPKNS_4PassERNS_11SubProgramsERK17ShaderPassContextRKN8keywords17LocalKeywordStateEbii + 313
    14  Unity                               0x00000001068d1c0c _ZNK9ShaderLab11ShaderState16ApplyShaderStateEjPK19ShaderPropertySheetRK17ShaderPassContextRKN8keywords17LocalKeywordStateEPK6ShaderPKNS_4PassEPNS_11SubProgramsEPK22DeviceRenderStateBlockiiSG_SG_ + 188
    15  Unity                               0x00000001068bf1e5 _ZN9ShaderLab4Pass9ApplyPassEjPK19ShaderPropertySheetR17ShaderPassContextRKN8keywords17LocalKeywordStateEPK6ShaderiiPKNS_10GrabPassesEPNS_11SubProgramsEPK22DeviceRenderStateBlockPKS0_SM_ + 197
    16  Unity                               0x000000010683e8f5 _Z17ApplyMaterialPassRK18SharedMaterialDataR17ShaderPassContextPK6ShaderPN9ShaderLab4PassEiiPKNS7_10GrabPassesEPNS7_11SubProgramsEPK22DeviceRenderStateBlockPKS8_SJ_ + 469
    17  Unity                               0x0000000106875442 _ZN8Material11SetPassFastEPN9ShaderLab4PassER17ShaderPassContextP6ShaderiiPNS0_11SubProgramsE + 386
    18  Unity                               0x00000001068755d4 _ZN8Material21SetPassSlowWithShaderEP6ShaderiR17ShaderPassContexti + 212
    19  Unity                               0x00000001065f846c _ZN17MaterialScripting7SetPassEP8Materiali + 188
    20  Unity                               0x0000000105e8c5f9 _Z23Material_CUSTOM_SetPassP37ScriptingBackendNativeObjectPtrOpaquei + 185
    21  ???                                 0x0000000173ef6bfc 0x0 + 6240037884
    22  ???                                 0x0000000173ed1463 0x0 + 6239884387
    23  ???                                 0x0000000173d7032b 0x0 + 6238438187
    24  ???                                 0x0000000173d6c9dc 0x0 + 6238423516
    25  ???                                 0x0000000173d6c6d3 0x0 + 6238422739
    26  ???                                 0x0000000173d6c433 0x0 + 6238422067
    27  libmonobdwgc-2.0.dylib              0x000000015076c00c mono_jit_runtime_invoke + 1587
    28  libmonobdwgc-2.0.dylib              0x00000001509220db do_runtime_invoke + 80
    29  libmonobdwgc-2.0.dylib              0x0000000150922018 mono_runtime_invoke + 94
    30  Unity                               0x0000000106b5b147 _Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb + 71
    31  Unity                               0x0000000106b383f6 _ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb + 166
    32  Unity                               0x0000000106c7cfc9 _ZN9Scripting11UnityEngine15GUIUtilityProxy12ProcessEventEiPvPbP21ScriptingExceptionPtr + 217
    33  Unity                               0x0000000107636578 _ZN7GUIView19ProcessRetainedModeER10InputEventR8GUIStatei + 152
    34  Unity                               0x0000000108c25aa1 _ZN7GUIView12OnInputEventER10InputEvent + 897
    35  Unity                               0x00000001076359af _ZN7GUIView17ProcessInputEventER10InputEvent + 351
    36  Unity                               0x0000000108c36cf1 -[GUIRenderView renderRect:] + 273
    37  Unity                               0x0000000108c34540 -[GUIMetalView drawRect:] + 480
    38  Unity                               0x0000000108c340fb -[GUIMetalView displayLayer:] + 91
    39  QuartzCore                          0x00007ff8085b1951 _ZN2CA5Layer17display_if_neededEPNS_11TransactionE + 873
    40  QuartzCore                          0x00007ff808708336 _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 640
    41  QuartzCore                          0x00007ff808593231 _ZN2CA11Transaction6commitEv + 777
    42  AppKit                              0x00007ff8041d8f00 _NSTryRunModal + 70
    43  AppKit                              0x00007ff804352187 -[NSApplication runModalSession:] + 128
    44  Unity                               0x0000000108c19b68 -[LaunchScreenController setProgressBar:andText:] + 184
    45  Unity                               0x0000000108c19d2d _ZN18EditorLaunchScreen11SetProgressERKN4core12basic_stringIcNS0_20StringStorageDefaultIcEEEEfb + 45
    46  Unity                               0x0000000107b248e8 _ZL22UpdateProgressBarStateb + 1544
    47  Unity                               0x00000001077a6beb _ZN15SectionIterator25UpdateProgressAndMoveNextEv + 219
    48  Unity                               0x00000001077a3b3c _ZN11Application17InitializeProjectEv + 19596
    49  Unity                               0x0000000108c0fd3c -[EditorApplication applicationDidFinishLaunching:] + 156
    50  CoreFoundation                      0x00007ff8014fa03c {_}{{_}}CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER{{_}}{_} + 12
    51  CoreFoundation                      0x00007ff801597592 ___CFXRegistrationPost_block_invoke + 49
    52  CoreFoundation                      0x00007ff801597510 _CFXRegistrationPost + 496
    53  CoreFoundation                      0x00007ff8014cbca8 _CFXNotificationPost + 735
    54  Foundation                          0x00007ff80230090e -[NSNotificationCenter postNotificationName:object:userInfo:] + 82
    55  AppKit                              0x00007ff803f31dee -[NSApplication _postDidFinishNotification] + 305
    56  AppKit                              0x00007ff803f31b3c -[NSApplication _sendFinishLaunchingNotification] + 208
    57  AppKit                              0x00007ff803f2f70c -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 541
    58  AppKit                              0x00007ff803f2f360 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 665
    59  Foundation                          0x00007ff80232b834 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 308
    60  Foundation                          0x00007ff80232b6a6 _NSAppleEventManagerGenericHandler + 80
    61  AE                                  0x00007ff807b9c3f0 _AppleEventsCheckInAppWithBlock + 14079
    62  AE                                  0x00007ff807b9bc5a _AppleEventsCheckInAppWithBlock + 12137
    63  AE                                  0x00007ff807b9538f aeProcessAppleEvent + 419
    64  HIToolbox                           0x00007ff80a19b3d2 AEProcessAppleEvent + 54
    65  AppKit                              0x00007ff803f29992 _DPSNextEvent + 2036
    66  AppKit                              0x00007ff803f27bfa -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1394
    67  AppKit                              0x00007ff803f1a2a9 -[NSApplication run] + 586
    68  AppKit                              0x00007ff803eee227 NSApplicationMain + 817
    69  Unity                               0x0000000108c2c43c _Z10EditorMainiPPKc + 1020
    70  Unity                               0x0000000108c2c759 main + 9
    71  dyld                                0x000000011811451e start + 462
)
libc++abi: terminating with uncaught exception of type NSException
Obtained 69 stack frames.
#0  0x007ff80140800e in __pthread_kill
#1  0x007ff801389d24 in abort
#2  0x007ff8013fa082 in abort_message
#3  0x007ff8013eb1bd in demangling_unexpected_handler()
#4  0x007ff8012e7e01 in _objc_terminate()
#5  0x007ff8013f94a7 in std::__terminate(void (*)())
#6  0x007ff8013f9458 in std::terminate()
#7  0x000001075f6efc in GetSubProgramForShaderSnippet(ShaderLab::Program*, Shader*, ShaderLab::Pass*, ShaderSnippet const&, ShaderType, unsigned int, keywords::LocalKeywordState const&, keywords::LocalKeywordState const&, fixed_bitset<33, unsigned int> const&, BuildTargetSelection, ShaderCompilerPlatform, ShaderSnippetResult&, ShaderRequirements, AsyncShaderCompilationMode, bool, bool)
#8  0x000001068c4c57 in ShaderLab::Program::CompileShaderSubProgram(Shader*, ShaderLab::Pass*, ShaderSnippet const&, unsigned int, keywords::LocalKeywordState const&, keywords::LocalKeywordState&, ShaderSnippetResult&, ShaderRequirements, AsyncShaderCompilationMode, bool)
#9  0x000001068c623e in ShaderLab::Program::GetMatchingSubProgram(Shader const*, ShaderLab::Pass const*, keywords::LocalKeywordState const&, unsigned int, keywords::LocalKeywordState*, ShaderSnippetResult&, AsyncShaderCompilationMode, bool, int, int) const
#10 0x000001068d1779 in ShaderLab::ShaderState::FindSubProgramsToUse(Shader const*, ShaderLab::Pass const*, ShaderLab::SubPrograms&, ShaderPassContext const&, keywords::LocalKeywordState const&, bool, int, int) const
#11 0x000001068d1c0c in ShaderLab::ShaderState::ApplyShaderState(unsigned int, ShaderPropertySheet const*, ShaderPassContext const&, keywords::LocalKeywordState const&, Shader const*, ShaderLab::Pass const*, ShaderLab::SubPrograms*, DeviceRenderStateBlock const*, int, int, ShaderLab::Pass const*, ShaderLab::Pass const*) const
#12 0x000001068bf1e5 in ShaderLab::Pass::ApplyPass(unsigned int, ShaderPropertySheet const*, ShaderPassContext&, keywords::LocalKeywordState const&, Shader const*, int, int, ShaderLab::GrabPasses const*, ShaderLab::SubPrograms*, DeviceRenderStateBlock const*, ShaderLab::Pass const*, ShaderLab::Pass const*)
#13 0x0000010683e8f5 in ApplyMaterialPass(SharedMaterialData const&, ShaderPassContext&, Shader const*, ShaderLab::Pass*, int, int, ShaderLab::GrabPasses const*, ShaderLab::SubPrograms*, DeviceRenderStateBlock const*, ShaderLab::Pass const*, ShaderLab::Pass const*)
#14 0x00000106875442 in Material::SetPassFast(ShaderLab::Pass*, ShaderPassContext&, Shader*, int, int, ShaderLab::SubPrograms*)
#15 0x000001068755d4 in Material::SetPassSlowWithShader(Shader*, int, ShaderPassContext&, int)
#16 0x000001065f846c in MaterialScripting::SetPass(Material*, int)
#17 0x00000105e8c5f9 in Material_CUSTOM_SetPass(ScriptingBackendNativeObjectPtrOpaque*, int)
#18 0x00000173ef6bfc in  (wrapper managed-to-native) UnityEngine.Material:SetPass (UnityEngine.Material,int) [ \{0x7f9254a21cc0}
+ 0x8c]  (0x173ef6b70 0x173ef6cdb) [0x150342a80 - Unity Child Domain]
#19 0x00000173ed1463 in  UnityEngine.UIElements.UIRRepaintUpdater:Update () [
{0x7f92c44d3be8}
+ 0x253] [/Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Renderer/UIRRepaintUpdater.cs :: 80u] (0x173ed1210 0x173ed1484) [0x150342a80 - Unity Child Domain]
#20 0x00000173d7032b in  UnityEngine.UIElements.Panel:UpdateForRepaint () [
{0x7f925337e7b8}
+ 0xab] [/Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Panel.cs :: 998u] (0x173d70280 0x173d70334) [0x150342a80 - Unity Child Domain]
#21 0x00000173d6c9dc in  UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel) [
{0x7f925337e620}
+ 0x14c] [/Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs :: 453u] (0x173d6c890 0x173d6ce2c) [0x150342a80 - Unity Child Domain]
#22 0x00000173d6c6d3 in  UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&) [
{0x7f92c3c3fc78}
+ 0xf3] [/Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs :: 205u] (0x173d6c5e0 0x173d6c705) [0x150342a80 - Unity Child Domain]
#23 0x00000173d6c433 in  UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr) [
{0x7f92c3c40700}
+ 0x23] [/Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs :: 28u] (0x173d6c410 0x173d6c43c) [0x150342a80 - Unity Child Domain]
#24 0x0000015076c00c in mono_jit_runtime_invoke
#25 0x000001509220db in do_runtime_invoke
#26 0x00000150922018 in mono_runtime_invoke
#27 0x00000106b5b147 in scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)
#28 0x00000106b383f6 in ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)
#29 0x00000106c7cfc9 in Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent(int, void*, bool*, ScriptingExceptionPtr*)
#30 0x00000107636578 in GUIView::ProcessRetainedMode(InputEvent&, GUIState&, int)
#31 0x00000108c25aa1 in GUIView::OnInputEvent(InputEvent&)
#32 0x000001076359af in GUIView::ProcessInputEvent(InputEvent&)
#33 0x00000108c36cf1 in -[GUIRenderView renderRect:]
#34 0x00000108c34540 in -[GUIMetalView drawRect:]
#35 0x00000108c340fb in -[GUIMetalView displayLayer:]
#36 0x007ff8085b1951 in CA::Layer::display_if_needed(CA::Transaction*)
#37 0x007ff808708336 in CA::Context::commit_transaction(CA::Transaction*, double, double*)
#38 0x007ff808593231 in CA::Transaction::commit()
#39 0x007ff8041d8f00 in _NSTryRunModal
#40 0x007ff804352187 in -[NSApplication runModalSession:]
#41 0x00000108c19b68 in -[LaunchScreenController setProgressBar:andText:]
#42 0x00000108c19d2d in EditorLaunchScreen::SetProgress(core::basic_string<char, core::StringStorageDefault<char> > const&, float, bool)
#43 0x00000107b248e8 in UpdateProgressBarState(bool)
#44 0x000001077a6beb in SectionIterator::UpdateProgressAndMoveNext()
#45 0x000001077a3b3c in Application::InitializeProject()
#46 0x00000108c0fd3c in -[EditorApplication applicationDidFinishLaunching:]
#47 0x007ff8014fa03c in {_}{{_}}CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER{{_}}{_}
#48 0x007ff801597592 in ___CFXRegistrationPost_block_invoke
#49 0x007ff801597510 in _CFXRegistrationPost
#50 0x007ff8014cbca8 in _CFXNotificationPost
#51 0x007ff80230090e in -[NSNotificationCenter postNotificationName:object:userInfo:]
#52 0x007ff803f31dee in -[NSApplication _postDidFinishNotification]
#53 0x007ff803f31b3c in -[NSApplication _sendFinishLaunchingNotification]
#54 0x007ff803f2f70c in -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:]
#55 0x007ff803f2f360 in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:]
#56 0x007ff80232b834 in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:]
#57 0x007ff80232b6a6 in _NSAppleEventManagerGenericHandler
#58 0x007ff807b9c3f0 in _AppleEventsCheckInAppWithBlock
#59 0x007ff807b9bc5a in _AppleEventsCheckInAppWithBlock
#60 0x007ff807b9538f in aeProcessAppleEvent
#61 0x007ff80a19b3d2 in AEProcessAppleEvent
#62 0x007ff803f29992 in _DPSNextEvent
#63 0x007ff803f27bfa in -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
#64 0x007ff803f1a2a9 in -[NSApplication run]
#65 0x007ff803eee227 in NSApplicationMain
#66 0x00000108c2c43c in EditorMain(int, char const**)
#67 0x00000108c2c759 in main
#68 0x0000011811451e in (Unknown)

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.