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

ListView Crash ('jobject' must not be IntPtr.Zero)

$
0
0

I'm getting a crash on Android that seems to occur randomly and is difficult to reproduce. I have two pages that each have a list on them with around 10 items. Tapping on an item in the first list loads the second page with the second list. If I select a list item from the first list so that the second page loads, and then press the back button to return to the first page, and then repeat this process, it will eventually trigger a crash.

[Mono] GC_OLD_BRIDGE num-objects 325 num_hash_entries 2773 sccs size 1498 init 0.00ms df1 5.06ms sort 0.63ms dfs2 1.38ms setup-cb 0.25ms free-data 1.48ms links 3885/3885/1242/14 dfs passes 6983/5383
[Mono] GC_MINOR: (Nursery full) pause 17.78ms, total 17.88ms, bridge 28.72ms promoted 1296K major 1616K los 2546K
[Mono] GC_OLD_BRIDGE num-objects 557 num_hash_entries 18038 sccs size 9059 init 0.00ms df1 35.32ms sort 6.19ms dfs2 11.27ms setup-cb 0.96ms free-data 11.99ms links 32496/32496/42172/56 dfs passes 51091/41555
[Mono] GC_MINOR: (Nursery full) pause 48.66ms, total 48.75ms, bridge 72.47ms promoted 800K major 2416K los 10769K
[Mono] GC_BRIDGE waiting for bridge processing to finish
[Mono] GC_OLD_BRIDGE num-objects 508 num_hash_entries 8502 sccs size 4314 init 0.00ms df1 17.32ms sort 2.13ms dfs2 4.84ms setup-cb 0.88ms free-data 6.24ms links 12600/12600/4028/20 dfs passes 21610/16914
[Mono] GC_MAJOR: (LOS overflow) pause 38.83ms, total 39.68ms, bridge 44.64ms major 2784K/2416K los 115K/14260K
[Mono] GC_OLD_BRIDGE num-objects 540 num_hash_entries 19716 sccs size 9900 init 0.00ms df1 38.45ms sort 5.20ms dfs2 17.83ms setup-cb 1.02ms free-data 15.38ms links 35791/35791/135274/74 dfs passes 56047/45691
[Mono] GC_MINOR: (Nursery full) pause 51.96ms, total 52.06ms, bridge 74.11ms promoted 704K major 3488K los 9356K
[Mono] GC_BRIDGE waiting for bridge processing to finish
[Mono] GC_OLD_BRIDGE num-objects 781 num_hash_entries 18049 sccs size 9061 init 0.00ms df1 37.17ms sort 5.13ms dfs2 8.14ms setup-cb 1.11ms free-data 10.44ms links 27156/27156/8748/20 dfs passes 45986/36217
[Mono] GC_MAJOR: (LOS overflow) pause 62.47ms, total 62.59ms, bridge 52.73ms major 3520K/3488K los 115K/15810K
[Mono] GC_OLD_BRIDGE num-objects 544 num_hash_entries 21078 sccs size 10204 init 0.00ms df1 42.19ms sort 5.66ms dfs2 17.52ms setup-cb 1.21ms free-data 14.47ms links 38407/38407/68792/57 dfs passes 60029/48611
[Mono] GC_MINOR: (Nursery full) pause 53.24ms, total 53.33ms, bridge 71.77ms promoted 464K major 3984K los 6755K
[Mono] GC_OLD_BRIDGE num-objects 560 num_hash_entries 21675 sccs size 10552 init 0.00ms df1 44.05ms sort 6.12ms dfs2 14.84ms setup-cb 1.15ms free-data 14.35ms links 39447/39447/69126/58 dfs passes 61682/49999
[Mono] GC_MINOR: (Nursery full) pause 57.56ms, total 57.64ms, bridge 68.03ms promoted 784K major 4768K los 14923K
[Mono] GC_BRIDGE waiting for bridge processing to finish
[Mono] GC_OLD_BRIDGE num-objects 545 num_hash_entries 11591 sccs size 5822 init 0.00ms df1 23.57ms sort 3.15ms dfs2 5.29ms setup-cb 0.74ms free-data 6.12ms links 17389/17389/5579/20 dfs passes 29525/23211
[Mono] GC_MAJOR: (LOS overflow) pause 53.85ms, total 55.73ms, bridge 42.36ms major 4320K/4768K los 167K/15260K
[Mono] GC_OLD_BRIDGE num-objects 623 num_hash_entries 18843 sccs size 9208 init 0.00ms df1 36.35ms sort 6.51ms dfs2 13.38ms setup-cb 1.03ms free-data 14.07ms links 34047/34047/85125/79 dfs passes 53513/43255
[Mono] GC_MINOR: (Nursery full) pause 48.08ms, total 48.20ms, bridge 74.03ms promoted 432K major 4752K los 6797K
[Mono] GC_OLD_BRIDGE num-objects 859 num_hash_entries 25686 sccs size 11453 init 0.00ms df1 62.29ms sort 7.55ms dfs2 17.28ms setup-cb 1.47ms free-data 17.19ms links 46551/46551/81731/92 dfs passes 73096/58004
[Mono] GC_MINOR: (Nursery full) pause 78.19ms, total 78.29ms, bridge 81.25ms promoted 976K major 5728K los 11041K
[Mono] GC_OLD_BRIDGE num-objects 767 num_hash_entries 20774 sccs size 9694 init 0.00ms df1 56.01ms sort 6.71ms dfs2 18.22ms setup-cb 1.16ms free-data 15.89ms links 37350/37350/112854/97 dfs passes 58891/47044
[Mono] GC_MINOR: (Nursery full) pause 74.51ms, total 74.66ms, bridge 82.91ms promoted 992K major 6720K los 14645K
[Mono] GC_BRIDGE waiting for bridge processing to finish
[Mono] GC_OLD_BRIDGE num-objects 993 num_hash_entries 18162 sccs size 7888 init 0.00ms df1 37.60ms sort 5.70ms dfs2 7.34ms setup-cb 1.21ms free-data 10.63ms links 27877/27877/7505/32 dfs passes 47032/35765
[Mono] GC_MAJOR: (LOS overflow) pause 70.55ms, total 70.68ms, bridge 59.48ms major 5856K/6720K los 167K/14645K
[mono] 
[mono] Unhandled Exception:
[mono] System.ArgumentException: 'jobject' must not be IntPtr.Zero.
[mono] Parameter name: jobject
[mono]   at Android.Runtime.JNIEnv.CallVoidMethod (IntPtr jobject, IntPtr jmethod, Android.Runtime.JValue[] parms) [0x00010] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:500 
[mono]   at Android.Widget.AdapterView.set_OnItemClickListener (IOnItemClickListener value) [0x00043] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Android.Widget.AdapterView.cs:944 
[mono]   at Xamarin.Forms.Platform.Android.ListViewAdapter.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0 
[mono]   at Java.Lang.Object.Finalize () [0x00056] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/src/Java.Lang/Object.cs:61 
[] * Assertion at /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/mono/mono/io-layer/wthreads.c:93, condition 'ok' not met
[libc] Fatal signal 6 (SIGABRT) at 0x00003f3c (code=-6), thread 16231 (roducts.Android)

Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>