microsoft / microsoft/terminal
Windows Terminal crashes when copying text to clipboard
- Dominant language
- C++
- Stars
- 105k
- Forks
- 9.6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 29
Description
### Windows Terminal version
1.22.12111.0
### Windows build number
10.0.26100.4946
### Other Software
_No response_
### Steps to reproduce
Mark multiple lines of text in cmd window with the mouse.
Then press Enter.
Instead of copying to clipboard and removing the white background (indicating the marked text), Windows Terminal closes all of its windows. In the Event Viewer I see the following error report:
Log Name: Application
Source: Application Error
Date: 25/08/2025 16:42:24
Event ID: 1000
Task Category: Application Crashing Events
Level: Error
Keywords:
User: ELIZ-PC\EliZ
Computer: EliZ-PC
Description:
Faulting application name: WindowsTerminal.exe, version: 1.22.2507.30001, time stamp: 0x688a554b
Faulting module name: Windows.UI.Xaml.dll, version: 10.0.26100.4946, time stamp: 0x4374ba0f
Exception code: 0xc000027b
Fault offset: 0x0000000000903d13
Faulting process id: 0xA80
Faulting application start time: 0x1DC15C511C1B9CE
Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.22.12111.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe
Faulting module path: C:\Windows\System32\Windows.UI.Xaml.dll
Report Id: cdcc3dbd-cbe4-4798-bd67-4c1c7229dfbd
Faulting package full name: Microsoft.WindowsTerminal_1.22.12111.0_x64__8wekyb3d8bbwe
Faulting package-relative application ID: App
Event Xml:
1000
0
2
100
0
0x8000000000000000
34107
Application
EliZ-PC
WindowsTerminal.exe
1.22.2507.30001
688a554b
Windows.UI.Xaml.dll
10.0.26100.4946
4374ba0f
c000027b
0000000000903d13
0xa80
0x1dc15c511c1b9ce
C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.22.12111.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe
C:\Windows\System32\Windows.UI.Xaml.dll
cdcc3dbd-cbe4-4798-bd67-4c1c7229dfbd
Microsoft.WindowsTerminal_1.22.12111.0_x64__8wekyb3d8bbwe
App
### Expected Behavior
I expect that the text be copied to clipboard and the Windows Terminal keeps running.
### Actual Behavior
Windows Terminal crashed and closed all of its windows.
Contributor guide
Research direction
Start by reproducing the crash in a cmd window with Windows Terminal 1.22.12111.0 on Windows build 10.0.26100.4946: mark multiple lines and press Enter. No source file or test is named; use the reported Windows.UI.Xaml.dll crash details to locate the affected clipboard path, then verify that copying leaves the terminal running and add or update coverage if the repository provides it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100