If WARP is not used, stdout causes a crash and leak when RDP is disconnected (deadlock in ControlCore::SizeChanged) #18134

Open
opened 2026-01-31 06:04:39 +00:00 by claunia · 0 comments
Owner

Originally created by @TGSAN on GitHub (Aug 9, 2022).

Originally assigned to: @lhecker, @zadjii-msft on GitHub.

Windows Terminal version

1.15.2002.0

Windows build number

10.0.22622.450

Other Software

ffmpeg 5.0

Steps to reproduce

  1. Use RDP(mstsc/msrdc) to connect the remote Windows (Physical graphics card already installed).
  2. (In Remote) Open Windows Terminal 1.15.2002.0
  3. (In Remote) Continuous live streaming or media format conversion using ffmpeg in Windows Terminal. (Because ffmpeg continuously outputs the current state via stdout)
  4. Disconnect RDP.
  5. Wait a while.

Expected Behavior

No response

Actual Behavior

  1. Windows Termianl and running command line programs can crash.
  2. If RDP is disconnected for a long time (e.g. several hours), it will exhaust the system resources and render the operating system unusable
  3. If "Use software rendering (WARP)" is turned on in Windows Termianl settings, this problem does not occur (it is suspected that GPU rendering tasks are piling up after RDP is disconnected, but cannot be processed)
Originally created by @TGSAN on GitHub (Aug 9, 2022). Originally assigned to: @lhecker, @zadjii-msft on GitHub. ### Windows Terminal version 1.15.2002.0 ### Windows build number 10.0.22622.450 ### Other Software ffmpeg 5.0 ### Steps to reproduce 1. Use RDP(mstsc/msrdc) to connect the remote Windows (Physical graphics card already installed). 2. (In Remote) Open Windows Terminal 1.15.2002.0 3. (In Remote) Continuous live streaming or media format conversion using ffmpeg in Windows Terminal. (Because ffmpeg continuously outputs the current state via stdout) 4. Disconnect RDP. 5. Wait a while. ### Expected Behavior _No response_ ### Actual Behavior 1. Windows Termianl and running command line programs can crash. 2. If RDP is disconnected for a long time (e.g. several hours), it will exhaust the system resources and render the operating system unusable 3. If "Use software rendering (WARP)" is turned on in Windows Termianl settings, this problem does not occur (it is suspected that GPU rendering tasks are piling up after RDP is disconnected, but cannot be processed)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18134