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

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/4559
Author: @leonMSFT
Created: 2/13/2020
Status: Merged
Merged: 2/13/2020
Merged by: @undefined

Base: masterHead: dev/lelian/closetabcrash


📝 Commits (1)

  • a39e0ed throwing in the simplest fix i can think of while i ponder about what the real fix should be

📊 Changes

1 file changed (+8 additions, -5 deletions)

View changed files

📝 src/cascadia/TerminalControl/TermControl.cpp (+8 -5)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/4559 **Author:** [@leonMSFT](https://github.com/leonMSFT) **Created:** 2/13/2020 **Status:** ✅ Merged **Merged:** 2/13/2020 **Merged by:** [@undefined](undefined) **Base:** `master` ← **Head:** `dev/lelian/closetabcrash` --- ### 📝 Commits (1) - [`a39e0ed`](https://github.com/microsoft/terminal/commit/a39e0ed2d08764622c75d6510a308df7a2d639f0) throwing in the simplest fix i can think of while i ponder about what the real fix should be ### 📊 Changes **1 file changed** (+8 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalControl/TermControl.cpp` (+8 -5) </details> ### 📄 Description ## 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:12:06 +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#25834