[PR #10260] [MERGED] Don't throw in GetProposedDimensions #27966

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10260
Author: @zadjii-msft
Created: 5/28/2021
Status: Merged
Merged: 5/28/2021
Merged by: @undefined

Base: mainHead: dev/migrie/b/10211-crash-maybe


📝 Commits (3)

  • 74ce24a No way to repro this, but hopefully this should fix #10211
  • 81a9f81 Verify that this actually does work, by throwing an exception in NearybyCollection, @dhowett
  • 8b4c7f8 Update src/renderer/dx/DxFontRenderData.cpp

📊 Changes

3 files changed (+68 additions, -50 deletions)

View changed files

📝 src/cascadia/TerminalControl/TermControl.cpp (+4 -2)
📝 src/renderer/dx/DxFontRenderData.cpp (+62 -47)
📝 src/renderer/dx/DxFontRenderData.h (+2 -1)

📄 Description

I cannot for the life of me repro the original bug. I've got fonts with bad permissions SxS, I've tried installing a font twice, I've tried stopping the font cache service. No idea how to manually repro the original bug.

BUT theoretically, this function should never throw. So lets just switch this to a LOG_IF_FAILED, and hope that this goes away?

  • Fixes #10211?
  • built & ran manually.

Unclear if this can get cherry-picked trivially to 1.8. Code's pretty trivial though so if we need another PR for that, it can be arranged.


🔄 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/10260 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 5/28/2021 **Status:** ✅ Merged **Merged:** 5/28/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/migrie/b/10211-crash-maybe` --- ### 📝 Commits (3) - [`74ce24a`](https://github.com/microsoft/terminal/commit/74ce24a71ecf5957b29a5062a1f9f47d13ac6e7e) No way to repro this, but hopefully this should fix #10211 - [`81a9f81`](https://github.com/microsoft/terminal/commit/81a9f8198223ab28e44b14ea914335a338410e84) Verify that this actually does work, by throwing an exception in NearybyCollection, @dhowett - [`8b4c7f8`](https://github.com/microsoft/terminal/commit/8b4c7f81cbb5958f40a512687fcdf1dc28e212d5) Update src/renderer/dx/DxFontRenderData.cpp ### 📊 Changes **3 files changed** (+68 additions, -50 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalControl/TermControl.cpp` (+4 -2) 📝 `src/renderer/dx/DxFontRenderData.cpp` (+62 -47) 📝 `src/renderer/dx/DxFontRenderData.h` (+2 -1) </details> ### 📄 Description I cannot for the life of me repro the original bug. I've got fonts with bad permissions SxS, I've tried installing a font twice, I've tried stopping the font cache service. No idea how to manually repro the original bug. BUT theoretically, this function should never throw. So lets just switch this to a `LOG_IF_FAILED`, and hope that this goes away? * [x] Fixes #10211? * [x] built & ran manually. Unclear if this can get cherry-picked trivially to 1.8. Code's pretty trivial though so if we need another PR for that, it can be arranged. --- <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:25:26 +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#27966