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

Unhandled Exception in Listview-Android

$
0
0

I have a list of items in my listview with a button to add the item as a favourite. When user clicks this button, I send a message to my view model with the item from list. The view model then awaits an async task to send the request to add the item as favourite using a rest service. However everytime I do that, I get an unhandled exception after the request is executed. Here is the exception and application output. I have no clue as to why this happening. Listview also has images for all items. Any help on this will really really help me!

ystem.Diagnostics.Debugger.Mono_UnhandledException_internal () in
System.Diagnostics.Debugger.Mono_UnhandledException (ex=) in
object.9b323244-3df7-4ec5-8df6-1406bef335a3 (Parameters=) in
System.Runtime.CompilerServices.AsyncVoidMethodBuilder.AnonymousMethod__0 (Parameters=) in
Android.App.SyncContext.Post.AnonymousMethod__0 (Parameters=) in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/src/Android.App/SyncContext.cs:18
Java.Lang.Thread.RunnableImplementor.Run (Parameters=) in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/src/Java.Lang/Thread.cs:36
Java.Lang.IRunnableInvoker.n_Run (Parameters=) in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/platforms/android-19/src/generated/Java.Lang.IRunnable.cs:71
object.9b323244-3df7-4ec5-8df6-1406bef335a3 (Parameters=) in

[dalvikvm-heap] Clamp target GC heap from 103.561MB to 96.000MB
[dalvikvm-heap] Out of memory on a 7680016-byte allocation.
[skia] --- decoder->decode returned false
[dalvikvm-heap] Clamp target GC heap from 103.595MB to 96.000MB
[dalvikvm-heap] Forcing collection of SoftReferences for 1920296-byte allocation
[dalvikvm-heap] Clamp target GC heap from 103.593MB to 96.000MB
[dalvikvm-heap] Out of memory on a 1920296-byte allocation.
[skia] --- decoder->decode returned false
[dalvikvm-heap] Clamp target GC heap from 103.595MB to 96.000MB
[dalvikvm-heap] Forcing collection of SoftReferences for 1920296-byte allocation
[dalvikvm-heap] Clamp target GC heap from 103.595MB to 96.000MB
[dalvikvm-heap] Out of memory on a 1920296-byte allocation.
[skia] --- decoder->decode returned false
[Mono] GC_OLD_BRIDGE num-objects 73 num_hash_entries 17496 sccs size 11544 init 0.00ms df1 51.06ms sort 8.06ms dfs2 17.52ms setup-cb 2.29ms free-data 18.80ms links 29307/29307/11498/28 dfs passes 46876/40851
[Mono] GC_MINOR: (Nursery full) pause 60.86ms, total 61.28ms, bridge 84.02ms promoted 128K major 2208K los 14644K


Viewing all articles
Browse latest Browse all 58056

Trending Articles