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:
SwipeControl
in its templateWindows.UI.Xaml.Controls.SwipeControl
Microsoft.UI.Xaml.Controls.SwipeControl
(WinUI 2.4.2
)Steps to reproduce the bug
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:
Expected behavior
Scrolling down the list should work as expected.
Screenshots
Version Info
NuGet package version:
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 | |
@Sergio0694 Thanks for reporting. If you have a standalone repro app that you can share, that would be helpful. Thanks!
Hey @ranjeshj, thank you for chiming in!
I've managed to create a minimal repro, I've added a link to the main post! 馃槉
Hmm.. I'm not seeing the crash with the repro app with mouse wheel scroll or touch scroll. Does it crash immediately or take a while of usage ?
Huh, that's weird. Yeah it's pretty much instantaneous for me, I can repro this 100% of the time both in my app and in the repro project I shared. You're on Windows 10 19041 too, correct?
@kikisaints Have you had a chance to try the repro to see if it crashes on your PC too?
This crashed for me right away as soon as I grabbed the scrollbar and dragged down on 19041.
Removing needs-winui-3 because I suspect this is a swipe issue and could maybe be fixed before winui3
Hey @StephenLPeters - that's amazing!
So glad to hear that, thank you for looking into this! 馃槉
Crash does not happen on 18363.836 with 18362 SDK.
Thanks @Felix-Dev!
It really looks like this crash is only happening starting from Windows 10 19041 馃
@StephenLPeters @michael-hawker If you can repro this, can you share the native callstack for the crash ?
Pinging @michael-hawker in case he missed the previous notification 馃槃
Also @kikisaints I was wondering if the two crash dumps I shared were useful?
Can't recall if I also shared them with @ranjeshj, in case I haven't and you'd like me to forward them to you just let me know!
Most helpful comment
Removing needs-winui-3 because I suspect this is a swipe issue and could maybe be fixed before winui3