[PR #11440] Try to fix crash on close with saving enabled #28581

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

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

State: closed
Merged: Yes


Don't crash if we try to save the window layout while we are closing, and try to avoid saving at all.

Might impact #11354

Detailed Description of the Pull Request / Additional comments

  • Revoke the event handler/save throttler so we don't even try to get the window layout when we are closing
  • Try to check for nullptrs, but then apply try {} CATCH_LOG() liberally

Validation Steps Performed

The happy path of saving normally is still fine, but I haven't been unlucky enough to trigger the crash myself.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/11440 **State:** closed **Merged:** Yes --- Don't crash if we try to save the window layout while we are closing, and try to avoid saving at all. Might impact #11354 ## Detailed Description of the Pull Request / Additional comments - Revoke the event handler/save throttler so we don't even try to get the window layout when we are closing - Try to check for nullptrs, but then apply `try {} CATCH_LOG()` liberally ## Validation Steps Performed The happy path of saving normally is still fine, but I haven't been unlucky enough to trigger the crash myself.
claunia added the pull-request label 2026-01-31 09:29:25 +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#28581