[PR #13857] [MERGED] Attempt to fix the _refreshSizeUnderLock crash #29785

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13857
Author: @zadjii-msft
Created: 8/26/2022
Status: Merged
Merged: 8/29/2022
Merged by: @undefined

Base: mainHead: dev/migrie/b/12176-_refreshSizeUnderLock-attempt-1


📝 Commits (1)

  • 95c9a88 Attempt to fix the _refreshSizeUnderLock crash

📊 Changes

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

View changed files

📝 src/cascadia/TerminalControl/ControlCore.cpp (+5 -0)

📄 Description

See https://github.com/microsoft/terminal/issues/12176#issuecomment-1199488906, and MSFT:39723014.

I have literally no idea how to repro this one, or debug it. The dump I looked at looked like there was a SwapChainScaleChanged that was being dispatched as the app was tearing down. The ControlCore had started closing, but the TermControl hadn't yet. Apparently, just none of the _refreshSizeUnderLock callers checked if we were already closing.

All the callers appear to be on the main thread.

Closes #12176

Since there's no real way for me to repro this manually, I'm thinking we fire this fix off to the OS terminal build, where we'll pretty quickly be able to see if this fixed it or not.


🔄 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/13857 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 8/26/2022 **Status:** ✅ Merged **Merged:** 8/29/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/migrie/b/12176-_refreshSizeUnderLock-attempt-1` --- ### 📝 Commits (1) - [`95c9a88`](https://github.com/microsoft/terminal/commit/95c9a88e0cd28d9f4527bfeebd22208ccdd56aa5) Attempt to fix the _refreshSizeUnderLock crash ### 📊 Changes **1 file changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalControl/ControlCore.cpp` (+5 -0) </details> ### 📄 Description See https://github.com/microsoft/terminal/issues/12176#issuecomment-1199488906, and MSFT:39723014. I have literally no idea how to repro this one, or debug it. The dump I looked at looked like there was a `SwapChainScaleChanged` that was being dispatched as the app was tearing down. The `ControlCore` had started closing, but the `TermControl` hadn't yet. Apparently, just none of the `_refreshSizeUnderLock` callers checked if we were already closing. All the callers appear to be on the main thread. Closes #12176 Since there's no real way for me to repro this manually, I'm thinking we fire this fix off to the OS terminal build, where we'll pretty quickly be able to see if this fixed it or not. --- <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:36:53 +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#29785