An android xamarin.forms project. (current stable versions)
My app dies but does not generate a trappable exception because it's in the UI runtime.
The exception detail:
09-24 16:04:17.238 E/AndroidRuntime(12626): FATAL EXCEPTION: main
09-24 16:04:17.238 E/AndroidRuntime(12626): Process: Nudge.Android, PID: 12626
09-24 16:04:17.238 E/AndroidRuntime(12626): java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
09-24 16:04:17.238 E/AndroidRuntime(12626): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
09-24 16:04:17.238 E/AndroidRuntime(12626): at dalvik.system.NativeStart.main(Native Method)
09-24 16:04:17.238 E/AndroidRuntime(12626): Caused by: java.lang.reflect.InvocationTargetException
09-24 16:04:17.238 E/AndroidRuntime(12626): at java.lang.reflect.Method.invokeNative(Native Method)
09-24 16:04:17.238 E/AndroidRuntime(12626): at java.lang.reflect.Method.invoke(Method.java:515)
09-24 16:04:17.238 E/AndroidRuntime(12626): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
09-24 16:04:17.238 E/AndroidRuntime(12626): ... 2 more
09-24 16:04:17.238 E/AndroidRuntime(12626): Caused by: md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable: System.NullReferenceException: Object reference not set to an instance of an object
09-24 16:04:17.238 E/AndroidRuntime(12626): at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw ()
09-24 16:04:17.238 E/AndroidRuntime(12626): at System.Runtime.CompilerServices.AsyncMethodBuilderCore.m__0 (object)
09-24 16:04:17.238 E/AndroidRuntime(12626): at Android.App.SyncContext/c__AnonStorey0.<>m__0 () [0x00000] in /Users/builder/data/lanes/2058/58099c53/source/monodroid/src/Mono.Android/src/Android.App/SyncContext.cs:18
09-24 16:04:17.238 E/AndroidRuntime(12626): at Java.Lang.Thread/RunnableImplementor.Run () [0x0000b] in /Users/builder/data/lanes/2058/58099c53/source/monodroid/src/Mono.Android/src/Java.Lang/Thread.cs:36
09-24 16:04:17.238 E/AndroidRuntime(12626): at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) [0x00009] in /Users/builder/data/lanes/2058/58099c53/source/monodroid/src/Mono.Android/platforms/android-19/src/generated/Java.Lang.IRunnable.cs:71
09-24 16:04:17.238 E/AndroidRuntime(12626): at (wrapper dynamic-method) object.dca785bd-ccea-4d05-8060-f417ee711b09 (intptr,intptr)
09-24 16:04:17.238 E/AndroidRuntime(12626):
09-24 16:04:17.238 E/AndroidRuntime(12626): at mono.java.lang.RunnableImplementor.n_run(Native Method)
09-24 16:04:17.238 E/AndroidRuntime(12626): at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:29)
09-24 16:04:17.238 E/AndroidRuntime(12626): at android.os.Handler.handleCallback(Handler.java:733)
09-24 16:04:17.238 E/AndroidRuntime(12626): at android.os.Handler.dispatchMessage(Handler.java:95)
09-24 16:04:17.238 E/AndroidRuntime(12626): at android.os.Looper.loop(Looper.java:157)
09-24 16:04:17.238 E/AndroidRuntime(12626): at android.app.ActivityThread.main(ActivityThread.java:5356)
09-24 16:04:17.238 E/AndroidRuntime(12626): ... 5 more
Any help would be appreciated?
Answers
You need to find out more information on what's throwing the exception. You can use the android device monitor for this. In Xamarin Studio, launch the Android Device Monitor through the menu: Tools >Open Android Device Monitor....
Once it is loaded, then you can launch your app in debug mode. There should be more information about the exception that's being thrown displayed in the monitor. Once you have that information on the unhandled exception, post it here so someone can help.
I am using Visual Studio and I am running in Debug Mode. The lines shown above are those generated by the Device in the log. The debugger breaks but the module is not in any user code and the exception is not visible. I.e. it's in the Xamarin runtime.
Hi @RussSherlock
Seems like there is something coming
null
can you please upload a sample app? if that can reproduced an issue will help us.Thanks
RIYAZ