microsoft-ui-xaml icon indicating copy to clipboard operation
microsoft-ui-xaml copied to clipboard

CPP WinAppSDK app crashes when dragging ListView scroll bar

Open stefansjfw opened this issue 3 years ago • 1 comments

Describe the bug

When having nested Grid in ListView.ItemTemplate (not 100% confirmed), after some ListView item is updated (any property changed) dragging ListView's scroll bar causes app to crash. This only happens when ListView has many items (> few thousands).

It sometimes crashes right away and sometimes after scrolling up and down. Check the attached gif.

Steps to reproduce the bug

  1. Clone and run https://github.com/stefansjfw/winappsdk_cpp_crash_example.git

Crashing scenario: 2. Press 'click to change the first item in the list' button 3. Dragg ListView scroll bar up and down until app crashes

Non-crashing scenario: 2. Dragg ListView scroll bar up and down and observe that app doesn't crash

Expected behavior

App doesn't crash

Screenshots

app_carsh

NuGet package version

1.1.3

Packaging type

Unpackaged

Windows version

Windows 10 version 21H1 (19043, May 2021 Update)

IDE

Visual Studio 2022

Additional context

No response

stefansjfw avatar Aug 11 '22 09:08 stefansjfw

Originally noticed as https://github.com/microsoft/PowerToys/issues/19867

stefansjfw avatar Aug 11 '22 09:08 stefansjfw

This is solved with the latest version of winappsdk 1.1.4

stefansjfw avatar Aug 17 '22 07:08 stefansjfw