xamarin/Xamarin.Forms

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

オープン

#3,887 opened on 2018/09/24

 (7 件のコメント) (0 件のリアクション) (0 人の担当者)C# (1,926 件のフォーク)batch import
a/listviewe/4 :clock4:help wantedi/highp/UWPt/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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

コントリビューターガイド