[PR #13777] Fix a crash in _WritePseudoWindowCallback #29761

Open
opened 2026-01-31 09:36:45 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/13777

State: closed
Merged: Yes


Fixes MSFT:40853556

There's a small race here. The renderer thread in ConPTY might notice the terminal is gone, call CloseOutput, and release the vt renderer, and then the window proc fires and decides to minimize/restore the window, triggering an A/V.

I'm 100% confident that this has NEVER happened to a real user. But the test labs hit it so much that it makes up ~26% of our crashes.

I haven't tested this cause again, it doesn't hit in the wild

**Original Pull Request:** https://github.com/microsoft/terminal/pull/13777 **State:** closed **Merged:** Yes --- Fixes MSFT:40853556 There's a small race here. The renderer thread in ConPTY might notice the terminal is gone, call CloseOutput, and release the vt renderer, and then the window proc fires and decides to minimize/restore the window, triggering an A/V. I'm 100% confident that this has NEVER happened to a real user. But the test labs hit it so much that it makes up ~26% of our crashes. I haven't tested this cause again, _it doesn't hit in the wild_
claunia added the pull-request label 2026-01-31 09:36:45 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#29761