Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPP WinAppSDK app crashes when dragging ListView scroll bar #7588

Closed
stefansjfw opened this issue Aug 11, 2022 · 2 comments
Closed

CPP WinAppSDK app crashes when dragging ListView scroll bar #7588

stefansjfw opened this issue Aug 11, 2022 · 2 comments

Comments

@stefansjfw
Copy link

stefansjfw commented Aug 11, 2022

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
Copy link
Author

Originally noticed as microsoft/PowerToys#19867

@btueffers btueffers transferred this issue from microsoft/WindowsAppSDK Aug 11, 2022
@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Aug 11, 2022
@stefansjfw
Copy link
Author

stefansjfw commented Aug 17, 2022

This is solved with the latest version of winappsdk 1.1.4

@ghost ghost removed the needs-triage Issue needs to be triaged by the area owners label Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants