Bug 60177 - Index # is greater than the number of rows #. InfiniteListView. Only on iOS
Summary: Index # is greater than the number of rows #. InfiniteListView. Only on iOS
Status: RESOLVED DUPLICATE of bug 59896
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.4.0
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-10-13 12:00 UTC by Eduard Lorente
Modified: 2017-10-18 17:24 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 59896

Description Eduard Lorente 2017-10-13 12:00:32 UTC
Since I've updated Xamarin Forms to 2.4 version, I have got a new error on the listviews.

Sometimes there is a crash on iOS and only with this version, with 2.3.# version there aren't errors with listview.

I don't know if is the list size or what.

I use groupable lists.

Crash log:
System.ArgumentException: Index '3' is greater than the number of rows '2'.Xamarin Exception Stack:
  at Xamarin.Forms.Platform.iOS.ListViewRenderer.UpdateItems (System.Collections.Specialized.NotifyCollectionChangedEventArgs e, System.Int32 section, System.Boolean resetWhenGrouped) [0x0006b] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.iOS\Renderers\ListViewRenderer.cs:508 
  at Xamarin.Forms.Platform.iOS.ListViewRenderer.OnCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00000] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.iOS\Renderers\ListViewRenderer.cs:298 
  at Xamarin.Forms.Internals.TemplatedItemsList`2[TView,TItem].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0000a] in <1982f4f3
6e0b4e118327ea411be26e7b>:0 
  at Xamarin.Forms.Internals.TemplatedItemsList`2[TView,TItem].OnCollectionChangedGrouped (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x000e3] in <1982f4f36e0b4e118327ea411be26e7b>:0 
  at Xamarin.Forms.Internals.TemplatedItemsList`2[TView,TItem].OnProxyCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e, System.Boolean fixWindows) [0x00008] in <1982f4f36e0b4e118327ea411be26e7b>:0 
  at Xamarin.Forms.Internals.TemplatedItemsList`2[TView,TItem].OnProxyCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00000] in <1982f4f36e0b4e118327ea411be26e7b>:0 
  at Xamarin.Forms.ListProxy.OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0000a] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Core\ListProxy.cs:233 
  at Xamarin.Forms.ListProxy+<>c__DisplayClass33_0.<OnCollectionChanged>b__0 () [0x00018] in C:\B
uildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Core\ListProxy.cs:206 
  at Xamarin.Forms.ListProxy.OnCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x000a0] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Core\ListProxy.cs:225 
  at Xamarin.Forms.ListProxy+WeakNotifyProxy.OnCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00031] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Core\ListProxy.cs:394 
  at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0000f] in <ad9e0d7c0b7c4370b81e43fdc48aad3e>:0 
  at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Object item, System.Int32 index) [0x00009] in <ad9e0d7c0b7c4370b81e43fdc48aad3e>:0 
  at System.Collections.ObjectModel.Observ
ableCollection`1[T].InsertItem (System.Int32 index, T item) [0x00024] in <ad9e0d7c0b7c4370b81e43fdc48aad3e>:0 
  at System.Collections.ObjectModel.Collection`1[T].Add (T item) [0x00020] in <a89624c267f94034b6cf9aa0c56f8864>:0 
  at System.Collections.ObjectModel.ObservableCollectionExtensions.AddRange[T] (System.Collections.ObjectModel.ObservableCollection`1[T] collection, System.Collections.Generic.IEnumerable`1[T] items) [0x00013] in <358dba1988d54f20b5ca6d86720ad0d1>:0
Comment 1 Eduard Lorente 2017-10-13 12:24:31 UTC
I forgot to say that this error occurs when I add elements to the List.ItemsSource

When collection is modified.
Comment 2 Paul DiPietro [MSFT] 2017-10-13 13:48:24 UTC

*** This bug has been marked as a duplicate of bug 59896 ***