microsoft-ui-xaml: SwipeControl (WUX/MUX) causes random crashes in ListView

Describe the bug

Scrolling down a ListView with a large number of items, each having a SwipeControl in its template, randomly triggers a crash. By “randomly” I mean the crash happens when scrolling, at some point, which varies every time. The same crash happens with:

  • A custom control which has the SwipeControl in its template
  • The Windows.UI.Xaml.Controls.SwipeControl
  • The Microsoft.UI.Xaml.Controls.SwipeControl (WinUI 2.4.2)

Steps to reproduce the bug

  1. Download the repro: SwipeItemsCrashRepro.zip
  2. Build and run the app
  3. Scroll to the bottom, and eventually back up

NOTE: the repro uses the MarkdownTextBlock from the toolkit, which for some reason causes the crash to happen much more rapidly. Replacing it with just a TextBlock still causes the crash, but you then need to scroll up and down for quite a bit before observing the crash, for some reason.

I also prepared two crash dumps, one with the WUX control and one with the MUX one:

Expected behavior

Scrolling down the list should work as expected.

Screenshots

XT7xwwFwJm

Version Info

NuGet package version:

  • Microsoft.UI.Xaml 2.4.0
Windows 10 version Saw the problem?
Insider Build (19041.264) Yes
November 2019 Update (18363)
May 2019 Update (18362)
October 2018 Update (17763)
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Device form factor Saw the problem?
Desktop Yes
Mobile
Xbox
Surface Hub
IoT

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 2
  • Comments: 15 (12 by maintainers)

Most upvoted comments

Removing needs-winui-3 because I suspect this is a swipe issue and could maybe be fixed before winui3

Hey @ranjeshj, thank you for chiming in! I’ve managed to create a minimal repro, I’ve added a link to the main post! 😊

@Sergio0694 Thanks for reporting. If you have a standalone repro app that you can share, that would be helpful. Thanks!