SIGSEGV when dragging tabs in DirectUI::ListViewBase::OnDragGesture #15271
Labels
Area-Windowing
Window frame, quake mode, tearout
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Priority-1
A description (P1)
Product-Terminal
The new Windows Terminal.
Severity-Blocking
We won't ship a release like this! No-siree.
Tracking-External
This bug isn't resolved, but it's following an external workitem.
Milestone
Internal ticket: MSFT-44200802
This crash occurs because
OnDragGesture
schedules a callback to run when the drag operation ends but fails to check if theDXamlCore
instance is already gone (=nullptr
). This leads to random crashes when dragging the last remaining tab of a window into a different window, because closing a window means destroying itsDXamlCore
at some random later point. The crash rate seems to be about ~25%, which is really not good.The full stack trace:
Originally posted by @lhecker in #15231 (comment)
The text was updated successfully, but these errors were encountered: