Xamarin Android app crashes on startup saying "the application is in break mode"

chrisb69chrisb69 PTMember ✭✭

After deploying the app starts and then stops with this message

Output show that there is a null pointer exception in the java runtime???

11-06 15:56:51.482 D/Mono (28198): Found as 'java_interop_jnienv_call_static_object_method'.
11-06 15:56:51.494 D/AppTracker(28198): App Event: start
Thread started: #10
An unhandled exception occured.

Thread finished: #4
The thread 'Unknown' (0x4) has exited with code 0 (0x0).
Thread finished: #8
The thread 'Unknown' (0x8) has exited with code 0 (0x0).
Thread finished: #3
The thread 'Unknown' (0x3) has exited with code 0 (0x0).
Thread finished: #9
The thread 'Unknown' (0x9) has exited with code 0 (0x0).
Thread finished: #5
The thread 'Unknown' (0x5) has exited with code 0 (0x0).
Thread finished: #2
The thread 'Unknown' (0x2) has exited with code 0 (0x0).
Thread started: #12
Thread started: #13
Thread started: #14
11-06 15:58:18.049 E/AndroidRuntime(28198): FATAL EXCEPTION: AsyncTask #3
11-06 15:58:18.049 E/AndroidRuntime(28198): Process: com.smartpocket, PID: 28198
11-06 15:58:18.049 E/AndroidRuntime(28198): java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Object.hashCode()' on a null object reference
11-06 15:58:18.049 E/AndroidRuntime(28198): at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:915)
11-06 15:58:18.049 E/AndroidRuntime(28198): at java.util.concurrent.ConcurrentHashMap.containsKey(ConcurrentHashMap.java:943)
11-06 15:58:18.049 E/AndroidRuntime(28198): at com.facebook.internal.Utility.queryAppSettings(Utility.java:825)
11-06 15:58:18.049 E/AndroidRuntime(28198): at com.facebook.login.widget.LoginButton$1.run(LoginButton.java:486)
11-06 15:58:18.049 E/AndroidRuntime(28198): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
11-06 15:58:18.049 E/AndroidRuntime(28198): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
11-06 15:58:18.049 E/AndroidRuntime(28198): at java.lang.Thread.run(Thread.java:761)
11-06 15:58:18.049 D/AppTracker(28198): App Event: crash
11-06 15:58:18.072 D/AppTracker(28198): App Event: stop
11-06 15:58:18.072 I/Process (28198): Sending signal. PID: 28198 SIG: 9

Has anyone encountered this problem?

Thanks!

Chris

Answers

  • robbitrobbit CNMember ✭✭

    Hi,
    We all know that C# code run on the mono , and java code run on the AndroidRT. The mono will be loaded by AndroidRT .When you deploy your project on Android , the monodroid.exe will generate ACW for AndroidRT .
    The NullPointerException , I think you should review the code about Facebook's 'LoginButton'. And you just need click 'Continue execution'.

  • chrisb69chrisb69 PTMember ✭✭

    seems this was an issue targeting the wrong mono framework

Sign In or Register to comment.