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

Nested ObservableCollection crashes when removing item #9868

Closed
WillyWoe opened this issue Aug 1, 2024 · 1 comment
Closed

Nested ObservableCollection crashes when removing item #9868

WillyWoe opened this issue Aug 1, 2024 · 1 comment
Labels
area-Lists ListView, GridView, ListBox, etc bug Something isn't working closed-Fixed Described behavior has been fixed. team-Controls Issue for the Controls team
Milestone

Comments

@WillyWoe
Copy link

WillyWoe commented Aug 1, 2024

Describe the bug

When removing an item in a nested ObservableCollection, tha app crashes with System.ArgumentOutOfRangeException: 'This collection cannot work with indices larger than Int32.MaxValue - 1 (0x7FFFFFFF - 1). (Parameter 'index')'

I attached a small example that reproduces the bug
Example.zip

the example consists of 2 ItemsView, one represents the headers and the second represents the details of the selected header.

Steps to reproduce the bug

  1. Click on Add Header
  2. Select Header 0
  3. Click on Add Detail
  4. Click on Add Detail again
  5. Select Detail 1
  6. Click on Remove Detail
  7. Select Detail 0
  8. Click on Remove Detail
  9. App crashes
Recording.2024-08-01.mp4

Expected behavior

App does not crash when an item is removed

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.5.5: 1.5.240627000

Windows version

Windows 11 (22H2): Build 22621, Windows 10 (20H2): Build 19042

Additional context

No response

@WillyWoe WillyWoe added the bug Something isn't working label Aug 1, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Aug 1, 2024
@codendone codendone added area-Lists ListView, GridView, ListBox, etc team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Aug 7, 2024
@llongley llongley closed this as not planned Won't fix, can't repro, duplicate, stale Aug 28, 2024
@llongley llongley added the closed-Duplicate Described behavior is already captured by another issue. label Aug 28, 2024
@codendone
Copy link
Contributor

codendone commented Aug 29, 2024

This was closed as duplicate of an active internal bug. Reactivating and connecting to that bug.

@codendone codendone reopened this Aug 29, 2024
@codendone codendone removed the closed-Duplicate Described behavior is already captured by another issue. label Aug 29, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Aug 29, 2024
@codendone codendone removed the needs-triage Issue needs to be triaged by the area owners label Aug 29, 2024
@llongley llongley added this to the WinAppSDK 1.7 milestone Sep 11, 2024
@llongley llongley added the closed-Fixed Described behavior has been fixed. label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Lists ListView, GridView, ListBox, etc bug Something isn't working closed-Fixed Described behavior has been fixed. team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

3 participants