Crash in Windows Terminal when copying text #6857

Open
opened 2026-01-31 00:49:01 +00:00 by claunia · 0 comments
Owner

Originally created by @Treit on GitHub (Mar 13, 2020).

While right-clicking on some selected text to copy it to the clipboard, WindowsTerminal.exe crashed.

This was with version 0.9.433.0.

WindowsTerminal10.txt

I have attached the debugger output with more details. The call stack at the time of the crash was:

TerminalApp!winrt::throw_hresult+0x1de
TerminalApp!winrt::impl::delegate<winrt::Windows::Foundation::AsyncOperationCompletedHandler<enum winrt::Windows::UI::Xaml::Controls::ContentDialogResult>,<lambda_33260d216710055959e11cc27647c577> >::Invoke+0x7d
windows_applicationmodel_datatransfer!Windows::Internal::AsyncBaseFTM<Windows::Foundation::IAsyncOperationCompletedHandler<HSTRING__ *>,1,Microsoft::WRL::AsyncOptions<-1,0,&GUID_CAUSALITY_WINDOWS_PLATFORM_ID,2> >::FireCompletion+0x219
windows_applicationmodel_datatransfer!Windows::Internal::AsyncOperation<Windows::Foundation::IAsyncOperation<HSTRING__ *>,Windows::Foundation::IAsyncOperationCompletedHandler<HSTRING__ *>,Windows::Internal::CHSTRINGResult,Windows::Internal::ComTaskPoolHandler,Windows::Internal::INilDelegate,Microsoft::WRL::AsyncOptions<-1,0,&GUID_CAUSALITY_WINDOWS_PLATFORM_ID,2> >::_AfterExecute+0xaf
windows_applicationmodel_datatransfer!Windows::Internal::AsyncOperation<Windows::Foundation::IAsyncOperation<HSTRING__ *>,Windows::Foundation::IAsyncOperationCompletedHandler<HSTRING__ *>,Windows::Internal::CHSTRINGResult,Windows::Internal::ComTaskPoolHandler,Windows::Internal::INilDelegate,Microsoft::WRL::AsyncOptions<-1,0,&GUID_CAUSALITY_WINDOWS_PLATFORM_ID,2> >::Run+0xe6
SHCore!WorkThreadManager::CThread::ThreadProc+0x2ec
SHCore!WorkThreadManager::CThread::s_ExecuteThreadProc+0x18
SHCore!<lambda_9844335fc14345151eefcc3593dd6895>::<lambda_invoker_cdecl>+0x11
kernel32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21```



Originally created by @Treit on GitHub (Mar 13, 2020). While right-clicking on some selected text to copy it to the clipboard, WindowsTerminal.exe crashed. This was with version 0.9.433.0. [WindowsTerminal10.txt](https://github.com/microsoft/terminal/files/4331615/WindowsTerminal10.txt) I have attached the debugger output with more details. The call stack at the time of the crash was: ```VCRUNTIME140!_CxxThrowException+0xad TerminalApp!winrt::throw_hresult+0x1de TerminalApp!winrt::impl::delegate<winrt::Windows::Foundation::AsyncOperationCompletedHandler<enum winrt::Windows::UI::Xaml::Controls::ContentDialogResult>,<lambda_33260d216710055959e11cc27647c577> >::Invoke+0x7d windows_applicationmodel_datatransfer!Windows::Internal::AsyncBaseFTM<Windows::Foundation::IAsyncOperationCompletedHandler<HSTRING__ *>,1,Microsoft::WRL::AsyncOptions<-1,0,&GUID_CAUSALITY_WINDOWS_PLATFORM_ID,2> >::FireCompletion+0x219 windows_applicationmodel_datatransfer!Windows::Internal::AsyncOperation<Windows::Foundation::IAsyncOperation<HSTRING__ *>,Windows::Foundation::IAsyncOperationCompletedHandler<HSTRING__ *>,Windows::Internal::CHSTRINGResult,Windows::Internal::ComTaskPoolHandler,Windows::Internal::INilDelegate,Microsoft::WRL::AsyncOptions<-1,0,&GUID_CAUSALITY_WINDOWS_PLATFORM_ID,2> >::_AfterExecute+0xaf windows_applicationmodel_datatransfer!Windows::Internal::AsyncOperation<Windows::Foundation::IAsyncOperation<HSTRING__ *>,Windows::Foundation::IAsyncOperationCompletedHandler<HSTRING__ *>,Windows::Internal::CHSTRINGResult,Windows::Internal::ComTaskPoolHandler,Windows::Internal::INilDelegate,Microsoft::WRL::AsyncOptions<-1,0,&GUID_CAUSALITY_WINDOWS_PLATFORM_ID,2> >::Run+0xe6 SHCore!WorkThreadManager::CThread::ThreadProc+0x2ec SHCore!WorkThreadManager::CThread::s_ExecuteThreadProc+0x18 SHCore!<lambda_9844335fc14345151eefcc3593dd6895>::<lambda_invoker_cdecl>+0x11 kernel32!BaseThreadInitThunk+0x14 ntdll!RtlUserThreadStart+0x21```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6857