xamarin/Xamarin.Forms

[UWP] PopAsync() crashes when navigating back to a page with a ListView with grouping after an item has been removed

Aperta

#3887 aperta il 24 set 2018

 (7 commenti) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
a/listviewe/4 :clock4:help wantedi/highp/UWPt/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Description

Similar to Issue #3333, we're still seeing an exception from PopAsync() in v3.2.0.839982, however instead of a null reference it's now: System.ArgumentException: 'Value does not fall within the expected range.'

Steps to Reproduce

  1. Add items to a bound ListView that uses grouping
    • Press the "Add Item" button in the attached example 3 times to add that manyitems
  2. Navigate to the page displaying the list and delete one of the items (The "List View Page"
    • Select the "List View Page" sidebar menu item in the attached example
  3. Delete one of the items
    • Using the "Remove" button in the attached example
  4. Navigate away from the page displaying the list
    • Select the "Add Item Page" sidebar menu item in the attached example
  5. Navigate back to the page display the list
    • Select the "List View Page" sidebar menu item in the attached example

Expected Behavior

We should be able to navigate to back a page after removing an item without causing an exception

Actual Behavior

The exception System.ArgumentException is thrown

Basic Information

  • Version with issue: 3.2.0.839982
  • Last known good version: Unknown, but it also crashes in 3.0.0.561731
  • IDE: Visual Studio 2017 15.7.6
  • Platform Target Frameworks:
    • UWP: 16299
  • Affected Devices: UWP Windows Desktop

Screenshots

  1. Press the "Add Item" button in the attached example 3 times to add that manyitems image

  2. Delete one of the items image

Screenshot of the crash

image

Reproduction Link

Issue3333ArgumentException.zip

Guida contributor