ItemsView issue
Describe the bug
• ItemsView can be made to crash by just scrolling up and down a little after adding a few hundred items. • ItemsView becomes slow as molasses when adding new items after a few hundred items.
Steps to reproduce the bug
The small test app in this repository can be used to reproduce the bugs:
Expected behavior
- No crashes
- No huge slowdown when adding items
Screenshots
It would have to be a video, not a screenshot, but it can be easily reproduced with the test app.
NuGet package version
Windows App SDK 1.5.4: 1.5.240311000
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 23H2 (22631.3737, 2024 Update)
IDE
Visual Studio 2022
Additional context
I moved this issue with ItemsView to a separate issue report so that it can be tracked separately.
I can see it becoming painfully slow, but at least it does not crash here when scrolling.
Windows 10 version 22H2 19045.4414
at least it does not crash here when scrolling.
The crashing issue only happens once in a while after adding a bunch of items. I'm not sure if it happens more frequently after adding large-ish numbers of items. I've seen it happen once with only a few hundred items and several times with over 10,000 items.
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!
Open similar issues:
- ItemsRepeater and ScrollView jumping back and forth (#9308), similarity score: 0.73
- Application hangs when scrolling (#9199), similarity score: 0.72
Closed similar issues:
- Layout Cycle Crash in ItemsRepeater inside ListViewItem (#1293), similarity score: 0.74
- CPP WinAppSDK app crashes when dragging ListView scroll bar (#7588), similarity score: 0.73
- Scrolling NavigationViewItems causes graphical glitch. (#7844), similarity score: 0.73
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
I can see it becoming painfully slow, but at least it does not crash here when scrolling.
Windows 10 version 22H2 19045.4414
I try to use ItemsView in my project, and after adding the content of more than 100 try to roll, also met the same problem, this is done by the Application. The UnhandledException event capture the exception information
Yes, it's absolutely possible to make it crash, even though it's intermittent.
Thanks for your report. We fixed the slow performance issue for the WinAppSDK 1.6 release, but could not repro the crashing issue. Could you please open a separate GitHub issue if you can repro the crash in 1.6? Thanks.
Great news! I look forward to being able to use ItemsView in 1.6. Any estimate of when it will be available as a preview so I can try it out?
Thanks,
Peter
From: Régis Brid @.> Sent: Tuesday, July 9, 2024 12:17 PM To: microsoft/microsoft-ui-xaml @.> Cc: Peter Stewart @.>; Author @.> Subject: Re: [microsoft/microsoft-ui-xaml] ItemsView issue (Issue #9767)
Thanks for your report. We fixed the slow performance issue for the WinAppSDK 1.6 release, but could not repro the crashing issue. Could you please open a separate GitHub issue if you can repro the crash in 1.6? Thanks.
— Reply to this email directly, view it on GitHub https://github.com/microsoft/microsoft-ui-xaml/issues/9767#issuecomment-2218119693 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AIW37ML2ITP3T6IARATNCODZLQEHXAVCNFSM6AAAAABKAKDG2WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJYGEYTSNRZGM . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AIW37MOGYUSZEJX2Y3RNNG3ZLQEHXA5CNFSM6AAAAABKAKDG2WWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUEGXJA2.gif Message ID: @.*** @.***> >