SIGSEGV when dragging tabs in DirectUI::ListViewBase::OnDragGesture #19830

Closed
opened 2026-01-31 06:54:46 +00:00 by claunia · 1 comment
Owner

Originally created by @lhecker on GitHub (May 5, 2023).

Internal ticket: MSFT-44200802

This crash occurs because OnDragGesture schedules a callback to run when the drag operation ends but fails to check if the DXamlCore 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 its DXamlCore at some random later point. The crash rate seems to be about ~25%, which is really not good.

Originally created by @lhecker on GitHub (May 5, 2023). Internal ticket: MSFT-44200802 This crash occurs because `OnDragGesture` schedules a callback to run when the drag operation ends but fails to check if the `DXamlCore` 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 its `DXamlCore` at some random later point. The crash rate seems to be about ~25%, which is really not good.
Author
Owner

@lhecker commented on GitHub (May 5, 2023):

Argh I forgot we had opened #15271. Will close this one and update #15271.

@lhecker commented on GitHub (May 5, 2023): Argh I forgot we had opened #15271. Will close this one and update #15271.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19830