SwipeControl (WUX/MUX) causes random crashes in ListView
See original GitHub issueDescribe 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
(WinUI2.4.2
)
Steps to reproduce the bug
- Download the repro: SwipeItemsCrashRepro.zip
- Build and run the app
- 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 aTextBlock
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:
- Crash dump with Windows.UI.Xaml.Controls.SwipeItems
- Crash dump with Microsoft.UI.Xaml.Controls.SwipeItems
Expected behavior
Scrolling down the list should work as expected.
Screenshots
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 |
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:13 (11 by maintainers)
Top GitHub 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! 😊