question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SwipeControl (WUX/MUX) causes random crashes in ListView

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
StephenLPeterscommented, May 28, 2020

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

1reaction
Sergio0694commented, May 27, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Program crashes when I try to change my selected item ...
So, I have a listview and a some items in it. I keep a reference of the selected item in a variable, but...
Read more >
Layout cycle detected (crash) for some list view sizes when ...
Describe the bug I have a list view with group headers and a data ... This will choose random content and list box...
Read more >
UWP Expander controls within a listview crashes when ...
Hi, In our UWP app there's a listview that contains expander controllers (Microsoft.Toolkit.Uwp.UI.Controls Expander).
Read more >
List View crashes UE4 unless I copy objects before adding ...
So I'm trying to add an array of objects to a List View. This simple, obvious solution crashes the editor all the way...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found