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

Open
opened 2026-01-31 06:54:43 +00:00 by claunia · 0 comments
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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19827