Forum Xamarin.Forms

IntPtr.Zero in incrementally scrolling ListView (Android, Forms)

KevinAshleyKevinAshley USMember ✭✭

Worked in forms 1.2.3, in Xamarin Forms 1.3+ and 1.4+ after scrolling with ItemAppearing to load more items causes IntPtr.Zero exception after 2-3 pages of items...

04-16 05:12:28.910 E/mono ( 5471): Unhandled Exception: 04-16 05:12:28.910 E/mono ( 5471): System.ArgumentException: 'jobject' must not be IntPtr.Zero. 04-16 05:12:28.910 E/mono ( 5471): Parameter name: jobject 04-16 05:12:28.910 E/mono ( 5471): at Android.Runtime.JNIEnv.CallVoidMethod (IntPtr jobject, IntPtr jmethod, Android.Runtime.JValue[] parms) [0x00010] in /Users/builder/data/lanes/1353/86274adf/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:500 04-16 05:12:28.910 E/mono ( 5471): at Android.Widget.AdapterView.set_OnItemClickListener (IOnItemClickListener value) [0x00043] in /Users/builder/data/lanes/1353/86274adf/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Android.Widget.AdapterView.cs:944 04-16 05:12:28.910 E/mono ( 5471): at Xamarin.Forms.Platform.Android.ListViewAdapter.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0 04-16 05:12:28.910 E/mono ( 5471): at Java.Lang.Object.Finalize () [0x00056] in /Users/builder/data/lanes/1353/86274adf/source/monodroid/src/Mono.Android/src/Java.Lang/Object.cs:63 04-16 05:12:28.925 F/ ( 5471): * Assertion at /Users/builder/data/lanes/1353/86274adf/source/mono/mono/io-layer/wthreads.c:93, conditionok' not met
04-16 05:12:28.925 F/libc ( 5471): Fatal signal 6 (SIGABRT) at 0x0000155f (code=-6), thread 5526 (dc.myapp)
04-16 05:12:28.927 F/ ( 5471): * Assertion at /Users/builder/data/lanes/1353/86274adf/source/mono/mono/io-layer/wthreads.c:93, condition ok' not met 04-16 05:12:28.927 F/libc ( 5471): Fatal signal 6 (SIGABRT) at 0x0000155f (code=-6), thread 5507 (dc.myapp)

Posts

  • CharlinCharlin DOUniversity ✭✭

    @KevinAshley did you found any solution?

  • KirillAshikhminKirillAshikhmin RUMember ✭✭

    Me too ...
    How fix it?

  • AndresCastroAndresCastro USMember

    Which Android OS is everyone seeing this on? I see it happening a lot more on Lolipop.

  • CharlinCharlin DOUniversity ✭✭

    I resolved my problem, but i think was not for the same issue,
    My problem was that my project have a lot off views (With listview in each one), so, for each view i was making a push, so the memory was full and the app crashes showing IntPtr.Zero

Sign In or Register to comment.