Bug 35461 - System.ArgumentOutOfRangeException on iOS with ListView and Header
Summary: System.ArgumentOutOfRangeException on iOS with ListView and Header
Status: RESOLVED NORESPONSE
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 1.5.1
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-11-02 10:00 UTC by Caan Mee
Modified: 2016-04-13 19:16 UTC (History)
4 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 NORESPONSE

Description Caan Mee 2015-11-02 10:00:31 UTC
at Xamarin.Forms.ListProxy.get_Item (Int32 index) [0x00000] in <filename unknown>:0 
  at Xamarin.Forms.TemplatedItemsList`2[Xamarin.Forms.ItemsView`1[Xamarin.Forms.Cell],Xamarin.Forms.Cell].get_Item (Int32 index) [0x00000] in <filename unknown>:0 
  at Xamarin.Forms.Platform.iOS.ListViewRenderer+ListViewDataSource.GetViewForHeader (UIKit.UITableView tableView, nint section) [0x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args, IntPtr principal, IntPtr delegate) [0x00000] in <filename unknown>:0 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00000] in <filename unknown>:0 
  at MyApp.Main (System.String[] args) [0x00000] in <filename unknown>:0
Comment 1 Rui Marinho 2016-01-25 19:44:10 UTC
Thank you for taking the time to submit the bug. We tried to reproduce the issue you reported but were unable given the description. If you could please attach a reproduction to the bug by starting with a clean Xamarin.Forms project and adding just the code necessary to demonstrate the issue we would very much appreciate it.

Warm regards,
Xamarin Forms Team
Comment 2 Fokke Vermeulen 2016-01-28 13:38:44 UTC
In my case it occures, when I come to a page with a searchfield on the top and a listview. I type something in, get suggestions and scroll down to the last entry. On tapping the last item or the previous one and I get the ArgumentOutOfRangeException.

It has to be a failure in the Xamarin Forms code, I nearly added in every method a try and catch and every method, which is shown in the crash report I didn't touch.

Here the crash again. Maybe there is something else.


System.ArgumentOutOfRangeExceptionSpecified argument was out of the range of valid values. Parameter name: index
Raw
Xamarin.Forms.ListProxy.get_Item(int index)
Xamarin.Forms.TemplatedItemsList<TView, TItem>.UpdateContent(TItem content, int index)
Xamarin.Forms.Platform.iOS.ListViewRenderer.ListViewDataSource.GetCell(UITableView tableView, NSIndexPath indexPath)
ObjCRuntime.Messaging.void_objc_msgSend_UIEdgeInsets(intptr, intptr, UIEdgeInsets)(wrapper managed-to-native)
UIKit.UIScrollView.set_ContentInset(UIEdgeInsets value)UIScrollView.g.cs:341
Xamarin.Forms.Platform.iOS.ListViewRenderer.<OnElementChanged>b__13_1(UIEdgeInsets insets)
Xamarin.Forms.Platform.iOS.KeyboardInsetTracker.OnKeyboardHidden(object sender, UIKeyboardEventArgs args)
System.EventHandler<UIKeyboardEventArgs>.invoke_void_object_TEventArgs(object, UIKeyboardEventArgs)(wrapper delegate-invoke)
Xamarin.Forms.Platform.iOS.KeyboardObserver.OnKeyboardHidden(object sender, UIKeyboardEventArgs args)
UIKit.UIKeyboard.Notifications.<ObserveWillHide>c__AnonStorey4.<>m__0(NSNotification notification)UIKeyboard.g.cs:236
Foundation.InternalNSNotificationHandler.Post(NSNotification s)NSNotificationCenter.cs:48
ObjCRuntime.Messaging.bool_objc_msgSend_bool(intptr, intptr, bool)(wrapper managed-to-native)
UIKit.UIView_UITextField.EndEditing(UIView This, bool force)UIView_UITextField.g.cs:47
Xamarin.Forms.Platform.iOS.PageRenderer.ViewWillDisappear(bool animated)
UIKit.UIApplication.UIApplicationMain(int, string[], intptr, intptr)(wrapper managed-to-native)
UIKit.UIApplication.Main(string[] args, IntPtr principal, IntPtr delegate)UIApplication.cs:77
UIKit.UIApplication.Main(string[] args, string principalClassName, string delegateClassName)UIApplication.cs:60
RebuyApp.iOS.Application.Main(string[] args)Main.cs:15
Comment 3 Rui Marinho 2016-01-29 16:59:58 UTC
What version are you using, did you update for the latest ? 2.0.1 or the 2.1.0 pre release, and this still happens? can you send us your app?

Thanks.
Comment 4 Fokke Vermeulen 2016-02-01 06:43:39 UTC
That happens in our IOS release with the 2.0.0 final, but tested in the last week also with the new final version (Xamarin.Forms 2.0.1.6495). Have to test the service fix for the final, but think it will not change. Do you mean the code, or the appstore-link?
(reBuy.de Kaufen & Verkaufen in appstore)
Comment 5 Rui Marinho 2016-02-01 14:55:30 UTC
The code or a short sample that reproduces the problem.
Comment 6 Jason Smith [MSFT] 2016-04-13 19:16:16 UTC
Thank you for your bug report. As we have not received the information requested, we cannot properly triage your bug and are marking it resolved.

Warm regards,
Xamarin Forms Team