[PR #13778] [MERGED] Fix a crash on exit with the command palette open #29769

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13778
Author: @zadjii-msft
Created: 8/18/2022
Status: Merged
Merged: 8/19/2022
Merged by: @undefined

Base: mainHead: dev/migrie/b/msft-38775539


📝 Commits (2)

  • 41ee872 Fix a crash on exit, with the command palette open
  • a1c7e97 Update src/cascadia/TerminalApp/CommandPalette.cpp

📊 Changes

1 file changed (+7 additions, -1 deletions)

View changed files

📝 src/cascadia/TerminalApp/CommandPalette.cpp (+7 -1)

📄 Description

Fixes MSFT:38775539
Might also fix MSFT:38614563

Looking at this code should be pretty clear what's going on. On exit, the XAML root is already nulled out. But here, we're just yolo'ing and assuming it exists (why wouldn't it). So yea. This is like weirdly high percent of crashes internally, but that's not from real users. Real users, I suspect hit this as like .3% of our crashes. Not zero, but low.

  • tested manually

May also be related to...

  • MSFT:40602905
  • MSFT:40602904
  • MSFT:40412800
  • MSFT:35213459 <---has links

🔄 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/13778 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 8/18/2022 **Status:** ✅ Merged **Merged:** 8/19/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/migrie/b/msft-38775539` --- ### 📝 Commits (2) - [`41ee872`](https://github.com/microsoft/terminal/commit/41ee87235c2b728977c88197c2a02c4715fcde28) Fix a crash on exit, with the command palette open - [`a1c7e97`](https://github.com/microsoft/terminal/commit/a1c7e9755103a3c69d08daa104744df08c3eb428) Update src/cascadia/TerminalApp/CommandPalette.cpp ### 📊 Changes **1 file changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/CommandPalette.cpp` (+7 -1) </details> ### 📄 Description Fixes MSFT:38775539 Might also fix MSFT:38614563 Looking at this code should be pretty clear what's going on. On exit, the XAML root is already nulled out. But here, we're just yolo'ing and assuming it exists (why wouldn't it). So yea. This is like weirdly high percent of crashes internally, but that's not from real users. Real users, I suspect hit this as like .3% of our crashes. Not zero, but _low_. * [x] tested manually <hr> May also be related to... * MSFT:40602905 * MSFT:40602904 * MSFT:40412800 * MSFT:35213459 <---has links --- <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:47 +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#29769