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

Is there a way to get a better stack trace?

$
0
0

I thought I asked this question earlier, but I don't see it now.

Lately it seems when my app crashes on Android I get a fairly worthless stack trace. The current stack trace I have looks like this:

`java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
... 1 more
Caused by: md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable: System.NullReferenceException: Object reference not set to an instance of an object
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x00028>
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.m__0 (object) <0x0003f>
at Android.App.SyncContext/c__AnonStorey0.<>m__0 () <0x00027>
at Java.Lang.Thread/RunnableImplementor.Run () <0x0003f>
at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) <0x0003b>
at (wrapper dynamic-method) object.a1dd1e13-f371-412b-ab6a-28d183a86d18 (intptr,intptr) <0x0003b>

at mono.java.lang.RunnableImplementor.n_run(Native Method)
at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:29)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5835)`

Yeah I get that there is a null reference, but there is not enough information here for me to figure out what might be going on.
Was there a change recently that causes this? Or am I just crashing too deep in Xamarin code?
Is there anything I can do to get a better stack trace, or more information on what the issue is?


Viewing all articles
Browse latest Browse all 91519

Trending Articles