Windows Terminal deadlock/lockleak after startup. #22976

Closed
opened 2026-01-31 08:28:57 +00:00 by claunia · 2 comments
Owner

Originally created by @YexuanXiao on GitHub (Feb 27, 2025).

Windows Terminal version

1.23.10353

Windows build number

27788

Steps to reproduce

My computer pops up a Windows Terminal window upon startup, which becomes unresponsive and freezes. This has happened twice now, with the previous occurrence happening a few days ago. I attached to the process in VS, paused the program to check where it was blocked, and found that a lock is waiting and has never been notified within TerminalConnection.dll.

Image

Image

Image

Originally created by @YexuanXiao on GitHub (Feb 27, 2025). ### Windows Terminal version 1.23.10353 ### Windows build number 27788 ### Steps to reproduce My computer pops up a Windows Terminal window upon startup, which becomes unresponsive and freezes. This has happened twice now, with the previous occurrence happening a few days ago. I attached to the process in VS, paused the program to check where it was blocked, and found that a lock is waiting and has never been notified within TerminalConnection.dll. ![Image](https://github.com/user-attachments/assets/917f088a-0b91-428f-85b2-0be6af74bd93) ![Image](https://github.com/user-attachments/assets/4725d729-81ca-4446-9f94-69b5bc4416b0) ![Image](https://github.com/user-attachments/assets/ac67bc18-69fc-442c-add6-5ac41c062564)
Author
Owner

@shaymuiruri commented on GitHub (Feb 27, 2025):

Some suggestions on solving this,

  1. Update your windows.
  2. Go to the call stack and analyze, it maybe you are having shared resources that multiple threads are trying to access simultaneously.
  3. Try repairing windows or re-setting the windows
@shaymuiruri commented on GitHub (Feb 27, 2025): Some suggestions on solving this, 1. Update your windows. 2. Go to the call stack and analyze, it maybe you are having shared resources that multiple threads are trying to access simultaneously. 3. Try repairing windows or re-setting the windows
Author
Owner

@GOATS2K commented on GitHub (Mar 4, 2025):

I can confirm this is also happening for me on Windows 11 24H2, on version 1.21.10351.0 - with the exact same call stack according to x64dbg. It also happened to unfreeze itself after I closed a game that was open, possibly related to #18040.

@GOATS2K commented on GitHub (Mar 4, 2025): I can confirm this is also happening for me on Windows 11 24H2, on version 1.21.10351.0 - with the exact same call stack according to x64dbg. It also happened to unfreeze itself after I closed a game that was open, possibly related to #18040.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22976