[PR #15451] AGAIN, intentionally leak our App, so that we DON'T crash on exit #30638

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

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

State: closed
Merged: Yes


This is a resurrection of #5629. As it so happens, this crash-on-exit was not specific to my laptop. It's a bug in the XAML platform somewhere, only on Windows 10.

In #14843, we moved this leak into becomeMonarch. Turns out, we don't just need this leak for the monarch process, but for all of them.

It's not a real "leak", because ultimately, our App lives for the entire lifetime of our process, and then gets cleaned up when we do. But dtoring the App - that's apparently a no-no.

Was originally in #15424, but I'm pulling it out for a super-hotfix release.

Closes #15410

MSFT:35761869 looks like it was closed as no repro many moons ago. This should close out our hits there (firmly 40% of the crashes we've gotten on 1.18)

**Original Pull Request:** https://github.com/microsoft/terminal/pull/15451 **State:** closed **Merged:** Yes --- This is a resurrection of #5629. As it so happens, this crash-on-exit was _not_ specific to my laptop. It's a bug in the XAML platform somewhere, only on Windows 10. In #14843, we moved this leak into `becomeMonarch`. Turns out, we don't just need this leak for the monarch process, but for all of them. It's not a real "leak", because ultimately, our `App` lives for the entire lifetime of our process, and then gets cleaned up when we do. But `dtor`ing the `App` - that's apparently a no-no. Was originally in #15424, but I'm pulling it out for a super-hotfix release. Closes #15410 MSFT:35761869 looks like it was closed as no repro many moons ago. This should close out our hits there (firmly **40% of the crashes we've gotten on 1.18**)
claunia added the pull-request label 2026-01-31 09:42:01 +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#30638