[PR #4559] Fix crash when closing a ton of tabs at once #25839

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

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

State: closed
Merged: Yes


Summary of the Pull Request

The issue seems to be how SwapChainScaleChanged gets fired and attempts to tell the renderer
to UpdateDPI when the renderer is gone. So, as a quick bandaid, we'll put a quick check to only do the thing if the renderer is alive.

PR Checklist

Validation Steps Performed

Held my new tab button for about thirty seconds then held the close tab button until all tabs closed without a crash.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/4559 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request The issue seems to be how `SwapChainScaleChanged` gets fired and attempts to tell the renderer to `UpdateDPI` when the renderer is gone. So, as a quick bandaid, we'll put a quick check to only do the thing if the renderer is alive. ## PR Checklist * [x] Closes #4539 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [x] Tests added/passed ## Validation Steps Performed Held my new tab button for about thirty seconds then held the close tab button until all tabs closed without a crash.
claunia added the pull-request label 2026-01-31 09:12:09 +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#25839