Closed strangebit closed 1 year ago
I'm gonna guess this is also a window refrigeration bug.
I'd guess that the problem code is AppHost::_SystemMenuChangeRequested
not getting called to remove the old entries before refrigeration.
Oh it definitely is. TerminalWindow
only ever adds the settings entry when it gets created. AppHost
however needs to clear that old entry out before we refrigerate the HWND. The old entries end up sticking around, which is why the old entries will explode the Terminal.
Windows Terminal version
1.18.2822.0
Windows build number
10.0.19045.0
Other Software
No response
Steps to reproduce
Not sure what is triggering it unfortunately.
Expected Behavior
No response
Actual Behavior
I've noticed that sometimes, after using Terminal for some time, the right-click context menu on the titlebar ends up getting multiple
Settings
entries. When I click on one of them, Terminal crashes. When there's only one it doesn't crash; it opens the Settings panel as it should.See the video below. Again this is after using Terminal for some time, opening and closing windows, etc. I don't know how to reproduce the bug consistently.
https://github.com/microsoft/terminal/assets/11712728/4e8e324e-8934-42c0-8d48-b73f488d32fd
I've seen it before with as many as six of these
Settings
entries.The crash in the above video corresponds to this event (if it helps):
I'm not sure if it's related to my other bug report #16100.