Copy to clipboard action causes application fault #3605

Closed
opened 2026-01-30 23:25:22 +00:00 by claunia · 8 comments
Owner

Originally created by @shem-sargent on GitHub (Aug 28, 2019).

Environment

Windows build number: 10.0.18362.0
Windows Terminal version:  0.4.2382.0

Any other software?
Issue can be triggered in any of the following shells:
PowerShell 5
PS Core 6
Azure Cloud Shell
Ubuntu 18.04 Bash on WSL 1
Windows CMD

Steps to reproduce

1. Open one or more shells in Windows Terminal.
2. Use the mouse to select text
3. Use key combination defined in profile.json to copy text.
4. Repeat steps 2 to 3 a few times

Note: tested using both copy text key combinations ctrl+shift+c and ctrl+c

Expected behavior

Application keeps running

Actual behavior

Application crashes
- Feedback Hub issue with diagnostic data: https://aka.ms/AA5y39i

- Error in Event Viewer
Faulting application name: WindowsTerminal.exe, version: 1.0.1908.26002, time stamp: 0x5d641823
Faulting module name: CoreMessaging.dll, version: 10.0.18362.1, time stamp: 0x101a45b8
Exception code: 0xc000027b
Fault offset: 0x000000000005fe7e
Faulting process id: 0x6350
Faulting application start time: 0x01d55d677c299237
Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.4.2382.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe
Faulting module path: C:\Windows\System32\CoreMessaging.dll
Report Id: 422443e5-021c-4251-b70c-362328cafb6b
Faulting package full name: Microsoft.WindowsTerminal_0.4.2382.0_x64__8wekyb3d8bbwe
Faulting package-relative application ID: App

Originally created by @shem-sargent on GitHub (Aug 28, 2019). # Environment ```none Windows build number: 10.0.18362.0 Windows Terminal version: 0.4.2382.0 Any other software? Issue can be triggered in any of the following shells: PowerShell 5 PS Core 6 Azure Cloud Shell Ubuntu 18.04 Bash on WSL 1 Windows CMD ``` # Steps to reproduce ``` 1. Open one or more shells in Windows Terminal. 2. Use the mouse to select text 3. Use key combination defined in profile.json to copy text. 4. Repeat steps 2 to 3 a few times Note: tested using both copy text key combinations ctrl+shift+c and ctrl+c ``` # Expected behavior ``` Application keeps running ``` # Actual behavior ``` Application crashes - Feedback Hub issue with diagnostic data: https://aka.ms/AA5y39i - Error in Event Viewer Faulting application name: WindowsTerminal.exe, version: 1.0.1908.26002, time stamp: 0x5d641823 Faulting module name: CoreMessaging.dll, version: 10.0.18362.1, time stamp: 0x101a45b8 Exception code: 0xc000027b Fault offset: 0x000000000005fe7e Faulting process id: 0x6350 Faulting application start time: 0x01d55d677c299237 Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.4.2382.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe Faulting module path: C:\Windows\System32\CoreMessaging.dll Report Id: 422443e5-021c-4251-b70c-362328cafb6b Faulting package full name: Microsoft.WindowsTerminal_0.4.2382.0_x64__8wekyb3d8bbwe Faulting package-relative application ID: App ```
Author
Owner

@beevvy commented on GitHub (Aug 28, 2019):

I'm getting the same. Reproduces even with default profiles.json. Some WinDbg output below. I'm happy to share crash dump if helpful.

The stored exception information can be accessed via .ecxr.
(6c60.2ea0): Unknown exception - code c000027b (first/second chance not available)
For analysis of this file, run !analyze -v
KERNELBASE!RaiseFailFastException+0xaf:
00007ffd`fb56f65f 0f1f440000      nop     dword ptr [rax+rax]
0:000> !analyze -v
*******************************************************************************
*                                                                             *
*                        Exception Analysis                                   *
*                                                                             *
*******************************************************************************

*** WARNING: Unable to verify checksum for TerminalControl.dll
*** WARNING: Unable to verify checksum for TerminalConnection.dll

KEY_VALUES_STRING: 1

    Key  : Analysis.CPU.Sec
    Value: 2

    Key  : Analysis.Elapsed.Sec
    Value: 22

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

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


PROCESSES_ANALYSIS: 1

SERVICE_ANALYSIS: 1

STACKHASH_ANALYSIS: 1

TIMELINE_ANALYSIS: 1

Timeline: !analyze.Start
    Name: <blank>
    Time: 2019-08-28T15:20:55.325Z
    Diff: 989325 mSec

Timeline: Dump.Current
    Name: <blank>
    Time: 2019-08-28T15:04:26.0Z
    Diff: 0 mSec

Timeline: Process.Start
    Name: <blank>
    Time: 2019-08-28T15:04:16.0Z
    Diff: 10000 mSec


DUMP_CLASS: 2

DUMP_QUALIFIER: 400

MODLIST_WITH_TSCHKSUM_HASH:  a4b5ca11c2388731ad01697af84b4391917838e6

MODLIST_SHA1_HASH:  0aa159ec20b763617b58e888f99daed202ff21ee

NTGLOBALFLAG:  0

PROCESS_BAM_CURRENT_THROTTLED: 0

PROCESS_BAM_PREVIOUS_THROTTLED: 0

APPLICATION_VERIFIER_FLAGS:  0

DUMP_FLAGS:  94

DUMP_TYPE:  1

CONTEXT:  (.ecxr)
rax=000000bcb2dcebe0 rbx=000000bcb2dcf190 rcx=000000bcb2dcebe0
rdx=0000000000000000 rsi=0000000000000002 rdi=000000bcb2dcebe0
rip=00007ffdfb56f65f rsp=000000bcb2dceb00 rbp=000000bcb2dcf1d0
 r8=0000000000000000  r9=0000000000000000 r10=000000000000000c
r11=000000bcb2dcf190 r12=0000000000000004 r13=00007ffdf7aa8cd0
r14=0000000000000000 r15=0000000000000000
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`fb56f65f 0f1f440000      nop     dword ptr [rax+rax]
Resetting default scope

FAULTING_IP: 
CoreMessaging!ServiceMain+10f8e
00007ffd`f7a6fe7e 90              nop

EXCEPTION_RECORD:  (.exr -1)
ExceptionAddress: 00007ffdf7a6fe7e (CoreMessaging!ServiceMain+0x0000000000010f8e)
   ExceptionCode: c000027b
  ExceptionFlags: 00000001
NumberParameters: 2
   Parameter[0]: 000002a283efe8d0
   Parameter[1]: 0000000000000001

DEFAULT_BUCKET_ID:  STOWED_EXCEPTION

PROCESS_NAME:  WindowsTerminal.exe

BUGCHECK_STR:  STOWED_EXCEPTION

ERROR_CODE: (NTSTATUS) 0xc000027b - An application-internal exception has occurred.

EXCEPTION_CODE: (NTSTATUS) 0xc000027b - An application-internal exception has occurred.

EXCEPTION_CODE_STR:  c000027b

EXCEPTION_PARAMETER1:  000002a283efe8d0

EXCEPTION_PARAMETER2:  0000000000000001

WATSON_BKT_PROCSTAMP:  5d641823

WATSON_BKT_PROCVER:  1.0.1908.26002

WATSON_BKT_MODULE:  CoreMessaging.dll

WATSON_BKT_MODSTAMP:  69234cdd

WATSON_BKT_MODOFFSET:  5fe7e

WATSON_BKT_MODVER:  10.0.18362.10000

MODULE_VER_PRODUCT:  Microsoft® Windows® Operating System

BUILD_VERSION_STRING:  18362.10000.amd64fre.19h1_release_svc_19h2_rel.190621-1123

ANALYSIS_SESSION_HOST:  DESKTOP-IGJHBQM

ANALYSIS_SESSION_TIME:  08-28-2019 17:20:55.0325

ANALYSIS_VERSION: 10.0.18914.1001 amd64fre

THREAD_ATTRIBUTES: 
OS_LOCALE:  ENU

PRIMARY_PROBLEM_CLASS:  STOWED_EXCEPTION

PROBLEM_CLASSES: 

    ID:     [0n258]
    Type:   [STOWED_EXCEPTION]
    Class:  Primary
    Scope:  DEFAULT_BUCKET_ID (Failure Bucket ID prefix)
            BUCKET_ID
    Name:   Add
    Data:   Omit
    PID:    [Unspecified]
    TID:    [Unspecified]
    Frame:  [0]

LAST_CONTROL_TRANSFER:  from 00007ffdfd40812b to 00007ffdfb56f65f

STACK_TEXT:  
000000bc`b2dceb00 00007ffd`fd40812b : 000002a2`801856b8 00007ffd`fd5043d0 000002a2`801856b8 00007ffd`fd5043d0 : KERNELBASE!RaiseFailFastException+0xaf
000000bc`b2dcf0d0 00007ffd`f7a6fe7e : 000002a2`7d79d470 000000bc`b2dcf388 00000000`00000000 00007ffd`fd493130 : combase!RoFailFastWithErrorContextInternal2+0x47b
000000bc`b2dcf3b0 00007ffd`f7a1bd46 : 000002a2`7d708520 000002a2`83ed4440 000002a2`7d708520 000002a2`83ed4440 : CoreMessaging!ServiceMain+0x10f8e
000000bc`b2dcf3e0 00007ffd`f7a1ae8d : 00000000`00000246 000002a2`7d708770 000002a2`83ed4440 000002a2`801031d0 : CoreMessaging+0xbd46
000000bc`b2dcf460 00007ffd`f7a1a818 : 000002a2`801031d0 000002a2`8012e860 000002a2`801031d0 00007ffd`fe49fbbc : CoreMessaging+0xae8d
000000bc`b2dcf510 00007ffd`f7a21108 : 00000000`0000000c 000002a2`7d673980 000002a2`7d673980 00000000`0000000c : CoreMessaging+0xa818
000000bc`b2dcf580 00007ffd`f7a20491 : 000002a2`7d6339a0 000000bc`b2dcf6b8 000002a2`7d70d600 000002a2`7d674830 : CoreMessaging+0x11108
000000bc`b2dcf660 00007ffd`f7a1fd99 : 000002a2`7d674830 000002a2`7d713210 000002a2`7d663250 000002a2`7fb8cac0 : CoreMessaging+0x10491
000000bc`b2dcf750 00007ffd`f7a1fbcb : 00000000`00000005 000002a2`7d713210 00000000`00000000 000000bc`40000c02 : CoreMessaging+0xfd99
000000bc`b2dcf830 00007ffd`fe29681d : 00000000`00000002 00000000`80000022 00000000`00000001 00000000`00000000 : CoreMessaging+0xfbcb
000000bc`b2dcf860 00007ffd`fe2963ec : 00000000`00008388 00007ffd`f7a1fb30 00000000`00141218 00000000`80000000 : user32!UserCallWinProcCheckWow+0x2bd
000000bc`b2dcf9f0 00007ffd`fe2a2d03 : 00000000`00000000 00000000`00000000 00000000`00000005 00000000`00000000 : user32!DispatchClientMessage+0x9c
000000bc`b2dcfa50 00007ffd`fe4ffdb4 : 00007ffd`e75e1b20 00000000`004a0342 00000000`00000246 00000000`20260001 : user32!_fnDWORD+0x33
000000bc`b2dcfab0 00007ffd`fc1c1164 : 00007ffd`fe2a477d 00000000`20260001 00000000`01fb0283 00000000`00000001 : ntdll!KiUserCallbackDispatcherContinue
000000bc`b2dcfb38 00007ffd`fe2a477d : 00000000`20260001 00000000`01fb0283 00000000`00000001 000002a2`00000001 : win32u!NtUserGetMessage+0x14
000000bc`b2dcfb40 00007ff6`df2444f9 : 00000000`00000000 00000000`00000005 00000000`00000000 000002a2`7d604a4a : user32!GetMessageW+0x2d
000000bc`b2dcfba0 00007ff6`df24c592 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : WindowsTerminal+0x44f9
000000bc`b2dcfc30 00007ffd`fe147bd4 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : WindowsTerminal+0xc592
000000bc`b2dcfc70 00007ffd`fe4cce71 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0x14
000000bc`b2dcfca0 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21


THREAD_SHA1_HASH_MOD_FUNC:  9cc0cae5ca90c93972d4405ebd6e1c96ed5f801c

THREAD_SHA1_HASH_MOD_FUNC_OFFSET:  37f8fd4fa9ab6361f827389333fe48e92d9ce219

THREAD_SHA1_HASH_MOD:  dbb9672a3645b64ada578b1948fb2575724804a8

FOLLOWUP_IP: 
CoreMessaging!ServiceMain+10f8e
00007ffd`f7a6fe7e 90              nop

FAULT_INSTR_CODE:  fd2ae990

SYMBOL_STACK_INDEX:  2

SYMBOL_NAME:  CoreMessaging!ServiceMain+10f8e

FOLLOWUP_NAME:  MachineOwner

MODULE_NAME: CoreMessaging

IMAGE_NAME:  CoreMessaging.dll

DEBUG_FLR_IMAGE_TIMESTAMP:  69234cdd

STACK_COMMAND:  ~0s ; .ecxr ; kb

FAILURE_BUCKET_ID:  STOWED_EXCEPTION_c000027b_CoreMessaging.dll!ServiceMain

BUCKET_ID:  STOWED_EXCEPTION_CoreMessaging!ServiceMain+10f8e

FAILURE_EXCEPTION_CODE:  c000027b

FAILURE_IMAGE_NAME:  CoreMessaging.dll

BUCKET_ID_IMAGE_STR:  CoreMessaging.dll

FAILURE_MODULE_NAME:  CoreMessaging

BUCKET_ID_MODULE_STR:  CoreMessaging

FAILURE_FUNCTION_NAME:  ServiceMain

BUCKET_ID_FUNCTION_STR:  ServiceMain

BUCKET_ID_OFFSET:  10f8e

BUCKET_ID_MODTIMEDATESTAMP:  69234cdd

BUCKET_ID_MODCHECKSUM:  d4723

BUCKET_ID_MODVER_STR:  10.0.18362.10000

BUCKET_ID_PREFIX_STR:  STOWED_EXCEPTION_

FAILURE_PROBLEM_CLASS:  STOWED_EXCEPTION

FAILURE_SYMBOL_NAME:  CoreMessaging.dll!ServiceMain

TARGET_TIME:  2019-08-28T15:04:26.000Z

OSBUILD:  18362

OSSERVICEPACK:  10000

SERVICEPACK_NUMBER: 0

OS_REVISION: 0

SUITE_MASK:  256

PRODUCT_TYPE:  1

OSPLATFORM_TYPE:  x64

OSNAME:  Windows 10

OSEDITION:  Windows 10 WinNt SingleUserTS

USER_LCID:  0

OSBUILD_TIMESTAMP:  unknown_date

BUILDDATESTAMP_STR:  190621-1123

BUILDLAB_STR:  19h1_release_svc_19h2_rel

BUILDOSVER_STR:  10.0.18362.10000.amd64fre.19h1_release_svc_19h2_rel.190621-1123

ANALYSIS_SESSION_ELAPSED_TIME:  5778

ANALYSIS_SOURCE:  UM

FAILURE_ID_HASH_STRING:  um:stowed_exception_c000027b_coremessaging.dll!servicemain

FAILURE_ID_HASH:  {b2a6b274-5eff-3437-493d-910868b92d52}

Followup:     MachineOwner
---------
@beevvy commented on GitHub (Aug 28, 2019): I'm getting the same. Reproduces even with default profiles.json. Some WinDbg output below. I'm happy to share crash dump if helpful. ```This dump file has an exception of interest stored in it. The stored exception information can be accessed via .ecxr. (6c60.2ea0): Unknown exception - code c000027b (first/second chance not available) For analysis of this file, run !analyze -v KERNELBASE!RaiseFailFastException+0xaf: 00007ffd`fb56f65f 0f1f440000 nop dword ptr [rax+rax] 0:000> !analyze -v ******************************************************************************* * * * Exception Analysis * * * ******************************************************************************* *** WARNING: Unable to verify checksum for TerminalControl.dll *** WARNING: Unable to verify checksum for TerminalConnection.dll KEY_VALUES_STRING: 1 Key : Analysis.CPU.Sec Value: 2 Key : Analysis.Elapsed.Sec Value: 22 Key : Analysis.Memory.CommitPeak.Mb Value: 141 Key : Timeline.Process.Start.DeltaSec Value: 10 PROCESSES_ANALYSIS: 1 SERVICE_ANALYSIS: 1 STACKHASH_ANALYSIS: 1 TIMELINE_ANALYSIS: 1 Timeline: !analyze.Start Name: <blank> Time: 2019-08-28T15:20:55.325Z Diff: 989325 mSec Timeline: Dump.Current Name: <blank> Time: 2019-08-28T15:04:26.0Z Diff: 0 mSec Timeline: Process.Start Name: <blank> Time: 2019-08-28T15:04:16.0Z Diff: 10000 mSec DUMP_CLASS: 2 DUMP_QUALIFIER: 400 MODLIST_WITH_TSCHKSUM_HASH: a4b5ca11c2388731ad01697af84b4391917838e6 MODLIST_SHA1_HASH: 0aa159ec20b763617b58e888f99daed202ff21ee NTGLOBALFLAG: 0 PROCESS_BAM_CURRENT_THROTTLED: 0 PROCESS_BAM_PREVIOUS_THROTTLED: 0 APPLICATION_VERIFIER_FLAGS: 0 DUMP_FLAGS: 94 DUMP_TYPE: 1 CONTEXT: (.ecxr) rax=000000bcb2dcebe0 rbx=000000bcb2dcf190 rcx=000000bcb2dcebe0 rdx=0000000000000000 rsi=0000000000000002 rdi=000000bcb2dcebe0 rip=00007ffdfb56f65f rsp=000000bcb2dceb00 rbp=000000bcb2dcf1d0 r8=0000000000000000 r9=0000000000000000 r10=000000000000000c r11=000000bcb2dcf190 r12=0000000000000004 r13=00007ffdf7aa8cd0 r14=0000000000000000 r15=0000000000000000 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`fb56f65f 0f1f440000 nop dword ptr [rax+rax] Resetting default scope FAULTING_IP: CoreMessaging!ServiceMain+10f8e 00007ffd`f7a6fe7e 90 nop EXCEPTION_RECORD: (.exr -1) ExceptionAddress: 00007ffdf7a6fe7e (CoreMessaging!ServiceMain+0x0000000000010f8e) ExceptionCode: c000027b ExceptionFlags: 00000001 NumberParameters: 2 Parameter[0]: 000002a283efe8d0 Parameter[1]: 0000000000000001 DEFAULT_BUCKET_ID: STOWED_EXCEPTION PROCESS_NAME: WindowsTerminal.exe BUGCHECK_STR: STOWED_EXCEPTION ERROR_CODE: (NTSTATUS) 0xc000027b - An application-internal exception has occurred. EXCEPTION_CODE: (NTSTATUS) 0xc000027b - An application-internal exception has occurred. EXCEPTION_CODE_STR: c000027b EXCEPTION_PARAMETER1: 000002a283efe8d0 EXCEPTION_PARAMETER2: 0000000000000001 WATSON_BKT_PROCSTAMP: 5d641823 WATSON_BKT_PROCVER: 1.0.1908.26002 WATSON_BKT_MODULE: CoreMessaging.dll WATSON_BKT_MODSTAMP: 69234cdd WATSON_BKT_MODOFFSET: 5fe7e WATSON_BKT_MODVER: 10.0.18362.10000 MODULE_VER_PRODUCT: Microsoft® Windows® Operating System BUILD_VERSION_STRING: 18362.10000.amd64fre.19h1_release_svc_19h2_rel.190621-1123 ANALYSIS_SESSION_HOST: DESKTOP-IGJHBQM ANALYSIS_SESSION_TIME: 08-28-2019 17:20:55.0325 ANALYSIS_VERSION: 10.0.18914.1001 amd64fre THREAD_ATTRIBUTES: OS_LOCALE: ENU PRIMARY_PROBLEM_CLASS: STOWED_EXCEPTION PROBLEM_CLASSES: ID: [0n258] Type: [STOWED_EXCEPTION] Class: Primary Scope: DEFAULT_BUCKET_ID (Failure Bucket ID prefix) BUCKET_ID Name: Add Data: Omit PID: [Unspecified] TID: [Unspecified] Frame: [0] LAST_CONTROL_TRANSFER: from 00007ffdfd40812b to 00007ffdfb56f65f STACK_TEXT: 000000bc`b2dceb00 00007ffd`fd40812b : 000002a2`801856b8 00007ffd`fd5043d0 000002a2`801856b8 00007ffd`fd5043d0 : KERNELBASE!RaiseFailFastException+0xaf 000000bc`b2dcf0d0 00007ffd`f7a6fe7e : 000002a2`7d79d470 000000bc`b2dcf388 00000000`00000000 00007ffd`fd493130 : combase!RoFailFastWithErrorContextInternal2+0x47b 000000bc`b2dcf3b0 00007ffd`f7a1bd46 : 000002a2`7d708520 000002a2`83ed4440 000002a2`7d708520 000002a2`83ed4440 : CoreMessaging!ServiceMain+0x10f8e 000000bc`b2dcf3e0 00007ffd`f7a1ae8d : 00000000`00000246 000002a2`7d708770 000002a2`83ed4440 000002a2`801031d0 : CoreMessaging+0xbd46 000000bc`b2dcf460 00007ffd`f7a1a818 : 000002a2`801031d0 000002a2`8012e860 000002a2`801031d0 00007ffd`fe49fbbc : CoreMessaging+0xae8d 000000bc`b2dcf510 00007ffd`f7a21108 : 00000000`0000000c 000002a2`7d673980 000002a2`7d673980 00000000`0000000c : CoreMessaging+0xa818 000000bc`b2dcf580 00007ffd`f7a20491 : 000002a2`7d6339a0 000000bc`b2dcf6b8 000002a2`7d70d600 000002a2`7d674830 : CoreMessaging+0x11108 000000bc`b2dcf660 00007ffd`f7a1fd99 : 000002a2`7d674830 000002a2`7d713210 000002a2`7d663250 000002a2`7fb8cac0 : CoreMessaging+0x10491 000000bc`b2dcf750 00007ffd`f7a1fbcb : 00000000`00000005 000002a2`7d713210 00000000`00000000 000000bc`40000c02 : CoreMessaging+0xfd99 000000bc`b2dcf830 00007ffd`fe29681d : 00000000`00000002 00000000`80000022 00000000`00000001 00000000`00000000 : CoreMessaging+0xfbcb 000000bc`b2dcf860 00007ffd`fe2963ec : 00000000`00008388 00007ffd`f7a1fb30 00000000`00141218 00000000`80000000 : user32!UserCallWinProcCheckWow+0x2bd 000000bc`b2dcf9f0 00007ffd`fe2a2d03 : 00000000`00000000 00000000`00000000 00000000`00000005 00000000`00000000 : user32!DispatchClientMessage+0x9c 000000bc`b2dcfa50 00007ffd`fe4ffdb4 : 00007ffd`e75e1b20 00000000`004a0342 00000000`00000246 00000000`20260001 : user32!_fnDWORD+0x33 000000bc`b2dcfab0 00007ffd`fc1c1164 : 00007ffd`fe2a477d 00000000`20260001 00000000`01fb0283 00000000`00000001 : ntdll!KiUserCallbackDispatcherContinue 000000bc`b2dcfb38 00007ffd`fe2a477d : 00000000`20260001 00000000`01fb0283 00000000`00000001 000002a2`00000001 : win32u!NtUserGetMessage+0x14 000000bc`b2dcfb40 00007ff6`df2444f9 : 00000000`00000000 00000000`00000005 00000000`00000000 000002a2`7d604a4a : user32!GetMessageW+0x2d 000000bc`b2dcfba0 00007ff6`df24c592 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : WindowsTerminal+0x44f9 000000bc`b2dcfc30 00007ffd`fe147bd4 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : WindowsTerminal+0xc592 000000bc`b2dcfc70 00007ffd`fe4cce71 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0x14 000000bc`b2dcfca0 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21 THREAD_SHA1_HASH_MOD_FUNC: 9cc0cae5ca90c93972d4405ebd6e1c96ed5f801c THREAD_SHA1_HASH_MOD_FUNC_OFFSET: 37f8fd4fa9ab6361f827389333fe48e92d9ce219 THREAD_SHA1_HASH_MOD: dbb9672a3645b64ada578b1948fb2575724804a8 FOLLOWUP_IP: CoreMessaging!ServiceMain+10f8e 00007ffd`f7a6fe7e 90 nop FAULT_INSTR_CODE: fd2ae990 SYMBOL_STACK_INDEX: 2 SYMBOL_NAME: CoreMessaging!ServiceMain+10f8e FOLLOWUP_NAME: MachineOwner MODULE_NAME: CoreMessaging IMAGE_NAME: CoreMessaging.dll DEBUG_FLR_IMAGE_TIMESTAMP: 69234cdd STACK_COMMAND: ~0s ; .ecxr ; kb FAILURE_BUCKET_ID: STOWED_EXCEPTION_c000027b_CoreMessaging.dll!ServiceMain BUCKET_ID: STOWED_EXCEPTION_CoreMessaging!ServiceMain+10f8e FAILURE_EXCEPTION_CODE: c000027b FAILURE_IMAGE_NAME: CoreMessaging.dll BUCKET_ID_IMAGE_STR: CoreMessaging.dll FAILURE_MODULE_NAME: CoreMessaging BUCKET_ID_MODULE_STR: CoreMessaging FAILURE_FUNCTION_NAME: ServiceMain BUCKET_ID_FUNCTION_STR: ServiceMain BUCKET_ID_OFFSET: 10f8e BUCKET_ID_MODTIMEDATESTAMP: 69234cdd BUCKET_ID_MODCHECKSUM: d4723 BUCKET_ID_MODVER_STR: 10.0.18362.10000 BUCKET_ID_PREFIX_STR: STOWED_EXCEPTION_ FAILURE_PROBLEM_CLASS: STOWED_EXCEPTION FAILURE_SYMBOL_NAME: CoreMessaging.dll!ServiceMain TARGET_TIME: 2019-08-28T15:04:26.000Z OSBUILD: 18362 OSSERVICEPACK: 10000 SERVICEPACK_NUMBER: 0 OS_REVISION: 0 SUITE_MASK: 256 PRODUCT_TYPE: 1 OSPLATFORM_TYPE: x64 OSNAME: Windows 10 OSEDITION: Windows 10 WinNt SingleUserTS USER_LCID: 0 OSBUILD_TIMESTAMP: unknown_date BUILDDATESTAMP_STR: 190621-1123 BUILDLAB_STR: 19h1_release_svc_19h2_rel BUILDOSVER_STR: 10.0.18362.10000.amd64fre.19h1_release_svc_19h2_rel.190621-1123 ANALYSIS_SESSION_ELAPSED_TIME: 5778 ANALYSIS_SOURCE: UM FAILURE_ID_HASH_STRING: um:stowed_exception_c000027b_coremessaging.dll!servicemain FAILURE_ID_HASH: {b2a6b274-5eff-3437-493d-910868b92d52} Followup: MachineOwner --------- ```
Author
Owner

@beevvy commented on GitHub (Aug 28, 2019):

This is a regression from v0.3.

@beevvy commented on GitHub (Aug 28, 2019): This is a regression from v0.3.
Author
Owner

@carlos-zamora commented on GitHub (Aug 28, 2019):

Oh boy. Yeah I got a repro. Here's the call stack:

 	TerminalControl.dll!wil::details::WilDynamicLoadRaiseFailFastException(_EXCEPTION_RECORD * er, _CONTEXT * cr, unsigned long flags) Line 1731	C++
 	TerminalControl.dll!wil::details::WilRaiseFailFastException(_EXCEPTION_RECORD * er, _CONTEXT * cr, unsigned long flags) Line 1671	C++
 	TerminalControl.dll!wil::details::WilFailFast(const wil::FailureInfo & failure) Line 3352	C++
 	TerminalControl.dll!wil::details::ReportFailure(void * callerReturnAddress, unsigned int lineNumber, const char * fileName, const char * functionName, const char * code, void * returnAddress, wil::FailureType type, HRESULT hr, const wchar_t * message, wil::details::ReportFailureOptions options) Line 3373	C++
 	TerminalControl.dll!wil::details::ReportFailure_Hr(void * callerReturnAddress, unsigned int lineNumber, const char * fileName, const char * functionName, const char * code, void * returnAddress, wil::FailureType type, HRESULT hr) Line 3451	C++
 	TerminalControl.dll!wil::details::in1diag5::_FailFast_Hr(void * callerReturnAddress, unsigned int lineNumber, const char * fileName, const char * functionName, const char * code, HRESULT hr) Line 4287	C++
 	TerminalControl.dll!wil::details::in1diag5::FailFast_IfFailed(void * callerReturnAddress, unsigned int lineNumber, const char * fileName, const char * functionName, const char * code, HRESULT hr) Line 4319	C++
 	TerminalControl.dll!Microsoft::Console::Render::DxEngine::Present() Line 836	C++
 	TerminalControl.dll!Microsoft::Console::Render::Renderer::_PaintFrameForEngine(Microsoft::Console::Render::IRenderEngine * const pEngine) Line 130	C++
 	TerminalControl.dll!Microsoft::Console::Render::Renderer::PaintFrame() Line 65	C++
 	TerminalControl.dll!Microsoft::Console::Render::RenderThread::_ThreadProc() Line 165	C++
>	TerminalControl.dll!Microsoft::Console::Render::RenderThread::s_ThreadProc(void * lpParameter) Line 148	C++
@carlos-zamora commented on GitHub (Aug 28, 2019): Oh boy. Yeah I got a repro. Here's the call stack: ``` TerminalControl.dll!wil::details::WilDynamicLoadRaiseFailFastException(_EXCEPTION_RECORD * er, _CONTEXT * cr, unsigned long flags) Line 1731 C++ TerminalControl.dll!wil::details::WilRaiseFailFastException(_EXCEPTION_RECORD * er, _CONTEXT * cr, unsigned long flags) Line 1671 C++ TerminalControl.dll!wil::details::WilFailFast(const wil::FailureInfo & failure) Line 3352 C++ TerminalControl.dll!wil::details::ReportFailure(void * callerReturnAddress, unsigned int lineNumber, const char * fileName, const char * functionName, const char * code, void * returnAddress, wil::FailureType type, HRESULT hr, const wchar_t * message, wil::details::ReportFailureOptions options) Line 3373 C++ TerminalControl.dll!wil::details::ReportFailure_Hr(void * callerReturnAddress, unsigned int lineNumber, const char * fileName, const char * functionName, const char * code, void * returnAddress, wil::FailureType type, HRESULT hr) Line 3451 C++ TerminalControl.dll!wil::details::in1diag5::_FailFast_Hr(void * callerReturnAddress, unsigned int lineNumber, const char * fileName, const char * functionName, const char * code, HRESULT hr) Line 4287 C++ TerminalControl.dll!wil::details::in1diag5::FailFast_IfFailed(void * callerReturnAddress, unsigned int lineNumber, const char * fileName, const char * functionName, const char * code, HRESULT hr) Line 4319 C++ TerminalControl.dll!Microsoft::Console::Render::DxEngine::Present() Line 836 C++ TerminalControl.dll!Microsoft::Console::Render::Renderer::_PaintFrameForEngine(Microsoft::Console::Render::IRenderEngine * const pEngine) Line 130 C++ TerminalControl.dll!Microsoft::Console::Render::Renderer::PaintFrame() Line 65 C++ TerminalControl.dll!Microsoft::Console::Render::RenderThread::_ThreadProc() Line 165 C++ > TerminalControl.dll!Microsoft::Console::Render::RenderThread::s_ThreadProc(void * lpParameter) Line 148 C++ ```
Author
Owner

@carlos-zamora commented on GitHub (Aug 28, 2019):

Oof. Then it makes this happen in my other instance of WT:
image

@carlos-zamora commented on GitHub (Aug 28, 2019): Oof. Then it makes this happen in my other instance of WT: ![image](https://user-images.githubusercontent.com/11050425/63881518-dfda4300-c984-11e9-94f5-4eb7a8d1aec0.png)
Author
Owner

@carlos-zamora commented on GitHub (Aug 28, 2019):

Ok. Now I'm having second guesses. The above tracing is from creating selections repeatedly. #2589 is from pasting repeatedly (different call stack). But for some reason, I can't get this to occur when copying repeatedly. I tried enabling copyOnSelect to make sure it's not being caused by rendering the selection. I'm inclined to say that this is a rendering issue then, not a copy issue. BUT, I'd be happy if I were proven wrong with a crash dump.

@carlos-zamora commented on GitHub (Aug 28, 2019): Ok. Now I'm having second guesses. The above tracing is from creating selections repeatedly. #2589 is from pasting repeatedly (different call stack). But for some reason, I can't get this to occur when copying repeatedly. I tried enabling `copyOnSelect` to make sure it's not being caused by rendering the selection. I'm inclined to say that this is a rendering issue then, not a copy issue. BUT, I'd be happy if I were proven wrong with a crash dump.
Author
Owner

@beevvy commented on GitHub (Aug 28, 2019):

@carlos-zamora can I pm you a link to my crash dump? I'd rather not share it publicly.

@beevvy commented on GitHub (Aug 28, 2019): @carlos-zamora can I pm you a link to my crash dump? I'd rather not share it publicly.
Author
Owner

@carlos-zamora commented on GitHub (Aug 28, 2019):

@beevvy Don't worry about it. @DHowett-MSFT helped me track this down better. I'll create a PR and link it to this issue shortly. Sorry for the brain dump earlier!

@carlos-zamora commented on GitHub (Aug 28, 2019): @beevvy Don't worry about it. @DHowett-MSFT helped me track this down better. I'll create a PR and link it to this issue shortly. Sorry for the brain dump earlier!
Author
Owner

@ghost commented on GitHub (Sep 24, 2019):

:tada:This issue was addressed in #2590, which has now been successfully released as Windows Terminal Preview v0.5.2661.0.🎉

Handy links:

@ghost commented on GitHub (Sep 24, 2019): :tada:This issue was addressed in #2590, which has now been successfully released as `Windows Terminal Preview v0.5.2661.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v0.5.2661.0) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3605