Terminal crashing when last tab is closed with exit, 2021 edition #13572

Open
opened 2026-01-31 03:46:11 +00:00 by claunia · 0 comments
Owner

Originally created by @hhromic on GitHub (Apr 21, 2021).

Originally assigned to: @lhecker on GitHub.

I'm getting constant crashes when closing the last tab. I analyzed a minidump from this crash (see below).

Due to restrictions in my corporation, I can only install Windows Terminal using the bundle file in the releases page of this repository: Microsoft.WindowsTerminal_1.7.1091.0_8wekyb3d8bbwe.msixbundle.

On my personal computer I use the Microsoft Store version of Windows Terminal which does NOT crash.

Let me know of anything you need to help debugging this issue 👍

Expand for stack trace.
0:000> !analyze -v
*******************************************************************************
*                                                                             *
*                        Exception Analysis                                   *
*                                                                             *
*******************************************************************************


KEY_VALUES_STRING: 1

    Key  : Analysis.CPU.Sec
    Value: 11

    Key  : Analysis.DebugAnalysisProvider.CPP
    Value: Create: 8007007e on (redacted)

    Key  : Analysis.DebugData
    Value: CreateObject

    Key  : Analysis.DebugModel
    Value: CreateObject

    Key  : Analysis.Elapsed.Sec
    Value: 108

    Key  : Analysis.Memory.CommitPeak.Mb
    Value: 162

    Key  : Analysis.System
    Value: CreateObject

    Key  : Timeline.Process.Start.DeltaSec
    Value: 14


NTGLOBALFLAG:  0

PROCESS_BAM_CURRENT_THROTTLED: 0

PROCESS_BAM_PREVIOUS_THROTTLED: 0

APPLICATION_VERIFIER_FLAGS:  0

CONTEXT:  (.ecxr)
rax=0000008fcd4fc180 rbx=0000008fcd4fc0e0 rcx=0000008fcd4fc180
rdx=0000000000000000 rsi=0000000000000003 rdi=0000008fcd4fc180
rip=00007ffd08f80c0f rsp=0000008fcd4fc0a0 rbp=0000008fcd4fc770
 r8=0000000000000000  r9=0000000000000000 r10=0000026f85bd49c0
r11=5555555555555555 r12=0000000000000004 r13=0000008fcd4fca98
r14=0000000000000000 r15=0000008fcd4fd8e8
iopl=0         nv up ei pl zr na po nc
cs=0033  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000244
KERNELBASE!RaiseFailFastException+0xaf:
00007ffd`08f80c0f 0f1f440000      nop     dword ptr [rax+rax]
Resetting default scope

EXCEPTION_RECORD:  (.exr -1)
ExceptionAddress: 00007ffd0ab9940b (combase!RoFailFastWithErrorContextInternal2+0x000000000000050b)
   ExceptionCode: c0000602
  ExceptionFlags: 00000001
NumberParameters: 0

PROCESS_NAME:  WindowsTerminal.exe

ERROR_CODE: (NTSTATUS) 0xc0000602 - {Fail Fast Exception}  A fail fast exception occurred. Exception handlers will not be invoked and the process will be terminated immediately.

EXCEPTION_CODE_STR:  c0000602

STACK_TEXT:  
0000008f`cd4fc0a0 00007ffd`0ab9940b : 00000000`00000000 00000000`00000000 00000000`00000000 00007ffd`0ac943d0 : KERNELBASE!RaiseFailFastException+0xaf
0000008f`cd4fc670 00007ffc`b64a57df : 00007ffd`0ab99940 00007ffc`ff892519 0000008f`cd4fe370 0000008f`cd4febc0 : combase!RoFailFastWithErrorContextInternal2+0x50b
0000008f`cd4fc950 00007ffc`b648e739 : 00000000`8000ffff 00007ffd`01ab34af 00007ffc`b64ad79d 00007ffc`b6470000 : TerminalControl+0x357df
0000008f`cd4fc980 00007ffc`b6532319 : 00007ffc`ff8a5280 00007ffc`ff8a52a0 00007ffc`ff8a52b0 00007ffc`ff8a5280 : TerminalControl+0x1e739
0000008f`cd4fc9b0 00007ffd`01ab1080 : 00007ffc`b65322fa 0000008f`cd4fed90 0000008f`cd4fed90 00007ffc`ff8a5280 : TerminalControl!DllGetActivationFactory+0x82dd9
0000008f`cd4fc9e0 00007ffd`01ab26a5 : 00007ffc`b65322fa 0000008f`cd4fd8e8 0000026f`00000100 00000000`00000000 : VCRUNTIME140_1!_CallSettingFrame_LookupContinuationIndex+0x20
0000008f`cd4fca10 00007ffd`0be21336 : 00000000`00000000 00000000`00000003 00000000`00000000 0000008f`cd4febc0 : VCRUNTIME140_1!__FrameHandler4::CxxCallCatchBlock+0x115
0000008f`cd4fcaf0 00007ffc`b65247f9 : 0000026f`f6e51200 0000026f`8530a2e0 0000008f`cd4fee00 00000000`00000000 : ntdll!RcConsolidateFrames+0x6
0000008f`cd4fed90 00007ffc`b64a5531 : 0000026f`8530a2e0 0000026f`f6f9e590 0000026f`85bf73c0 00000000`00000018 : TerminalControl!DllGetActivationFactory+0x752b9
0000008f`cd4fee30 00007ffc`fb7afb51 : 0000026f`f6d60100 00000000`00000001 00000000`00000000 00000000`00000000 : TerminalControl+0x35531
0000008f`cd4fee60 00007ffd`029efbf6 : 0000026f`f6e00da0 0000026f`f6f9e590 0000026f`f6d60340 00000000`004000a0 : Windows_UI!Microsoft::WRL::Details::DelegateArgTraits<long (__cdecl Windows::System::IDispatcherQueueHandler::*)(void)>::DelegateInvokeHelper<Microsoft::WRL::Implements<Microsoft::WRL::RuntimeClassFlags<2>,Windows::System::IDispatcherQueueHandler,Microsoft::WRL::FtmBase>,<lambda_59517943c03487243f9bea31c6c1a784>,-1>::Invoke+0x71
0000008f`cd4fee90 00007ffd`029bbd46 : 0000026f`f6f078d0 0000026f`85bf73c0 0000026f`f6f078d0 0000026f`85bf73c0 : CoreMessaging!Windows::System::DispatcherQueue::DeferInvokeCallback+0x16
0000008f`cd4feec0 00007ffd`029bae8d : 00000000`00000000 0000026f`f6f07b20 0000026f`85bf73c0 0000026f`fa1377d0 : CoreMessaging!Microsoft__CoreUI__Dispatch__TimeoutHandler$CallbackThunk+0x186
0000008f`cd4fef40 00007ffd`029ba818 : 0000026f`fa1377d0 0000026f`fff644a0 0000026f`fa1377d0 00000000`00000003 : CoreMessaging!Microsoft::CoreUI::Dispatch::DeferredCall::Callback_Dispatch+0x2bd
0000008f`cd4feff0 00007ffd`029c1108 : 00000000`00000006 0000026f`f6e367c0 0000026f`f6e367c0 00000000`00000006 : CoreMessaging!Microsoft::CoreUI::Dispatch::DeferredCallDispatcher::Callback_OnDispatch+0x158
0000008f`cd4ff060 00007ffd`029c0491 : 0000026f`f6e52340 0000008f`cd4ff198 0000026f`f6f0c9b0 0000026f`f6e6a710 : CoreMessaging!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop+0xa68
0000008f`cd4ff140 00007ffd`029bfd99 : 0000026f`f6e6a710 0000026f`f6f13260 ffffffff`ffffffff 00007ffd`0a615aa4 : CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::OnUserDispatch+0x1d1
0000008f`cd4ff230 00007ffd`029bfbcb : 00000000`00000005 0000026f`f6f13260 00000000`00000000 00000000`40000c02 : CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_DoWork+0xe9
0000008f`cd4ff310 00007ffd`0a615c1d : 00000000`00000002 00000000`80000022 00000000`00000001 0000008f`cd4ff750 : CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_WindowProc+0x9b
0000008f`cd4ff340 00007ffd`0a615612 : 0000026f`f74f1f90 00007ffd`029bfb30 00000000`000f02f8 0000008f`cd4ff590 : user32!UserCallWinProcCheckWow+0x2bd
0000008f`cd4ff4d0 00007ffc`ff74150b : 00007ffd`029bfb30 0000026f`f6e26848 0000026f`f6e39f40 00007ffd`0bdc06fc : user32!DispatchMessageWorker+0x1e2
0000008f`cd4ff550 00007ffc`ff743979 : 00000000`000f02f8 0000008f`cd4ff6e8 00000000`00000000 00000000`00000000 : Microsoft_Toolkit_Win32_UI_XamlHost+0x150b
0000008f`cd4ff5e0 00007ff6`9d2e785c : 0000008f`cd4ff6e8 00000000`00000000 00000000`00000000 00000000`00000000 : Microsoft_Toolkit_Win32_UI_XamlHost+0x3979
0000008f`cd4ff610 00007ff6`9d2e57be : 00000000`00000000 00000000`00000005 00000000`00000000 00780065`002e006c : WindowsTerminal+0x785c
0000008f`cd4ff650 00007ff6`9d2f3e12 : 00000000`00000005 00000000`00000000 00000000`00000000 00000000`00000000 : WindowsTerminal+0x57be
0000008f`cd4ff800 00007ffd`0b217c24 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : WindowsTerminal+0x13e12
0000008f`cd4ff840 00007ffd`0bded721 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0x14
0000008f`cd4ff870 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21


SYMBOL_NAME:  terminalcontrol+357df

MODULE_NAME: TerminalControl

IMAGE_NAME:  TerminalControl.dll

STACK_COMMAND:  ~0s ; .ecxr ; kb

FAILURE_BUCKET_ID:  FAIL_FAST_EXCEPTION_c0000602_TerminalControl.dll!Unknown

OS_VERSION:  10.0.18362.1

BUILDLAB_STR:  19h1_release

OSPLATFORM_TYPE:  x64

OSNAME:  Windows 10

FAILURE_ID_HASH:  {ac27ec0d-741f-9773-6afa-117b0a1e2a8d}

Followup:     MachineOwner
---------

0:000> lmvm TerminalControl
Browse full module list
start             end                 module name
00007ffc`b6470000 00007ffc`b656e000   TerminalControl   (export symbols)       TerminalControl.dll
    Loaded symbol image file: TerminalControl.dll
    Mapped memory image file: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.7.1091.0_x64__8wekyb3d8bbwe\TerminalControl.dll
    Image path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.7.1091.0_x64__8wekyb3d8bbwe\TerminalControl.dll
    Image name: TerminalControl.dll
    Browse all global symbols  functions  data
    Timestamp:        Mon Apr 19 22:25:11 2021 (607DF537)
    CheckSum:         000FB1D0
    ImageSize:        000FE000
    File version:     1.7.2104.19001
    Product version:  1.7.2104.19001
    File flags:       0 (Mask 3F)
    File OS:          4 Unknown Win32
    File type:        2.0 Dll
    File date:        00000000.00000000
    Translations:     0000.04b0
    Information from resource tables:

Originally created by @hhromic on GitHub (Apr 21, 2021). Originally assigned to: @lhecker on GitHub. I'm getting constant crashes when closing the last tab. I analyzed a minidump from this crash (see below). Due to restrictions in my corporation, I can only install Windows Terminal using the bundle file in the releases page of this repository: `Microsoft.WindowsTerminal_1.7.1091.0_8wekyb3d8bbwe.msixbundle`. On my personal computer I use the Microsoft Store version of Windows Terminal which does NOT crash. Let me know of anything you need to help debugging this issue 👍 <details> <summary>Expand for stack trace.</summary> ``` 0:000> !analyze -v ******************************************************************************* * * * Exception Analysis * * * ******************************************************************************* KEY_VALUES_STRING: 1 Key : Analysis.CPU.Sec Value: 11 Key : Analysis.DebugAnalysisProvider.CPP Value: Create: 8007007e on (redacted) Key : Analysis.DebugData Value: CreateObject Key : Analysis.DebugModel Value: CreateObject Key : Analysis.Elapsed.Sec Value: 108 Key : Analysis.Memory.CommitPeak.Mb Value: 162 Key : Analysis.System Value: CreateObject Key : Timeline.Process.Start.DeltaSec Value: 14 NTGLOBALFLAG: 0 PROCESS_BAM_CURRENT_THROTTLED: 0 PROCESS_BAM_PREVIOUS_THROTTLED: 0 APPLICATION_VERIFIER_FLAGS: 0 CONTEXT: (.ecxr) rax=0000008fcd4fc180 rbx=0000008fcd4fc0e0 rcx=0000008fcd4fc180 rdx=0000000000000000 rsi=0000000000000003 rdi=0000008fcd4fc180 rip=00007ffd08f80c0f rsp=0000008fcd4fc0a0 rbp=0000008fcd4fc770 r8=0000000000000000 r9=0000000000000000 r10=0000026f85bd49c0 r11=5555555555555555 r12=0000000000000004 r13=0000008fcd4fca98 r14=0000000000000000 r15=0000008fcd4fd8e8 iopl=0 nv up ei pl zr na po nc cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000244 KERNELBASE!RaiseFailFastException+0xaf: 00007ffd`08f80c0f 0f1f440000 nop dword ptr [rax+rax] Resetting default scope EXCEPTION_RECORD: (.exr -1) ExceptionAddress: 00007ffd0ab9940b (combase!RoFailFastWithErrorContextInternal2+0x000000000000050b) ExceptionCode: c0000602 ExceptionFlags: 00000001 NumberParameters: 0 PROCESS_NAME: WindowsTerminal.exe ERROR_CODE: (NTSTATUS) 0xc0000602 - {Fail Fast Exception} A fail fast exception occurred. Exception handlers will not be invoked and the process will be terminated immediately. EXCEPTION_CODE_STR: c0000602 STACK_TEXT: 0000008f`cd4fc0a0 00007ffd`0ab9940b : 00000000`00000000 00000000`00000000 00000000`00000000 00007ffd`0ac943d0 : KERNELBASE!RaiseFailFastException+0xaf 0000008f`cd4fc670 00007ffc`b64a57df : 00007ffd`0ab99940 00007ffc`ff892519 0000008f`cd4fe370 0000008f`cd4febc0 : combase!RoFailFastWithErrorContextInternal2+0x50b 0000008f`cd4fc950 00007ffc`b648e739 : 00000000`8000ffff 00007ffd`01ab34af 00007ffc`b64ad79d 00007ffc`b6470000 : TerminalControl+0x357df 0000008f`cd4fc980 00007ffc`b6532319 : 00007ffc`ff8a5280 00007ffc`ff8a52a0 00007ffc`ff8a52b0 00007ffc`ff8a5280 : TerminalControl+0x1e739 0000008f`cd4fc9b0 00007ffd`01ab1080 : 00007ffc`b65322fa 0000008f`cd4fed90 0000008f`cd4fed90 00007ffc`ff8a5280 : TerminalControl!DllGetActivationFactory+0x82dd9 0000008f`cd4fc9e0 00007ffd`01ab26a5 : 00007ffc`b65322fa 0000008f`cd4fd8e8 0000026f`00000100 00000000`00000000 : VCRUNTIME140_1!_CallSettingFrame_LookupContinuationIndex+0x20 0000008f`cd4fca10 00007ffd`0be21336 : 00000000`00000000 00000000`00000003 00000000`00000000 0000008f`cd4febc0 : VCRUNTIME140_1!__FrameHandler4::CxxCallCatchBlock+0x115 0000008f`cd4fcaf0 00007ffc`b65247f9 : 0000026f`f6e51200 0000026f`8530a2e0 0000008f`cd4fee00 00000000`00000000 : ntdll!RcConsolidateFrames+0x6 0000008f`cd4fed90 00007ffc`b64a5531 : 0000026f`8530a2e0 0000026f`f6f9e590 0000026f`85bf73c0 00000000`00000018 : TerminalControl!DllGetActivationFactory+0x752b9 0000008f`cd4fee30 00007ffc`fb7afb51 : 0000026f`f6d60100 00000000`00000001 00000000`00000000 00000000`00000000 : TerminalControl+0x35531 0000008f`cd4fee60 00007ffd`029efbf6 : 0000026f`f6e00da0 0000026f`f6f9e590 0000026f`f6d60340 00000000`004000a0 : Windows_UI!Microsoft::WRL::Details::DelegateArgTraits<long (__cdecl Windows::System::IDispatcherQueueHandler::*)(void)>::DelegateInvokeHelper<Microsoft::WRL::Implements<Microsoft::WRL::RuntimeClassFlags<2>,Windows::System::IDispatcherQueueHandler,Microsoft::WRL::FtmBase>,<lambda_59517943c03487243f9bea31c6c1a784>,-1>::Invoke+0x71 0000008f`cd4fee90 00007ffd`029bbd46 : 0000026f`f6f078d0 0000026f`85bf73c0 0000026f`f6f078d0 0000026f`85bf73c0 : CoreMessaging!Windows::System::DispatcherQueue::DeferInvokeCallback+0x16 0000008f`cd4feec0 00007ffd`029bae8d : 00000000`00000000 0000026f`f6f07b20 0000026f`85bf73c0 0000026f`fa1377d0 : CoreMessaging!Microsoft__CoreUI__Dispatch__TimeoutHandler$CallbackThunk+0x186 0000008f`cd4fef40 00007ffd`029ba818 : 0000026f`fa1377d0 0000026f`fff644a0 0000026f`fa1377d0 00000000`00000003 : CoreMessaging!Microsoft::CoreUI::Dispatch::DeferredCall::Callback_Dispatch+0x2bd 0000008f`cd4feff0 00007ffd`029c1108 : 00000000`00000006 0000026f`f6e367c0 0000026f`f6e367c0 00000000`00000006 : CoreMessaging!Microsoft::CoreUI::Dispatch::DeferredCallDispatcher::Callback_OnDispatch+0x158 0000008f`cd4ff060 00007ffd`029c0491 : 0000026f`f6e52340 0000008f`cd4ff198 0000026f`f6f0c9b0 0000026f`f6e6a710 : CoreMessaging!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop+0xa68 0000008f`cd4ff140 00007ffd`029bfd99 : 0000026f`f6e6a710 0000026f`f6f13260 ffffffff`ffffffff 00007ffd`0a615aa4 : CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::OnUserDispatch+0x1d1 0000008f`cd4ff230 00007ffd`029bfbcb : 00000000`00000005 0000026f`f6f13260 00000000`00000000 00000000`40000c02 : CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_DoWork+0xe9 0000008f`cd4ff310 00007ffd`0a615c1d : 00000000`00000002 00000000`80000022 00000000`00000001 0000008f`cd4ff750 : CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_WindowProc+0x9b 0000008f`cd4ff340 00007ffd`0a615612 : 0000026f`f74f1f90 00007ffd`029bfb30 00000000`000f02f8 0000008f`cd4ff590 : user32!UserCallWinProcCheckWow+0x2bd 0000008f`cd4ff4d0 00007ffc`ff74150b : 00007ffd`029bfb30 0000026f`f6e26848 0000026f`f6e39f40 00007ffd`0bdc06fc : user32!DispatchMessageWorker+0x1e2 0000008f`cd4ff550 00007ffc`ff743979 : 00000000`000f02f8 0000008f`cd4ff6e8 00000000`00000000 00000000`00000000 : Microsoft_Toolkit_Win32_UI_XamlHost+0x150b 0000008f`cd4ff5e0 00007ff6`9d2e785c : 0000008f`cd4ff6e8 00000000`00000000 00000000`00000000 00000000`00000000 : Microsoft_Toolkit_Win32_UI_XamlHost+0x3979 0000008f`cd4ff610 00007ff6`9d2e57be : 00000000`00000000 00000000`00000005 00000000`00000000 00780065`002e006c : WindowsTerminal+0x785c 0000008f`cd4ff650 00007ff6`9d2f3e12 : 00000000`00000005 00000000`00000000 00000000`00000000 00000000`00000000 : WindowsTerminal+0x57be 0000008f`cd4ff800 00007ffd`0b217c24 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : WindowsTerminal+0x13e12 0000008f`cd4ff840 00007ffd`0bded721 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0x14 0000008f`cd4ff870 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21 SYMBOL_NAME: terminalcontrol+357df MODULE_NAME: TerminalControl IMAGE_NAME: TerminalControl.dll STACK_COMMAND: ~0s ; .ecxr ; kb FAILURE_BUCKET_ID: FAIL_FAST_EXCEPTION_c0000602_TerminalControl.dll!Unknown OS_VERSION: 10.0.18362.1 BUILDLAB_STR: 19h1_release OSPLATFORM_TYPE: x64 OSNAME: Windows 10 FAILURE_ID_HASH: {ac27ec0d-741f-9773-6afa-117b0a1e2a8d} Followup: MachineOwner --------- 0:000> lmvm TerminalControl Browse full module list start end module name 00007ffc`b6470000 00007ffc`b656e000 TerminalControl (export symbols) TerminalControl.dll Loaded symbol image file: TerminalControl.dll Mapped memory image file: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.7.1091.0_x64__8wekyb3d8bbwe\TerminalControl.dll Image path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.7.1091.0_x64__8wekyb3d8bbwe\TerminalControl.dll Image name: TerminalControl.dll Browse all global symbols functions data Timestamp: Mon Apr 19 22:25:11 2021 (607DF537) CheckSum: 000FB1D0 ImageSize: 000FE000 File version: 1.7.2104.19001 Product version: 1.7.2104.19001 File flags: 0 (Mask 3F) File OS: 4 Unknown Win32 File type: 2.0 Dll File date: 00000000.00000000 Translations: 0000.04b0 Information from resource tables: ``` </details>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13572