Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

ArrayIndexOutOfBoundsException on some devices

$
0
0

Hi,

I've been experiencing issues with ListView (I think?) getting IndexOutOfBoundsExceptions on Android device with OS version 4.4.2. The stack trace is

Java.Lang.ArrayIndexOutOfBoundsException: length=61; index=-1
  at at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <IL 0x00011, 0x00068>
  at Android.Runtime.JNIEnv.CallVoidMethod (intptr,intptr,Android.Runtime.JValue[]) [0x00063] in /Users/builder/data/lanes/1131/2a7b6821/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:508
  at Android.Views.View.Measure (int,int) [0x0002d] in /Users/builder/data/lanes/1131/2a7b6821/source/monodroid/src/Mono.Android/platforms/android-15/src/generated/Android.Views.View.cs:10433
  at at Xamarin.Forms.Platform.Android.ViewRenderer`2<Arkkeo.DocumentGrid, Android.Widget.GridView>.GetDesiredSize (int,int) <0x000b3>
  at at Xamarin.Forms.Platform.Android.Platform.GetNativeSize (Xamarin.Forms.VisualElement,double,double) <IL 0x00092, 0x004a3>
  at at Xamarin.Forms.VisualElement.OnSizeRequest (double,double) <IL 0x0003b, 0x0027f>
  at at Xamarin.Forms.VisualElement.GetSizeRequest (double,double) <IL 0x00041, 0x002c3>
  at at Xamarin.Forms.Grid.Measure (double,double,bool) <IL 0x0087f, 0x0420b>
  at at Xamarin.Forms.Grid.LayoutChildren (double,double,double,double) <IL 0x00013, 0x001c7>
  at at Xamarin.Forms.Layout.UpdateChildrenLayout () <IL 0x000c8, 0x0066f>
  at at Xamarin.Forms.Layout.OnSizeAllocated (double,double) <IL 0x00010, 0x000ab>
  at at Xamarin.Forms.VisualElement.SizeAllocated (double,double) <IL 0x00003, 0x00083>
  at at Xamarin.Forms.Layout.OnChildMeasureInvalidated (object,System.EventArgs) <IL 0x00075, 0x0035f>
  at at Xamarin.Forms.VisualElement.InvalidateMeasure () <IL 0x00014, 0x00083>
  at at Xamarin.Forms.Layout.OnChildMeasureInvalidated (object,System.EventArgs) <IL 0x00039, 0x00227>
  at at Xamarin.Forms.VisualElement.InvalidateMeasure () <IL 0x00014, 0x00083>
  at at Xamarin.Forms.Layout.OnChildMeasureInvalidated (object,System.EventArgs) <IL 0x00039, 0x00227>
  at at Xamarin.Forms.VisualElement.InvalidateMeasure () <IL 0x00014, 0x00083>
  at at Xamarin.Forms.Button.OnSourcePropertyChanged (Xamarin.Forms.ImageSource,Xamarin.Forms.ImageSource) <IL 0x00022, 0x0015f>
  at at Xamarin.Forms.Button.<.cctor>b__5 (Xamarin.Forms.BindableObject,object,object) <IL 0x00012, 0x000db>
  at at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty,object,bool,bool,bool) <IL 0x000b9, 0x0058f>
  at at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty,object,bool,bool,bool) <IL 0x00213, 0x00aeb>
  at at Xamarin.Forms.BindingExpression.ApplyCore (object,Xamarin.Forms.BindableObject,Xamarin.Forms.BindableProperty,bool) <IL 0x00206, 0x01287>
  at at Xamarin.Forms.BindingExpression.Apply (bool) <IL 0x00041, 0x0018b>
  at at Xamarin.Forms.BindingExpression/BindingExpressionPart.<PropertyChanged>b__12 () <IL 0x00007, 0x00053>
  ...

Any ideas on where to start searching for the issue?


Viewing all articles
Browse latest Browse all 58056

Trending Articles