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

How to track down OutOfMemory exception on production device?

$
0
0

I've got a user running a device that I don't have access to. All of the devices that I do have access to, do not throw this error.

I've implemented error tracking in the app, and this is what it's reporting.

at Android.Runtime.JNIEnv.CallStaticObjectMethod (IntPtr jclass, IntPtr jmethod, Android.Runtime.JValue[] parms) [0x00000] in :0 at Android.Graphics.BitmapFactory.DecodeStream (System.IO.Stream is) [0x00000] in :0 at Android.Graphics.BitmapFactory+c__AnonStorey9.<>m__0 () [0x00000] in :0 at System.Threading.Tasks.TaskActionInvoker+FuncInvoke1[Android.Graphics.Bitmap].Invoke (System.Threading.Tasks.Task owner, System.Object state, System.Threading.Tasks.Task context) [0x00000] in <filename unknown>:0 at System.Threading.Tasks.Task.InnerInvoke () [0x00000] in <filename unknown>:0 at System.Threading.Tasks.Task.ThreadStart () [0x00000] in <filename unknown>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Android.Graphics.Bitmap].GetResult () [0x00000] in :0 at Xamarin.Forms.Platform.Android.ImageLoaderSourceHandler+d__0.MoveNext () [0x00000] in :0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0 at System.Runtime.CompilerServices.TaskAwaiter`1[Android.Graphics.Bitmap].GetResult () [0x00000] in :0 at Xamarin.Forms.Platform.Android.ImageRenderer+d__0.MoveNext () [0x00000] in :0 --- End of managed exception stack trace --- java.lang.OutOfMemoryError: (Heap Size=65543KB, Allocated=61524KB) at android.graphics.BitmapFactory.nativeDecodeStream(Native Method) at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:658) at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:730) at dalvik.system.NativeStart.run(Native Method)

How do I track this down and solve it?

The user is running Xamarin.Forms 1.2.3 Pre1. Their OS is 4.1.1, and their device is an HTC One s.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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