Repository: microsoft/terminal (language: cpp)

Issue:
DefTerm handoff does not work in NON glomming mode
### Windows Terminal version

1.13.10251.0

### Windows build number

_No response_

### Other Software

_No response_

### Steps to reproduce

No glomming. Hand off.

### Expected Behavior

_No response_

### Actual Behavior

No hand off


Discussion / hints:
Stashing this in case the debugger goes away

<details>
<summary>Details</summary>

```
Break-in sent, waiting 30 seconds...
WARNING: Break-in timed out, suspending.
         This is usually caused by another thread holding the loader lock
(5514c.46d64): Wake debugger - code 80000007 (first chance)
*** WARNING: Unable to verify checksum for D:\dev\private\OpenConsole\src\cascadia\CascadiaPackage\bin\x64\Debug\AppX\TerminalApp.dll
KERNELBASE!wil::details::DebugBreak+0x3:
00007ffa`df174df3 c3              ret
0:000> p
Due to the break-in timeout the debugger cannot step or trace
       ^ Operation not supported in current debug session 'p'
0:000> p
Due to the break-in timeout the debugger cannot step or trace
       ^ Operation not supported in current debug session 'p'
0:000> g
(5514c.bab58): Break instruction exception - code 80000003 (first chance)
ntdll!DbgBreakPoint:
00007ffa`e1666610 cc              int     3
0:029> g
onecore\com\combase\dcomrem\channelb.cxx(6780)\combase.dll!00007FFAE071D9D7: (caller: 00007FFAE071C5ED) LogHr(16) tid(435f8) 80004021 The operation attempted is not supported.
onecore\com\combase\catalog\services.cxx(2622)\combase.dll!00007FFAE06E3671: (caller: 00007FFAE06E33C2) ReturnHr(3) tid(46d64) 80070490 Element not found.
    Msg:[Package WindowsTerminalDev_0.0.1.0_x64__8wekyb3d8bbwe is not singleton or system registered] 
onecore\com\combase\catalog\services.cxx(2622)\combase.dll!00007FFAE06E3671: (caller: 00007FFAE06E33C2) ReturnHr(4) tid(46d64) 80070490 Element not found.
    Msg:[Package WindowsTerminalDev_0.0.1.0_x64__8wekyb3d8bbwe is not singleton or system registered] 
D:\dev\private\OpenConsole\src\cascadia\TerminalApp\AppLogic.cpp(551)\TerminalApp.dll!00007FFA351A894F: (caller: 00007FFA35139C1F) LogHr(2) tid(46d64) 80070424 The specified service does not exist as an installed service.
    [winrt::TerminalApp::implementation::AppLogic::_IsKeyboardServiceEnabled(!hService.is_valid())]
ModLoad: 00007ffa`d3330000 00007ffa`d33d2000   C:\WINDOWS\SYSTEM32\policymanager.dll
ModLoad: 00007ffa`d3290000 00007ffa`d3323000   C:\WINDOWS\SYSTEM32\msvcp110_win.dll
ModLoad: 00007ffa`908a0000 00007ffa`90a55000   C:\Windows\System32\TaskFlowDataEngine.dll
(5514c.76c0): Break instruction exception - code 80000003 (first chance)
ntdll!DbgBreakPoint:
00007ffa`e1666610 cc              int     3
0:000> ~*k

.  0  Id: 5514c.46d64 Suspend: 1 Teb: 00000052`279c7000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`27afdb28 00007ffa`e15d95ed     ntdll!ZwWaitForAlertByThreadId+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 4051] 
01 (Inline Function) --------`--------     ntdll!RtlpWaitOnAddressWithTimeout+0x41 [minkernel\ntos\rtl\waitaddr.c @ 851] 
02 (Inline Function) --------`--------     ntdll!RtlpWaitOnAddress+0xdc [minkernel\ntos\rtl\waitaddr.c @ 1094] 
03 00000052`27afdb30 00007ffa`e15d9f38     ntdll!RtlpWaitOnCriticalSection+0x1cd [minkernel\ntos\rtl\resource.c @ 1604] 
04 00000052`27afdc40 00007ffa`e15d9d82     ntdll!RtlpEnterCriticalSectionContended+0x1a8 [minkernel\ntos\rtl\resource.c @ 2317] 
05 00000052`27afdca0 00007ffa`db89aa34     ntdll!RtlEnterCriticalSection+0x42 [minkernel\ntos\rtl\resource.c @ 1923] 
06 00000052`27afdcd0 00007ffa`db1c6880     CoreMessaging!CoreUICallSend+0xad94
07 00000052`27afdd60 00007ffa`db1c5e80     dcomp!DCompositionCreateDevice3+0x135f0
08 00000052`27afdda0 00007ffa`aea34dcc     dcomp!DCompositionCreateDevice3+0x12bf0
09 00000052`27afde30 00007ffa`aea34ce9     Windows_UI_Xaml!DllCanUnloadNow+0x1a2ac
0a 00000052`27afdec0 00007ffa`aea34c94     Windows_UI_Xaml!DllCanUnloadNow+0x1a1c9
0b 00000052`27afdef0 00007ffa`aea34a46     Windows_UI_Xaml!DllCanUnloadNow+0x1a174
0c 00000052`27afdf30 00007ffa`aea5014d     Windows_UI_Xaml!DllCanUnloadNow+0x19f26
0d 00000052`27afdf80 00007ffa`aea50996     Windows_UI_Xaml!DllCanUnloadNow+0x3562d
0e 00000052`27afe150 00007ffa`aea4e814     Windows_UI_Xaml!DllCanUnloadNow+0x35e76
0f 00000052`27afe270 00007ffa`aea4dc48     Windows_UI_Xaml!DllCanUnloadNow+0x33cf4
10 00000052`27afe5d0 00007ffa`aea527c5     Windows_UI_Xaml!DllCanUnloadNow+0x33128
11 00000052`27afe6e0 00007ffa`aeb56ecf     Windows_UI_Xaml!DllCanUnloadNow+0x37ca5
12 00000052`27afe9c0 00007ffa`ae85d3d9     Windows_UI_Xaml!DllMain+0x6a8cf
13 00000052`27afea20 00007ffa`aea3f1aa     Windows_UI_Xaml!GetErrorContextIndex+0xd8949
14 00000052`27afead0 00007ffa`aea2c6d7     Windows_UI_Xaml!DllCanUnloadNow+0x2468a
15 00000052`27afebf0 00007ffa`aea2c571     Windows_UI_Xaml!DllCanUnloadNow+0x11bb7
16 00000052`27afec50 00007ffa`aea2c492     Windows_UI_Xaml!DllCanUnloadNow+0x11a51
17 00000052`27afec90 00007ffa`ae90fa01     Windows_UI_Xaml!DllCanUnloadNow+0x11972
18 00000052`27afecf0 00007ffa`ae90f8e3     Windows_UI_Xaml!DllGetActivationFactory+0xe51
19 00000052`27afed30 00007ffa`ae90ef64     Windows_UI_Xaml!DllGetActivationFactory+0xd33
1a 00000052`27afed60 00007ffa`ae90ede0     Windows_UI_Xaml!DllGetActivationFactory+0x3b4
1b 00000052`27afeda0 00007ffa`ae93083a     Windows_UI_Xaml!DllGetActivationFactory+0x230
1c 00000052`27afee10 00007ffa`ae93075c     Windows_UI_Xaml!DllGetActivationFactory+0x21c8a
1d 00000052`27afee50 00007ffa`db894a90     Windows_UI_Xaml!DllGetActivationFactory+0x21bac
1e 00000052`27afee80 00007ffa`db8949e1     CoreMessaging!CoreUICallSend+0x4df0
1f 00000052`27afeeb0 00007ffa`db875599     CoreMessaging!CoreUICallSend+0x4d41
20 00000052`27afef00 00007ffa`db8c52c5     CoreMessaging!CoreUICallReceive+0xbce9
21 00000052`27afef60 00007ffa`db87c1dd     CoreMessaging!SvchostPushServiceGlobals+0x82b5
22 00000052`27afefd0 00007ffa`db87aece     CoreMessaging!CoreUICallReceive+0x1292d
23 00000052`27aff080 00007ffa`db87abd3     CoreMessaging!CoreUICallReceive+0x1161e
24 00000052`27aff120 00007ffa`db8ccc39     CoreMessaging!CoreUICallReceive+0x11323
25 00000052`27aff160 00007ffa`db89e861     CoreMessaging!SvchostPushServiceGlobals+0xfc29
26 00000052`27aff1a0 00007ffa`e13eaa53     CoreMessaging!CoreUICallSend+0xebc1
27 00000052`27aff210 00007ffa`e13ea41c     user32!CallWindowProcW+0x5c3
28 00000052`27aff370 00007ffa`e13f7d3a     user32!SendMessageW+0xbcc
29 00000052`27aff3d0 00007ffa`e1666964     user32!FillRect+0xba
2a 00000052`27aff430 00007ffa`dee81534     ntdll!KiUserCallbackDispatcherContinue [minkernel\ntos\rtl\amd64\trampoln.asm @ 607] 
2b 00000052`27aff4b8 00007ffa`e13f781e     win32u!ZwUserGetMessage+0x14 [onecoreuap\windows\core\umode\moderncore\objfre\amd64\usrstubs.asm @ 189] 
2c 00000052`27aff4c0 00007ff7`9629cf12     user32!GetMessageW+0x2e
2d 00000052`27aff520 00007ff7`963e34a2     WindowsTerminal!wWinMain+0x152 [D:\dev\private\OpenConsole\src\cascadia\WindowsTerminal\main.cpp @ 155] 
2e 00000052`27aff700 00007ff7`963e334e     WindowsTerminal!invoke_main+0x32 [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 123] 
2f 00000052`27aff740 00007ff7`963e320e     WindowsTerminal!__scrt_common_main_seh+0x12e [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288] 
30 00000052`27aff7b0 00007ff7`963e353e     WindowsTerminal!__scrt_common_main+0xe [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 331] 
31 00000052`27aff7e0 00007ffa`e0b41350     WindowsTerminal!wWinMainCRTStartup+0xe [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_wwinmain.cpp @ 17] 
32 00000052`27aff810 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
33 00000052`27aff840 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

   1  Id: 5514c.70844 Suspend: 1 Teb: 00000052`279c9000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`27bffb18 00007ffa`e15e7c2f     ntdll!ZwWaitForWorkViaWorkerFactory+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 4075] 
01 00000052`27bffb20 00007ffa`e0b41350     ntdll!TppWorkerThread+0x2df [minkernel\threadpool\ntdll\worker.c @ 910] 
02 00000052`27bffe10 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
03 00000052`27bffe40 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

   2  Id: 5514c.862d8 Suspend: 1 Teb: 00000052`279cb000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`27cffaf8 00007ffa`e15e7c2f     ntdll!ZwWaitForWorkViaWorkerFactory+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 4075] 
01 00000052`27cffb00 00007ffa`e0b41350     ntdll!TppWorkerThread+0x2df [minkernel\threadpool\ntdll\worker.c @ 910] 
02 00000052`27cffdf0 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
03 00000052`27cffe20 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

   3  Id: 5514c.6fd00 Suspend: 1 Teb: 00000052`279cd000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`27dff658 00007ffa`e15e7c2f     ntdll!ZwWaitForWorkViaWorkerFactory+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 4075] 
01 00000052`27dff660 00007ffa`e0b41350     ntdll!TppWorkerThread+0x2df [minkernel\threadpool\ntdll\worker.c @ 910] 
02 00000052`27dff950 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
03 00000052`27dff980 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

   4  Id: 5514c.435f8 Suspend: 1 Teb: 00000052`279cf000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`27efcf88 00007ffa`df0a4e7e     ntdll!ZwWaitForSingleObject+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 251] 
01 00000052`27efcf90 00007ffa`db8dac2c     KERNELBASE!WaitForSingleObjectEx+0x8e [minkernel\kernelbase\synch.c @ 1328] 
02 00000052`27efd030 00007ffa`db8abca6     CoreMessaging!SvchostPushServiceGlobals+0x1dc1c
03 00000052`27efd080 00007ffa`db8b0c11     CoreMessaging!CreateDispatcherQueueController+0x1a06
04 00000052`27efd110 00007ffa`db8b0ae9     CoreMessaging!MsgStringCreateStack+0x46f1
05 00000052`27efd1c0 00007ffa`bf43f5cf     CoreMessaging!MsgStringCreateStack+0x45c9
06 00000052`27efd220 00007ffa`bf43f24e     Windows_UI!Ordinal1600+0xa0bf
07 00000052`27efd2f0 00007ff7`9632a7d9     Windows_UI!Ordinal1600+0x9d3e
08 00000052`27efd3a0 00007ff7`963360d5     WindowsTerminal!winrt::impl::consume_Windows_UI_Core_ICoreDispatcher<winrt::Windows::UI::Core::ICoreDispatcher>::RunAsync+0xc9 [D:\dev\private\OpenConsole\src\cascadia\WindowsTerminal\Generated Files\winrt\Windows.UI.Core.h @ 191] 
09 00000052`27efd440 00007ff7`962d1e5b     WindowsTerminal!`winrt::resume_foreground'::`2'::awaitable::await_suspend+0x65 [D:\dev\private\OpenConsole\src\cascadia\WindowsTerminal\Generated Files\winrt\Windows.UI.Core.h @ 3492] 
0a 00000052`27efd490 00007ff7`962b0bef     WindowsTerminal!winrt::impl::notify_awaiter<`winrt::resume_foreground'::`2'::awaitable>::await_suspend<std::experimental::coroutine_traits<winrt::Windows::Foundation::IAsyncOperation<winrt::hstring>,AppHost *>::promise_type>+0x4b [D:\dev\private\OpenConsole\src\cascadia\WindowsTerminal\Generated Files\winrt\base.h @ 8886] 
0b 00000052`27efd4e0 00007ff7`962b0612     WindowsTerminal!AppHost::_GetWindowLayoutAsync$_ResumeCoro$1+0x57f [D:\dev\private\OpenConsole\src\cascadia\WindowsTerminal\AppHost.cpp @ 803] 
0c 00000052`27efdaf0 00007ff7`962aa6a3     WindowsTerminal!AppHost::_GetWindowLayoutAsync$_InitCoro$2+0x142
0d 00000052`27efdb80 00007ff7`962c3d5c     WindowsTerminal!AppHost::_GetWindowLayoutAsync+0xd3
0e 00000052`27efde10 00007ff7`962ad943     WindowsTerminal!`AppHost::AppHost'::`2'::<lambda_1>::operator()<winrt::Windows::Foundation::IInspectable const &>+0x3c [D:\dev\private\OpenConsole\src\cascadia\WindowsTerminal\AppHost.cpp @ 93] 
*** WARNING: Unable to verify checksum for D:\dev\private\OpenConsole\src\cascadia\CascadiaPackage\bin\x64\Debug\AppX\Microsoft.Terminal.Remoting.dll
0f 00000052`27efde60 00007ffa`5523bf69     WindowsTerminal!winrt::impl::delegate<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Microsoft::Terminal::Remoting::GetWindowLayoutArgs>,`AppHost::AppHost'::`2'::<lambda_1> >::Invoke+0x43 [D:\dev\private\OpenConsole\src\cascadia\WindowsTerminal\Generated Files\winrt\Windows.Foundation.h @ 895] 
10 00000052`27efdea0 00007ffa`55268935     Microsoft_Terminal_Remoting!winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Microsoft::Terminal::Remoting::GetWindowLayoutArgs>::operator()+0xb9 [D:\dev\private\OpenConsole\src\cascadia\Remoting\Generated Files\winrt\Windows.Foundation.h @ 2525] 
11 00000052`27efdf20 00007ffa`552667a5     Microsoft_Terminal_Remoting!winrt::impl::invoke<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Microsoft::Terminal::Remoting::GetWindowLayoutArgs>,winrt::Windows::Foundation::IInspectable,winrt::Microsoft::Terminal::Remoting::GetWindowLayoutArgs>+0x35 [D:\dev\private\OpenConsole\src\cascadia\Remoting\Generated Files\winrt\base.h @ 5762] 
12 00000052`27efdf70 00007ffa`55266133     Microsoft_Terminal_Remoting!winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Microsoft::Terminal::Remoting::GetWindowLayoutArgs> >::operator()<winrt::Windows::Foundation::IInspectable,winrt::Microsoft::Terminal::Remoting::GetWindowLayoutArgs>+0x115 [D:\dev\private\OpenConsole\src\cascadia\Remoting\Generated Files\winrt\base.h @ 5897] 
13 00000052`27efe010 00007ffa`5526f323     Microsoft_Terminal_Remoting!`winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Microsoft::Terminal::Remoting::GetWindowLayoutArgs>::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Microsoft::Terminal::Remoting::GetWindowLayoutArgs><winrt::Microsoft::Terminal::Remoting::implementation::WindowManager,winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Microsoft::Terminal::Remoting::GetWindowLayoutArgs> > winrt::Microsoft::Terminal::Remoting::implementation::WindowManager::*>'::`1'::<lambda_23_>::operator()<winrt::Windows::Foundation::IInspectable const &,winrt::Microsoft::Terminal::Remoting::GetWindowLayoutArgs const &>+0xc3 [D:\dev\private\OpenConsole\src\cascadia\Remoting\Generated Files\winrt\Windows.Foundation.h @ 2520] 
14 00000052`27efe090 00007ffa`5523bf69     Microsoft_Terminal_Remoting!winrt::impl::delegate<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Microsoft::Terminal::Remoting::GetWindowLayoutArgs>,`winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Microsoft::Terminal::Remoting::GetWindowLayoutArgs>::implementation<winrt::Microsoft::Terminal::Remoting::implementation::WindowManager,winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Microsoft::Terminal::Remoting::GetWindowLayoutArgs> > winrt::Microsoft::Terminal::Remoting::implementation::WindowManager::*>'::`1'::<lambda_23_> >::Invoke+0x43 [D:\dev\private\OpenConsole\src\cascadia\Remoting\Generated Files\winrt\Windows.Foundation.h @ 895] 
15 00000052`27efe0d0 00007ffa`55234f97     Microsoft_Terminal_Remoting!winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Microsoft::Terminal::Remoting::GetWindowLayoutArgs>::operator()+0xb9 [D:\dev\private\OpenConsole\src\cascadia\Remoting\Generated Files\winrt\Windows.Foundation.h @ 2525] 
16 00000052`27efe150 00007ffa`55230d55     Microsoft_Terminal_Remoting!winrt::impl::invoke<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Microsoft::Terminal::Remoting::GetWindowLayoutArgs>,std::nullptr_t,winrt::Microsoft::Terminal::Remoting::implementation::GetWindowLayoutArgs>+0x87 [D:\dev\private\OpenConsole\src\cascadia\Remoting\Generated Files\winrt\base.h @ 5762] 
17 00000052`27efe1d0 00007ffa`5522fe40     Microsoft_Terminal_Remoting!winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Microsoft::Terminal::Remoting::GetWindowLayoutArgs> >::operator()<std::nullptr_t,winrt::Microsoft::Terminal::Remoting::implementation::GetWindowLayoutArgs>+0x115 [D:\dev\private\OpenConsole\src\cascadia\Remoting\Generated Files\winrt\base.h @ 5897] 
18 00000052`27efe270 00007ffa`5523ebe4     Microsoft_Terminal_Remoting!winrt::Microsoft::Terminal::Remoting::implementation::Peasant::GetWindowLayout+0xb0 [D:\dev\private\OpenConsole\src\cascadia\Remoting\Peasant.cpp @ 304] 
19 00000052`27efe340 00007ffa`e0ef2763     Microsoft_Terminal_Remoting!winrt::impl::produce<winrt::Microsoft::Terminal::Remoting::implementation::Peasant,winrt::Microsoft::Terminal::Remoting::IPeasant>::GetWindowLayout+0x94 [D:\dev\private\OpenConsole\src\cascadia\Remoting\Generated Files\winrt\Microsoft.Terminal.Remoting.h @ 1247] 
1a 00000052`27efe3d0 00007ffa`e0ed597f     RPCRT4!NdrSendReceive+0x343
1b 00000052`27efe420 00007ffa`e0799451     RPCRT4!NdrStubCall2+0x77f
1c 00000052`27efea60 00007ffa`e06f4951     combase!CStdStubBuffer_Invoke+0xe1
1d 00000052`27efeaa0 00007ffa`e070fe2d     combase!CStdStubBuffer_Connect+0x1031
1e 00000052`27efead0 00007ffa`e070fb46     combase!Ordinal87+0x205d
1f 00000052`27efeb30 00007ffa`e07a0e58     combase!Ordinal87+0x1d76
20 00000052`27efec80 00007ffa`e0717aaf     combase!HSTRING_UserUnmarshal64+0xc88
21 00000052`27efecc0 00007ffa`e07ec254     combase!DcomChannelSetHResult+0x40f
22 00000052`27efeda0 00007ffa`e07eb15e     combase!Ordinal65+0xbf74
23 00000052`27efef60 00007ffa`e07e77af     combase!Ordinal65+0xae7e
24 00000052`27efef90 00007ffa`e071c691     combase!Ordinal65+0x74cf
25 00000052`27eff210 00007ffa`e0e88982     combase!DllGetClassObject+0x44a1
26 00000052`27eff300 00007ffa`e0eab05f     RPCRT4!RpcExceptionFilter+0x42
27 00000052`27eff350 00007ffa`e0eaac8c     RPCRT4!UuidToStringW+0xf3f
28 00000052`27eff430 00007ffa`e0eb8a25     RPCRT4!UuidToStringW+0xb6c
29 00000052`27eff4e0 00007ffa`e0eb8057     RPCRT4!TowerConstruct+0x6c65
2a 00000052`27eff5b0 00007ffa`e0eb76ec     RPCRT4!TowerConstruct+0x6297
2b 00000052`27eff6b0 00007ffa`e0eb73c1     RPCRT4!TowerConstruct+0x592c
2c 00000052`27eff730 00007ffa`e0eb6fef     RPCRT4!TowerConstruct+0x5601
2d 00000052`27eff7d0 00007ffa`e0ebcf99     RPCRT4!TowerConstruct+0x522f
2e 00000052`27eff910 00007ffa`e16200a0     RPCRT4!RpcImpersonateClient2+0x379
2f 00000052`27eff9a0 00007ffa`e163feec     ntdll!TppAlpcpExecuteCallback+0x280 [minkernel\threadpool\ntdll\lpc.c @ 426] 
30 00000052`27effa20 00007ffa`e15e7fd6     ntdll!TppDirectExecuteCallback+0xdc [minkernel\threadpool\ntdll\pool.c @ 3820] 
31 00000052`27effa80 00007ffa`e0b41350     ntdll!TppWorkerThread+0x686 [minkernel\threadpool\ntdll\worker.c @ 1109] 
32 00000052`27effd70 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
33 00000052`27effda0 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

   5  Id: 5514c.aca18 Suspend: 1 Teb: 00000052`279d1000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`27fff558 00007ffa`df0cf0e0     ntdll!ZwWaitForMultipleObjects+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 947] 
01 00000052`27fff560 00007ffa`e07b3588     KERNELBASE!WaitForMultipleObjectsEx+0xf0 [minkernel\kernelbase\synch.c @ 1551] 
02 00000052`27fff850 00007ffa`e07b33fa     combase!Ordinal177+0x5b8
03 00000052`27fffae0 00007ffa`e07b31fc     combase!Ordinal177+0x42a
04 00000052`27fffb30 00007ffa`e07b3179     combase!Ordinal177+0x22c
05 00000052`27fffba0 00007ffa`e0b41350     combase!Ordinal177+0x1a9
06 00000052`27fffbd0 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
07 00000052`27fffc00 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

   6  Id: 5514c.1d7a8 Suspend: 1 Teb: 00000052`279d3000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`280ffb58 00007ffa`e15e7c2f     ntdll!ZwWaitForWorkViaWorkerFactory+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 4075] 
01 00000052`280ffb60 00007ffa`e0b41350     ntdll!TppWorkerThread+0x2df [minkernel\threadpool\ntdll\worker.c @ 910] 
02 00000052`280ffe50 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
03 00000052`280ffe80 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

   7  Id: 5514c.ab8f4 Suspend: 1 Teb: 00000052`27808000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`281ff638 00007ffa`e0fc67a1     win32u!ZwUserMsgWaitForMultipleObjectsEx+0x14 [onecoreuap\windows\core\umode\moderncore\objfre\amd64\usrstubs.asm @ 9909] 
01 (Inline Function) --------`--------     shcore!WorkThreadManager::CThread::WaitForThreadUpdate+0x36 [onecore\shell\shcore\libs\comtaskpool\taskpoolprivate.cpp @ 898] 
02 (Inline Function) --------`--------     shcore!WorkThreadManager::CThread::WaitForWork+0x65 [onecore\shell\shcore\libs\comtaskpool\taskpoolprivate.cpp @ 929] 
03 00000052`281ff640 00007ffa`e0fc5b26     shcore!WorkThreadManager::CThread::ThreadProc+0xc41 [onecore\shell\shcore\libs\comtaskpool\taskpoolprivate.cpp @ 1011] 
04 00000052`281ff8d0 00007ffa`e0fc4431     shcore!WorkThreadManager::CThread::s_ExecuteThreadProc+0x22 [onecore\shell\shcore\libs\comtaskpool\taskpoolprivate.cpp @ 854] 
05 (Inline Function) --------`--------     shcore!WorkThreadManager::CThread::StartThread::__l2::<lambda_9844335fc14345151eefcc3593dd6895>::operator()+0xd [onecore\shell\shcore\libs\comtaskpool\taskpoolprivate.cpp @ 718] 
06 00000052`281ff900 00007ffa`e0b41350     shcore!<lambda_9844335fc14345151eefcc3593dd6895>::<lambda_invoker_cdecl>+0x11 [onecore\shell\shcore\libs\comtaskpool\taskpoolprivate.cpp @ 721] 
07 00000052`281ff930 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
08 00000052`281ff960 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

   8  Id: 5514c.852ac Suspend: 1 Teb: 00000052`279d9000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`283ff438 00007ffa`df0cf0e0     ntdll!ZwWaitForMultipleObjects+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 947] 
01 00000052`283ff440 00007ffa`ae963b5a     KERNELBASE!WaitForMultipleObjectsEx+0xf0 [minkernel\kernelbase\synch.c @ 1551] 
02 00000052`283ff730 00007ffa`ae8bec71     Windows_UI_Xaml!DllGetActivationFactory+0x54faa
03 00000052`283ff820 00007ffa`ae8bde11     Windows_UI_Xaml!GetErrorContextIndex+0x13a1e1
04 00000052`283ff8e0 00007ffa`e0b41350     Windows_UI_Xaml!GetErrorContextIndex+0x139381
05 00000052`283ff910 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
06 00000052`283ff940 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

#  9  Id: 5514c.76c0 Suspend: 1 Teb: 00000052`2780a000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`284ffdc8 00007ffa`e1697c2e     ntdll!DbgBreakPoint [minkernel\ntos\rtl\amd64\debugstb.asm @ 61] 
01 00000052`284ffdd0 00007ffa`e0b41350     ntdll!DbgUiRemoteBreakin+0x4e [minkernel\ntdll\dlluistb.c @ 324] 
02 00000052`284ffe00 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
03 00000052`284ffe30 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

  10  Id: 5514c.ec88 Suspend: 1 Teb: 00000052`279dd000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`285ff648 00007ffa`df0cf0e0     ntdll!ZwWaitForMultipleObjects+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 947] 
01 00000052`285ff650 00007ffa`e07b6b35     KERNELBASE!WaitForMultipleObjectsEx+0xf0 [minkernel\kernelbase\synch.c @ 1551] 
02 00000052`285ff940 00007ffa`e0713e50     combase!Ordinal178+0x9d5
03 00000052`285ff9a0 00007ffa`c57240d2     combase!CoWaitForMultipleHandles+0x80
04 00000052`285ff9e0 00007ffa`e0b41350     MrmCoreR+0x40d2
05 00000052`285ffbe0 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
06 00000052`285ffc10 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

  11  Id: 5514c.bcc60 Suspend: 1 Teb: 00000052`279e1000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`2860fc28 00007ffa`df0a4e7e     ntdll!ZwWaitForSingleObject+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 251] 
01 00000052`2860fc30 00007ffa`d5c112e3     KERNELBASE!WaitForSingleObjectEx+0x8e [minkernel\kernelbase\synch.c @ 1328] 
02 00000052`2860fcd0 00007ffa`d69b69c0     nvwgf2umx_cfg!NVDEV_Thunk+0x293db3
03 00000052`2860fd20 00007ffa`e0b41350     nvwgf2umx_cfg!OpenAdapter12+0x5baae0
04 00000052`2860fd50 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
05 00000052`2860fd80 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

  12  Id: 5514c.ade8 Suspend: 1 Teb: 00000052`279e3000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`2861f7a8 00007ffa`df0a4e7e     ntdll!ZwWaitForSingleObject+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 251] 
01 00000052`2861f7b0 00007ffa`d5c112e3     KERNELBASE!WaitForSingleObjectEx+0x8e [minkernel\kernelbase\synch.c @ 1328] 
02 00000052`2861f850 00007ffa`d69b69c0     nvwgf2umx_cfg!NVDEV_Thunk+0x293db3
03 00000052`2861f8a0 00007ffa`e0b41350     nvwgf2umx_cfg!OpenAdapter12+0x5baae0
04 00000052`2861f8d0 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
05 00000052`2861f900 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

  13  Id: 5514c.701bc Suspend: 1 Teb: 00000052`279e5000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`2862fcc8 00007ffa`df0a4e7e     ntdll!ZwWaitForSingleObject+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 251] 
01 00000052`2862fcd0 00007ffa`d5c112e3     KERNELBASE!WaitForSingleObjectEx+0x8e [minkernel\kernelbase\synch.c @ 1328] 
02 00000052`2862fd70 00007ffa`d69b69c0     nvwgf2umx_cfg!NVDEV_Thunk+0x293db3
03 00000052`2862fdc0 00007ffa`e0b41350     nvwgf2umx_cfg!OpenAdapter12+0x5baae0
04 00000052`2862fdf0 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
05 00000052`2862fe20 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

  14  Id: 5514c.44260 Suspend: 1 Teb: 00000052`279e7000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`2863fa88 00007ffa`df0a4e7e     ntdll!ZwWaitForSingleObject+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 251] 
01 00000052`2863fa90 00007ffa`d5c112e3     KERNELBASE!WaitForSingleObjectEx+0x8e [minkernel\kernelbase\synch.c @ 1328] 
02 00000052`2863fb30 00007ffa`d69b69c0     nvwgf2umx_cfg!NVDEV_Thunk+0x293db3
03 00000052`2863fb80 00007ffa`e0b41350     nvwgf2umx_cfg!OpenAdapter12+0x5baae0
04 00000052`2863fbb0 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
05 00000052`2863fbe0 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

  15  Id: 5514c.4c2c0 Suspend: 1 Teb: 00000052`279e9000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`2864f678 00007ffa`df0a4e7e     ntdll!ZwWaitForSingleObject+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 251] 
01 00000052`2864f680 00007ffa`d5c112e3     KERNELBASE!WaitForSingleObjectEx+0x8e [minkernel\kernelbase\synch.c @ 1328] 
02 00000052`2864f720 00007ffa`d69b69c0     nvwgf2umx_cfg!NVDEV_Thunk+0x293db3
03 00000052`2864f770 00007ffa`e0b41350     nvwgf2umx_cfg!OpenAdapter12+0x5baae0
04 00000052`2864f7a0 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
05 00000052`2864f7d0 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

  16  Id: 5514c.7d868 Suspend: 1 Teb: 00000052`279eb000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`2865fb98 00007ffa`df0a4e7e     ntdll!ZwWaitForSingleObject+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 251] 
01 00000052`2865fba0 00007ffa`d5c112e3     KERNELBASE!WaitForSingleObjectEx+0x8e [minkernel\kernelbase\synch.c @ 1328] 
02 00000052`2865fc40 00007ffa`d69b69c0     nvwgf2umx_cfg!NVDEV_Thunk+0x293db3
03 00000052`2865fc90 00007ffa`e0b41350     nvwgf2umx_cfg!OpenAdapter12+0x5baae0
04 00000052`2865fcc0 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
05 00000052`2865fcf0 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

  17  Id: 5514c.5b7d8 Suspend: 1 Teb: 00000052`279ed000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`2866f798 00007ffa`df0a4e7e     ntdll!ZwWaitForSingleObject+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 251] 
01 00000052`2866f7a0 00007ffa`d5c112e3     KERNELBASE!WaitForSingleObjectEx+0x8e [minkernel\kernelbase\synch.c @ 1328] 
02 00000052`2866f840 00007ffa`d69b69c0     nvwgf2umx_cfg!NVDEV_Thunk+0x293db3
03 00000052`2866f890 00007ffa`e0b41350     nvwgf2umx_cfg!OpenAdapter12+0x5baae0
04 00000052`2866f8c0 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
05 00000052`2866f8f0 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

  18  Id: 5514c.4a608 Suspend: 1 Teb: 00000052`279ef000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`2867f808 00007ffa`df0a4e7e     ntdll!ZwWaitForSingleObject+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 251] 
01 00000052`2867f810 00007ffa`d5c112e3     KERNELBASE!WaitForSingleObjectEx+0x8e [minkernel\kernelbase\synch.c @ 1328] 
02 00000052`2867f8b0 00007ffa`d69b69c0     nvwgf2umx_cfg!NVDEV_Thunk+0x293db3
03 00000052`2867f900 00007ffa`e0b41350     nvwgf2umx_cfg!OpenAdapter12+0x5baae0
04 00000052`2867f930 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
05 00000052`2867f960 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

  19  Id: 5514c.1791c Suspend: 1 Teb: 00000052`279f1000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`2877f688 00007ffa`df0a4e7e     ntdll!ZwWaitForSingleObject+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 251] 
01 00000052`2877f690 00007ffa`d5aebe0f     KERNELBASE!WaitForSingleObjectEx+0x8e [minkernel\kernelbase\synch.c @ 1328] 
02 00000052`2877f730 00007ffa`d69b69c0     nvwgf2umx_cfg!NVDEV_Thunk+0x16e8df
03 00000052`2877f880 00007ffa`e0b41350     nvwgf2umx_cfg!OpenAdapter12+0x5baae0
04 00000052`2877f8b0 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
05 00000052`2877f8e0 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

  20  Id: 5514c.82fe8 Suspend: 1 Teb: 00000052`279f3000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`282ff3a8 00007ffa`df0cf0e0     ntdll!ZwWaitForMultipleObjects+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 947] 
01 00000052`282ff3b0 00007ffa`df0cefde     KERNELBASE!WaitForMultipleObjectsEx+0xf0 [minkernel\kernelbase\synch.c @ 1551] 
02 00000052`282ff6a0 00007ffa`55260fac     KERNELBASE!WaitForMultipleObjects+0xe [minkernel\kernelbase\synch.c @ 1403] 
03 00000052`282ff6e0 00007ffa`552614f3     Microsoft_Terminal_Remoting!winrt::Microsoft::Terminal::Remoting::implementation::WindowManager::_waitOnMonarchThread+0x26c [D:\dev\private\OpenConsole\src\cascadia\Remoting\WindowManager.cpp @ 421] 
04 00000052`282ff8d0 00007ffa`552689e0     Microsoft_Terminal_Remoting!`winrt::Microsoft::Terminal::Remoting::implementation::WindowManager::_createPeasantThread'::`2'::<lambda_1>::operator()+0x23 [D:\dev\private\OpenConsole\src\cascadia\Remoting\WindowManager.cpp @ 374] 
05 00000052`282ff900 00007ffa`55267142     Microsoft_Terminal_Remoting!std::invoke<`winrt::Microsoft::Terminal::Remoting::implementation::WindowManager::_createPeasantThread'::`2'::<lambda_1> >+0x20 [C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.31.30818\include\type_traits @ 1481] 
06 00000052`282ff930 00007ffa`56d02d20     Microsoft_Terminal_Remoting!std::thread::_Invoke<std::tuple<`winrt::Microsoft::Terminal::Remoting::implementation::WindowManager::_createPeasantThread'::`2'::<lambda_1> >,0>+0x82 [C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.31.30818\include\thread @ 56] 
07 00000052`282ff9a0 00007ffa`e0b41350     ucrtbased!thread_start<unsigned int (__cdecl*)(void *),1>+0xb0 [minkernel\crts\ucrt\src\appcrt\startup\thread.cpp @ 97] 
08 00000052`282ffa00 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
09 00000052`282ffa30 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

  21  Id: 5514c.9eec0 Suspend: 1 Teb: 00000052`279f5000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`2887f7d8 00007ffa`e13f781e     win32u!ZwUserGetMessage+0x14 [onecoreuap\windows\core\umode\moderncore\objfre\amd64\usrstubs.asm @ 189] 
01 00000052`2887f7e0 00007ffa`e07a9ecc     user32!GetMessageW+0x2e
02 00000052`2887f840 00007ffa`e07a9e06     combase!CoFreeUnusedLibrariesEx+0x47c
03 00000052`2887f8c0 00007ffa`e07b31fc     combase!CoFreeUnusedLibrariesEx+0x3b6
04 00000052`2887f900 00007ffa`e07b3179     combase!Ordinal177+0x22c
05 00000052`2887f970 00007ffa`e0b41350     combase!Ordinal177+0x1a9
06 00000052`2887f9a0 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
07 00000052`2887f9d0 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

  22  Id: 5514c.b27d4 Suspend: 1 Teb: 00000052`279f7000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`2897fc08 00007ffa`e15e7c2f     ntdll!ZwWaitForWorkViaWorkerFactory+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 4075] 
01 00000052`2897fc10 00007ffa`e0b41350     ntdll!TppWorkerThread+0x2df [minkernel\threadpool\ntdll\worker.c @ 910] 
02 00000052`2897ff00 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
03 00000052`2897ff30 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

  23  Id: 5514c.6cb4c Suspend: 1 Teb: 00000052`279f9000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`28a7fa88 00007ffa`e15e7c2f     ntdll!ZwWaitForWorkViaWorkerFactory+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 4075] 
01 00000052`28a7fa90 00007ffa`e0b41350     ntdll!TppWorkerThread+0x2df [minkernel\threadpool\ntdll\worker.c @ 910] 
02 00000052`28a7fd80 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
03 00000052`28a7fdb0 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

  26  Id: 5514c.79fbc Suspend: 1 Teb: 00000052`27800000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`28d7fae8 00007ffa`e15e7c2f     ntdll!ZwWaitForWorkViaWorkerFactory+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 4075] 
01 00000052`28d7faf0 00007ffa`e0b41350     ntdll!TppWorkerThread+0x2df [minkernel\threadpool\ntdll\worker.c @ 910] 
02 00000052`28d7fde0 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
03 00000052`28d7fe10 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

  27  Id: 5514c.70b28 Suspend: 1 Teb: 00000052`27802000 Unfrozen "DManip Delegate Thread"
 # Child-SP          RetAddr               Call Site
00 00000052`28e7faa8 00007ffa`ace5e01d     win32u!ZwUserMsgWaitForMultipleObjectsEx+0x14 [onecoreuap\windows\core\umode\moderncore\objfre\amd64\usrstubs.asm @ 9909] 
01 00000052`28e7fab0 00007ffa`ace5de46     directmanipulation!DllGetClassObject+0x2d0d
02 00000052`28e7fb80 00007ffa`e0b41350     directmanipulation!DllGetClassObject+0x2b36
03 00000052`28e7fbc0 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
04 00000052`28e7fbf0 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

  28  Id: 5514c.bfde8 Suspend: 1 Teb: 00000052`27806000 Unfrozen
 # Child-SP          RetAddr               Call Site
00 00000052`2907f6e8 00007ffa`e15e7c2f     ntdll!ZwWaitForWorkViaWorkerFactory+0x14 [minkernel\ntdll\daytona\objfre\amd64\usrstubs.asm @ 4075] 
01 00000052`2907f6f0 00007ffa`e0b41350     ntdll!TppWorkerThread+0x2df [minkernel\threadpool\ntdll\worker.c @ 910] 
02 00000052`2907f9e0 00007ffa`e1611e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
03 00000052`2907fa10 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 
windbg> .open -a 7ff7962b0bef
0:000> dx Debugger.Sessions[0].Processes[348492].Threads[275960].Stack.Frames[12].SwitchTo();dv /t /v
Debugger.Sessions[0].Processes[348492].Threads[275960].Stack.Frames[12].SwitchTo()
00000052`27efdb80 <CLR type> __coro_heap_ellision = <unknown base type 80000013>
000001cb`cd16f170 void * __coro_frame_ptr = 0x00007ff7`962b0670
00000052`27efdb90 struct winrt::Windows::Foundation::IAsyncOperation<winrt::hstring> * __$ReturnUdt = 0x00000052`27efde30
00000052`27efdb98 class AppHost * this = 0x00000052`27aff570
0:004> dv /t /v
000001cb`cd16f180 struct winrt::apartment_context peasant_thread = struct winrt::apartment_context
000001cb`cd16f190 struct winrt::hstring layoutJson = struct winrt::hstring
000001cb`cd16f170 void * __coro_frame_ptr = 0x00007ff7`962b0670
0:004> dx -r1 ((WindowsTerminal!AppHost *)0x5227aff570)
((WindowsTerminal!AppHost *)0x5227aff570)                 : 0x5227aff570 [Type: AppHost *]
    [+0x008] _window          : unique_ptr {...} [Type: std::unique_ptr<IslandWindow,std::default_delete<IslandWindow> >]
    [+0x010] _app             [Type: winrt::TerminalApp::App]
    [+0x018] _logic           [Type: winrt::TerminalApp::AppLogic]
    [+0x020] _windowManager   [Type: winrt::Microsoft::Terminal::Remoting::WindowManager]
    [+0x028] _hotkeys         : { size=0 } [Type: std::vector<winrt::Microsoft::Terminal::Settings::Model::GlobalSummonArgs,std::allocator<winrt::Microsoft::Terminal::Settings::Model::GlobalSummonArgs> >]
    [+0x048] _desktopManager  [Type: winrt::com_ptr<IVirtualDesktopManager>]
    [+0x050] _shouldCreateWindow : true [Type: bool]
    [+0x051] _useNonClientArea : true [Type: bool]
    [+0x058] _getWindowLayoutThrottler : nullopt [Type: std::optional<til::throttled_func<0> >]
    [+0x0b8] _notificationIcon : empty [Type: std::unique_ptr<NotificationIcon,std::default_delete<NotificationIcon> >]
    [+0x0c0] _ReAddNotificationIconToken [Type: winrt::event_token]
    [+0x0c8] _NotificationIconPressedToken [Type: winrt::event_token]
    [+0x0d0] _ShowNotificationIconContextMenuToken [Type: winrt::event_token]
    [+0x0d8] _NotificationIconMenuItemSelectedToken [Type: winrt::event_token]
    [+0x0e0] _GetWindowLayoutRequestedToken [Type: winrt::event_token]
    [+0x0e8] _WindowCreatedToken [Type: winrt::event_token]
    [+0x0f0] _WindowClosedToken [Type: winrt::event_token]
0:004> dx -r1 (*((WindowsTerminal!winrt::TerminalApp::AppLogic *)0x5227aff588))
(*((WindowsTerminal!winrt::TerminalApp::AppLogic *)0x5227aff588))                 [Type: winrt::TerminalApp::AppLogic]
    [+0x000] m_ptr            : 0x1cbc0948638 [Type: winrt::impl::abi<winrt::Windows::Foundation::IUnknown,void>::type *]
0:004> dx -r1 (*((WindowsTerminal!winrt::apartment_context *)0x1cbcd16f180))
(*((WindowsTerminal!winrt::apartment_context *)0x1cbcd16f180))                 [Type: winrt::apartment_context]
    [+0x000] context          [Type: winrt::impl::resume_apartment_context]
0:004> dx -r1 (*((WindowsTerminal!winrt::impl::resume_apartment_context *)0x1cbcd16f180))
(*((WindowsTerminal!winrt::impl::resume_apartment_context *)0x1cbcd16f180))                 [Type: winrt::impl::resume_apartment_context]
    [+0x000] m_context        [Type: winrt::com_ptr<winrt::impl::IContextCallback>]
    [+0x008] m_context_type   : 2 [Type: int]
0:004> dx -r1 (*((WindowsTerminal!winrt::com_ptr<winrt::impl::IContextCallback> *)0x1cbcd16f180))
(*((WindowsTerminal!winrt::com_ptr<winrt::impl::IContextCallback> *)0x1cbcd16f180))                 [Type: winrt::com_ptr<winrt::impl::IContextCallback>]
    [+0x000] m_ptr            : 0x1cbbec1f4c0 [Type: winrt::impl::IContextCallback *]
0:004> dx -r1 ((WindowsTerminal!winrt::impl::IContextCallback *)0x1cbbec1f4c0)
((WindowsTerminal!winrt::impl::IContextCallback *)0x1cbbec1f4c0)                 : 0x1cbbec1f4c0 [Type: winrt::impl::IContextCallback *]
0:004> dx -r1 (*((WindowsTerminal!winrt::TerminalApp::AppLogic *)0x5227aff588))
(*((WindowsTerminal!winrt::TerminalApp::AppLogic *)0x5227aff588))                 [Type: winrt::TerminalApp::AppLogic]
    [+0x000] m_ptr            : 0x1cbc0948638 [Type: winrt::impl::abi<winrt::Windows::Foundation::IUnknown,void>::type *]
0:004> dx -r1 (*((WindowsTerminal!winrt::TerminalApp::AppLogic *)0x5227aff588)).m_ptr
(*((WindowsTerminal!winrt::TerminalApp::AppLogic *)0x5227aff588)).m_ptr                 : 0x1cbc0948638 [Type: winrt::impl::produce<winrt::TerminalApp::implementation::AppLogic,winrt::TerminalApp::IAppLogic> * (derived from winrt::impl::abi<winrt::Windows::Foundation::IUnknown,void>::type *)]
0:004> dx -r1 (*((WindowsTerminal!winrt::TerminalApp::implementation::AppLogic *)0x1cbc0948638))
Error: Unable to find type 'winrt::TerminalApp::implementation::AppLogic *' for cast.
0:004> dx -r1 (*((TermianlApp!winrt::TerminalApp::implementation::AppLogic *)0x1cbc0948638))
Error: Unable to find module 'TermianlApp' for qualified type lookup.
0:004> dx -r1 (*((TerminalApp!winrt::TerminalApp::implementation::AppLogic *)0x1cbc0948638))
(*((TerminalApp!winrt::TerminalApp::implementation::AppLogic *)0x1cbc0948638))                 [Type: winrt::TerminalApp::implementation::AppLogic]
    [+0x008] vtable           [Type: winrt::impl::produce<winrt::TerminalApp::implementation::AppLogic,winrt::TerminalApp::IAppLogic>]
    [+0x010] vtable           [Type: winrt::impl::produce<winrt::TerminalApp::implementation::AppLogic,winrt::TerminalApp::IDirectKeyListener>]
    [+0x018] vtable           [Type: winrt::impl::produce<winrt::TerminalApp::implementation::AppLogic,winrt::TerminalApp::IDialogPresenter>]
    is_composing     : false [Type: bool]
    [=0x7ffa3599cf88] m_inner          : 0x0 [Type: winrt::impl::abi<winrt::Windows::Foundation::IInspectable,void>::type *]
    [+0x028] m_references     : 0x1cbc8932f80 [Type: std::atomic<unsigned __int64>]
    [+0x030] _RequestedThemeChangedHandlers [Type: winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,enum winrt::Windows::UI::Xaml::ElementTheme> >]
    [+0x048] _SettingsChangedHandlers [Type: winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Windows::Foundation::IInspectable> >]
    [+0x060] _SystemMenuChangeRequestedHandlers [Type: winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::TerminalApp::SystemMenuChangeArgs> >]
    [+0x078] _isUwp           : true [Type: bool]
    [+0x079] _isElevated      : true [Type: bool]
    [+0x080] _root            [Type: winrt::com_ptr<winrt::TerminalApp::implementation::TerminalPage>]
    [+0x088] _settings        [Type: winrt::Microsoft::Terminal::Settings::Model::CascadiaSettings]
    [+0x090] _settingsLoadExceptionText [Type: winrt::hstring]
    [+0x098] _settingsLoadedResult : 0x00000000 (The operation completed successfully.) [Type: HRESULT]
    [+0x09c] _loadedInitialSettings : false [Type: bool]
    [+0x0a0] _numOpenWindows  : 0x0 [Type: unsigned __int64]
    [+0x0a8] _dialogLock      [Type: std::shared_mutex]
    [+0x0b0] _dialog          [Type: winrt::Windows::UI::Xaml::Controls::ContentDialog]
    [+0x0b8] _appArgs         [Type: TerminalApp::AppCommandlineArgs]
    [+0x780] _settingsAppArgs [Type: TerminalApp::AppCommandlineArgs]
    [+0xe48] _reloadSettings  : {...} [Type: std::shared_ptr<ThrottledFunc<0> >]
    [+0xe58] _reloadState     [Type: til::throttled_func<0>]
    [+0xeb0] _languageProfileNotifier [Type: winrt::com_ptr<winrt::TerminalApp::implementation::LanguageProfileNotifier>]
    [+0xeb8] _reader          [Type: wil::unique_any_t<wil::folder_change_reader_t<wil::details::unique_storage<wil::details::resource_policy<wil::details::folder_change_reader_state *,void (__cdecl*)(wil::details::folder_change_reader_state *),&wil::details::delete_folder_change_reader_state,wistd::integral_constant<unsigned __int64,2>,wil::details::folder_change_reader_state *,wil::details::folder_change_reader_state *,0,std::nullptr_t> >,wil::err_returncode_policy> >]
    [+0xec0] _hasCommandLineArguments : true [Type: bool]
    [+0xec1] _hasSettingsStartupActions : true [Type: bool]
    [+0xec8] _warnings        : { size=0 } [Type: std::vector<enum winrt::Microsoft::Terminal::Settings::Model::SettingsLoadWarnings,std::allocator<enum winrt::Microsoft::Terminal::Settings::Model::SettingsLoadWarnings> >]
0:004> dx -r1 (*((TerminalApp!winrt::com_ptr<winrt::TerminalApp::implementation::TerminalPage> *)0x1cbc09486b8))
(*((TerminalApp!winrt::com_ptr<winrt::TerminalApp::implementation::TerminalPage> *)0x1cbc09486b8))                 [Type: winrt::com_ptr<winrt::TerminalApp::implementation::TerminalPage>]
*** WARNING: Unable to verify checksum for D:\dev\private\OpenConsole\src\cascadia\CascadiaPackage\bin\x64\Debug\AppX\Microsoft.Terminal.Settings.Model.dll
    [+0x000] m_ptr            : 0x1cbc8907290 [Type: winrt::TerminalApp::implementation::TerminalPage *]
0:004> dx -r1 ((TerminalApp!winrt::TerminalApp::implementation::TerminalPage *)0x1cbc8907290)
((TerminalApp!winrt::TerminalApp::implementation::TerminalPage *)0x1cbc8907290)                 : 0x1cbc8907290 [Type: winrt::TerminalApp::implementation::TerminalPage *]
    [+0x018] vtable           [Type: winrt::impl::produce<winrt::TerminalApp::implementation::TerminalPage,winrt::TerminalApp::ITerminalPage>]
    [+0x020] vtable           [Type: winrt::impl::produce<winrt::TerminalApp::implementation::TerminalPage,winrt::Windows::UI::Xaml::Data::INotifyPropertyChanged>]
    [+0x028] vtable           [Type: winrt::impl::produce<winrt::TerminalApp::implementation::TerminalPage,winrt::Windows::UI::Xaml::Controls::IPageOverrides>]
    [+0x030] vtable           [Type: winrt::impl::produce<winrt::TerminalApp::implementation::TerminalPage,winrt::Windows::UI::Xaml::Controls::IControlOverrides>]
    [+0x038] vtable           [Type: winrt::impl::produce<winrt::TerminalApp::implementation::TerminalPage,winrt::Windows::UI::Xaml::Controls::IControlOverrides6>]
    [+0x040] vtable           [Type: winrt::impl::produce<winrt::TerminalApp::implementation::TerminalPage,winrt::Windows::UI::Xaml::IFrameworkElementOverrides>]
    [+0x048] vtable           [Type: winrt::impl::produce<winrt::TerminalApp::implementation::TerminalPage,winrt::Windows::UI::Xaml::IFrameworkElementOverrides2>]
    [+0x050] vtable           [Type: winrt::impl::produce<winrt::TerminalApp::implementation::TerminalPage,winrt::Windows::UI::Xaml::IUIElementOverrides>]
    [+0x058] vtable           [Type: winrt::impl::produce<winrt::TerminalApp::implementation::TerminalPage,winrt::Windows::UI::Xaml::IUIElementOverrides7>]
    [+0x060] vtable           [Type: winrt::impl::produce<winrt::TerminalApp::implementation::TerminalPage,winrt::Windows::UI::Xaml::IUIElementOverrides8>]
    [+0x068] vtable           [Type: winrt::impl::produce<winrt::TerminalApp::implementation::TerminalPage,winrt::Windows::UI::Xaml::IUIElementOverrides9>]
    [+0x070] vtable           [Type: winrt::impl::produce<winrt::TerminalApp::implementation::TerminalPage,winrt::Windows::UI::Xaml::Markup::IComponentConnector>]
    [+0x078] vtable           [Type: winrt::impl::produce<winrt::TerminalApp::implementation::TerminalPage,winrt::Windows::UI::Xaml::Markup::IComponentConnector2>]
    is_composing     : true [Type: bool]
    [+0x008] m_inner          [Type: winrt::Windows::Foundation::IInspectable]
    [+0x010] m_references     : 0x1cbc88fe580 [Type: std::atomic<unsigned __int64>]
    [+0x080] Bindings         [Type: winrt::com_ptr<winrt::TerminalApp::implementation::XamlBindings>]
    [+0x088] _contentLoaded   : true [Type: bool]
    [+0x090] _Root            [Type: winrt::Windows::UI::Xaml::Controls::Grid]
    [+0x098] _TabRow          [Type: winrt::TerminalApp::TabRowControl]
    [+0x0a0] _TabContent      [Type: winrt::Windows::UI::Xaml::Controls::Grid]
    [+0x0a8] _AboutDialog     [Type: winrt::Windows::UI::Xaml::Controls::ContentDialog]
    [+0x0b0] _QuitDialog      [Type: winrt::Windows::UI::Xaml::Controls::ContentDialog]
    [+0x0b8] _CloseAllDialog  [Type: winrt::Windows::UI::Xaml::Controls::ContentDialog]
    [+0x0c0] _CloseReadOnlyDialog [Type: winrt::Windows::UI::Xaml::Controls::ContentDialog]
    [+0x0c8] _MultiLinePasteDialog [Type: winrt::Windows::UI::Xaml::Controls::ContentDialog]
    [+0x0d0] _LargePasteDialog [Type: winrt::Windows::UI::Xaml::Controls::ContentDialog]
    [+0x0d8] _ControlNoticeDialog [Type: winrt::Windows::UI::Xaml::Controls::ContentDialog]
    [+0x0e0] _CouldNotOpenUriDialog [Type: winrt::Windows::UI::Xaml::Controls::ContentDialog]
    [+0x0e8] _CommandPalette  [Type: winrt::TerminalApp::CommandPalette]
    [+0x0f0] _WindowIdToast   [Type: winrt::Microsoft::UI::Xaml::Controls::TeachingTip]
    [+0x0f8] _RenameFailedToast [Type: winrt::Microsoft::UI::Xaml::Controls::TeachingTip]
    [+0x100] _WindowRenamer   [Type: winrt::Microsoft::UI::Xaml::Controls::TeachingTip]
    [+0x108] _WindowRenamerTextBox [Type: winrt::Windows::UI::Xaml::Controls::TextBox]
    [+0x110] _CouldNotOpenUriReason [Type: winrt::Windows::UI::Xaml::Documents::Run]
    [+0x118] _UnopenedUri     [Type: winrt::Windows::UI::Xaml::Documents::Run]
    [+0x120] _NoticeMessage   [Type: winrt::Windows::UI::Xaml::Documents::Run]
    [+0x128] _ClipboardContentScrollViewer [Type: winrt::Windows::UI::Xaml::Controls::ScrollViewer]
    [+0x130] _ClipboardText   [Type: winrt::Windows::UI::Xaml::Controls::TextBlock]
    [+0x138] _KeyboardServiceWarningInfoBar [Type: winrt::Microsoft::UI::Xaml::Controls::InfoBar]
    [+0x140] _CloseOnExitInfoBar [Type: winrt::Microsoft::UI::Xaml::Controls::InfoBar]
    [+0x148] _SetAsDefaultInfoBar [Type: winrt::Microsoft::UI::Xaml::Controls::InfoBar]
    [+0x150] _PropertyChangedHandlers [Type: winrt::event<winrt::Windows::UI::Xaml::Data::PropertyChangedEventHandler>]
    [+0x168] _TitleChangedHandlers [Type: winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::hstring> >]
    [+0x180] _LastTabClosedHandlers [Type: winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::TerminalApp::LastTabClosedEventArgs> >]
    [+0x198] _SetTitleBarContentHandlers [Type: winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Windows::UI::Xaml::UIElement> >]
    [+0x1b0] _FocusModeChangedHandlers [Type: winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Windows::Foundation::IInspectable> >]
    [+0x1c8] _FullscreenChangedHandlers [Type: winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Windows::Foundation::IInspectable> >]
    [+0x1e0] _ChangeMaximizeRequestedHandlers [Type: winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Windows::Foundation::IInspectable> >]
    [+0x1f8] _AlwaysOnTopChangedHandlers [Type: winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Windows::Foundation::IInspectable> >]
    [+0x210] _RaiseVisualBellHandlers [Type: winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Windows::Foundation::IInspectable> >]
    [+0x228] _SetTaskbarProgressHandlers [Type: winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Windows::Foundation::IInspectable> >]
    [+0x240] _InitializedHandlers [Type: winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Windows::UI::Xaml::RoutedEventArgs> >]
    [+0x258] _IdentifyWindowsRequestedHandlers [Type: winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Windows::Foundation::IInspectable> >]
    [+0x270] _RenameWindowRequestedHandlers [Type: winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::TerminalApp::RenameWindowRequestedArgs> >]
    [+0x288] _IsQuakeWindowChangedHandlers [Type: winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Windows::Foundation::IInspectable> >]
    [+0x2a0] _SummonWindowRequestedHandlers [Type: winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Windows::Foundation::IInspectable> >]
    [+0x2b8] _CloseRequestedHandlers [Type: winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Windows::Foundation::IInspectable> >]
    [+0x2d0] _OpenSystemMenuHandlers [Type: winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Windows::Foundation::IInspectable> >]
    [+0x2e8] _QuitRequestedHandlers [Type: winrt::event<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable,winrt::Windows::Foundation::IInspectable> >]
    [+0x300] _hostingHwnd     : {...} [Type: std::optional<HWND__ *>]
    [+0x310] _tabView         [Type: winrt::Microsoft::UI::Xaml::Controls::TabView]
    [+0x318] _tabRow          [Type: winrt::TerminalApp::TabRowControl]
    [+0x320] _tabContent      [Type: winrt::Windows::UI::Xaml::Controls::Grid]
    [+0x328] _newTabButton    [Type: winrt::Microsoft::UI::Xaml::Controls::SplitButton]
    [+0x330] _settings        [Type: winrt::Microsoft::Terminal::Settings::Model::CascadiaSettings]
    [+0x338] _tabs            [Type: winrt::Windows::Foundation::Collections::IObservableVector<winrt::TerminalApp::TabBase>]
    [+0x340] _mruTabs         [Type: winrt::Windows::Foundation::Collections::IObservableVector<winrt::TerminalApp::TabBase>]
    [+0x348] _settingsTab     [Type: winrt::TerminalApp::SettingsTab]
    [+0x350] _isInFocusMode   : false [Type: bool]
    [+0x351] _isFullscreen    : false [Type: bool]
    [+0x352] _isMaximized     : false [Type: bool]
    [+0x353] _isAlwaysOnTop   : false [Type: bool]
    [+0x358] _WindowName      [Type: winrt::hstring]
    [+0x360] _WindowId        : 0x1cbc88b9890 [Type: unsigned __int64]
    [+0x368] _loadFromPersistedLayoutIdx : nullopt [Type: std::optional<unsigned int>]
    [+0x370] _numOpenWindows  : 0x1cbc88cc300 [Type: unsigned __int64]
    [+0x378] _maintainStateOnTabClose : false [Type: bool]
    [+0x379] _rearranging     : true [Type: bool]
    [+0x37c] _rearrangeFrom   : 524747 [Type: std::optional<int>]
    [+0x384] _rearrangeTo     : 32762 [Type: std::optional<int>]
    [+0x38c] _removing        : true [Type: bool]
    [+0x390] _previouslyClosedPanesAndTabs : { size=576460752303423483 } [Type: std::vector<std::vector<winrt::Microsoft::Terminal::Settings::Model::ActionAndArgs,std::allocator<winrt::Microsoft::Terminal::Settings::Model::ActionAndArgs> >,std::allocator<std::vector<winrt::Microsoft::Terminal::Settings::Model::ActionAndArgs,std::allocator<winrt::Microsoft::Terminal::Settings::Model::ActionAndArgs> > > >]
    [+0x3b0] _systemRowsToScroll : 0xe094fd70 [Type: unsigned int]
    [+0x3b8] _dialogPresenter [Type: winrt::weak_ref<winrt::TerminalApp::IDialogPresenter>]
    [+0x3c0] _bindings        [Type: winrt::com_ptr<winrt::TerminalApp::implementation::AppKeyBindings>]
    [+0x3c8] _actionDispatch  [Type: winrt::com_ptr<winrt::TerminalApp::implementation::ShortcutActionDispatch>]
    [+0x3d0] _layoutUpdatedRevoker [Type: winrt::impl::event_revoker<winrt::Windows::UI::Xaml::IFrameworkElement,&winrt::impl::abi<winrt::Windows::UI::Xaml::IFrameworkElement,void>::type::`vcall'{400}'>]
    [+0x3e0] _startupState    : -930440352 [Type: winrt::TerminalApp::implementation::StartupState]
    [+0x3e8] _startupActions  [Type: winrt::Windows::Foundation::Collections::IVector<winrt::Microsoft::Terminal::Settings::Model::ActionAndArgs>]
    [+0x3f0] _shouldStartInboundListener : false [Type: bool]
    [+0x3f1] _isEmbeddingInboundListener : false [Type: bool]
    [+0x3f8] _windowIdToast   : empty [Type: std::shared_ptr<Toast>]
    [+0x408] _windowRenameFailedToast : nullptr [Type: std::shared_ptr<Toast>]
    [+0x418] _displayingCloseDialog : false [Type: bool]
    [+0x419] _shouldMouseVanish : false [Type: bool]
    [+0x41a] _isMouseHidden   : false [Type: bool]
    [+0x420] _defaultPointerCursor [Type: winrt::Windows::UI::Core::CoreCursor]
    [+0x428] _lastPreviewedCommand [Type: winrt::Microsoft::Terminal::Settings::Model::Command]
    [+0x430] _restorePreviewFuncs : { size=286154163644857965 } [Type: std::vector<std::function<void __cdecl(void)>,std::allocator<std::function<void __cdecl(void)> > >]
0:004> dx -r1 (*((TerminalApp!winrt::Windows::Foundation::Collections::IVector<winrt::Microsoft::Terminal::Settings::Model::ActionAndArgs> *)0x1cbc8907678))
(*((TerminalApp!winrt::Windows::Foundation::Collections::IVector<winrt::Microsoft::Terminal::Settings::Model::ActionAndArgs> *)0x1cbc8907678))                 [Type: winrt::Windows::Foundation::Collections::IVector<winrt::Microsoft::Terminal::Settings::Model::ActionAndArgs>]
    [+0x000] m_ptr            : 0x0 [Type: winrt::impl::abi<winrt::Windows::Foundation::IUnknown,void>::type *]
0:004> dx -r1 (*((TerminalApp!TerminalApp::AppCommandlineArgs *)0x1cbc09486f0))
(*((TerminalApp!TerminalApp::AppCommandlineArgs *)0x1cbc09486f0))                 [Type: TerminalApp::AppCommandlineArgs]
    [=0x7ffa35a8e998] NixHelpFlag      : "-?" [Type: std::basic_string_view<char,std::char_traits<char> >]
    [=0x7ffa35a8e9b0] WindowsHelpFlag  : "/?" [Type: std::basic_string_view<char,std::char_traits<char> >]
    [=0x7ffa35a8e9c8] PlaceholderExeName : "wt.exe" [Type: std::basic_string_view<wchar_t,std::char_traits<wchar_t> >]
    [=0x7ffa35de9180] _commandDelimiterRegex : "^;|[^\\];" [Type: std::basic_regex<wchar_t,std::regex_traits<wchar_t> >]
    [+0x000] _app             [Type: CLI::App]
    [+0x3b0] _newTabCommand   [Type: TerminalApp::AppCommandlineArgs::NewTerminalSubcommand]
    [+0x3f0] _newTabShort     [Type: TerminalApp::AppCommandlineArgs::NewTerminalSubcommand]
    [+0x430] _newPaneCommand  [Type: TerminalApp::AppCommandlineArgs::NewPaneSubcommand]
    [+0x488] _newPaneShort    [Type: TerminalApp::AppCommandlineArgs::NewPaneSubcommand]
    [+0x4e0] _focusTabCommand : 0x1cbc0938e70 [Type: CLI::App *]
    [+0x4e8] _focusTabShort   : 0x1cbc0939270 [Type: CLI::App *]
    [+0x4f0] _moveFocusCommand : 0x1cbc0939670 [Type: CLI::App *]
    [+0x4f8] _moveFocusShort  : 0x1cbc0939a70 [Type: CLI::App *]
    [+0x500] _movePaneCommand : 0x1cbc0939e70 [Type: CLI::App *]
    [+0x508] _movePaneShort   : 0x1cbc093a270 [Type: CLI::App *]
    [+0x510] _swapPaneCommand : 0x1cbc093a670 [Type: CLI::App *]
    [+0x518] _focusPaneCommand : 0x1cbc093aa70 [Type: CLI::App *]
    [+0x520] _focusPaneShort  : 0x1cbc180e690 [Type: CLI::App *]
    [+0x528] _profileName     [Type: std::basic_string<char,std::char_traits<char>,std::allocator<char> >]
    [+0x550] _startingDirectory [Type: std::basic_string<char,std::char_traits<char>,std::allocator<char> >]
    [+0x578] _startingTitle   [Type: std::basic_string<char,std::char_traits<char>,std::allocator<char> >]
    [+0x5a0] _startingTabColor [Type: std::basic_string<char,std::char_traits<char>,std::allocator<char> >]
    [+0x5c8] _startingColorScheme : "" [Type: std::basic_string<char,std::char_traits<char>,std::allocator<char> >]
    [+0x5f0] _suppressApplicationTitle : false [Type: bool]
    [+0x5f4] _moveFocusDirection : None (0) [Type: winrt::Microsoft::Terminal::Settings::Model::FocusDirection]
    [+0x5f8] _swapPaneDirection : -1048516016 [Type: winrt::Microsoft::Terminal::Settings::Model::FocusDirection]
    [+0x600] _commandline     : { size=0 } [Type: std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >]
    [+0x620] _splitVertical   : true [Type: bool]
    [+0x621] _splitHorizontal : true [Type: bool]
    [+0x622] _splitDuplicate  : true [Type: bool]
    [+0x624] _splitPaneSize   : -1.#QNAN0 [Type: float]
    [+0x628] _movePaneTabIndex : 0 [Type: int]
    [+0x62c] _focusTabIndex   : -1 [Type: int]
    [+0x630] _focusNextTab    : false [Type: bool]
    [+0x631] _focusPrevTab    : false [Type: bool]
    [+0x634] _focusPaneTarget : 0 [Type: int]
    [+0x638] _currentCommandline : 0x0 [Type: TerminalApp::Commandline *]
    [+0x640] _launchMode      : nullopt [Type: std::optional<enum winrt::Microsoft::Terminal::Settings::Model::LaunchMode>]
    [+0x648] _isHandoffListener : true [Type: bool]
    [+0x650] _startupActions  : { size=0 } [Type: std::vector<winrt::Microsoft::Terminal::Settings::Model::ActionAndArgs,std::allocator<winrt::Microsoft::Terminal::Settings::Model::ActionAndArgs> >]
    [+0x670] _exitMessage     [Type: std::basic_string<char,std::char_traits<char>,std::allocator<char> >]
    [+0x698] _shouldExitEarly : true [Type: bool]
    [+0x69c] _loadPersistedLayoutIdx : 459 [Type: int]
    [+0x6a0] _windowTarget    [Type: std::basic_string<char,std::char_traits<char>,std::allocator<char> >]
```

</details>

We're seemingly hung waiting to get the layouts, in the defterm, non monarch window

Fix patch:
diff --git a/src/cascadia/TerminalApp/TerminalPage.cpp b/src/cascadia/TerminalApp/TerminalPage.cpp
index 6eb29cbfee8..44daf5679d1 100644
--- a/src/cascadia/TerminalApp/TerminalPage.cpp
+++ b/src/cascadia/TerminalApp/TerminalPage.cpp
@@ -313,7 +313,10 @@ namespace winrt::TerminalApp::implementation
     // - true if we're not elevated but all relevant pane-spawning actions are elevated
     bool TerminalPage::ShouldImmediatelyHandoffToElevated(const CascadiaSettings& settings) const
     {
-        if (!_startupActions || IsElevated())
+        // GH#12267: Don't forget about defterm handoff here. If we're being
+        // created for embedding, then _yea_, we don't need to handoff to an
+        // elevated window.
+        if (!_startupActions || IsElevated() || _shouldStartInboundListener)
         {
             // there arent startup actions, or we're elevated. In that case, go for it.
             return false;
@@ -664,7 +667,11 @@ namespace winrt::TerminalApp::implementation
         // However, we need to make sure to close this window in that scenario.
         // Since there aren't any _tabs_ in this window, we won't ever get a
         // closed event. So do it manually.
-        if (_tabs.Size() == 0)
+        //
+        // GH#12267: Make sure that we don't instantly close ourselves when
+        // we're readying to accept a defterm connection. In that case, we don't
+        // have a tab yet, but will once we're initialized.
+        if (_tabs.Size() == 0 && !(_shouldStartInboundListener || _isEmbeddingInboundListener))
         {
             _LastTabClosedHandlers(*this, nullptr);
         }
diff --git a/src/cascadia/WindowsTerminal/AppHost.cpp b/src/cascadia/WindowsTerminal/AppHost.cpp
index 09fcb564f7b..f1380679c38 100644
--- a/src/cascadia/WindowsTerminal/AppHost.cpp
+++ b/src/cascadia/WindowsTerminal/AppHost.cpp
@@ -1443,24 +1443,26 @@ void AppHost::_WindowMoved()
         _logic.DismissDialog();
 
         const auto root{ _logic.GetRoot() };
-
-        try
+        if (root && root.XamlRoot())
         {
-            // This is basically DismissAllPopups which is also in
-            // TerminalSettingsEditor/Utils.h
-            // There isn't a good place that's shared between these two files, but
-            // it's only 5 LOC so whatever.
-            const auto popups{ Media::VisualTreeHelper::GetOpenPopupsForXamlRoot(root.XamlRoot()) };
-            for (const auto& p : popups)
+            try
             {
-                p.IsOpen(false);
+                // This is basically DismissAllPopups which is also in
+                // TerminalSettingsEditor/Utils.h
+                // There isn't a good place that's shared between these two files, but
+                // it's only 5 LOC so whatever.
+                const auto popups{ Media::VisualTreeHelper::GetOpenPopupsForXamlRoot(root.XamlRoot()) };
+                for (const auto& p : popups)
+                {
+                    p.IsOpen(false);
+                }
+            }
+            catch (...)
+            {
+                // We purposely don't log here, because this is exceptionally noisy,
+                // especially on startup, when we're moving the window into place
+                // but might not have a real xamlRoot yet.
             }
-        }
-        catch (...)
-        {
-            // We purposely don't log here, because this is exceptionally noisy,
-            // especially on startup, when we're moving the window into place
-            // but might not have a real xamlRoot yet.
         }
     }
 }


Test patch: