Bug 29911 - After newest alpha relase Android debugging broken
Summary: After newest alpha relase Android debugging broken
Status: CLOSED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Dominique Louis
URL:
Depends on:
Blocks:
 
Reported: 2015-05-10 04:40 UTC by herzock@web.de
Modified: 2016-08-03 15:24 UTC (History)
7 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
CLOSED FIXED

Description herzock@web.de 2015-05-10 04:40:16 UTC
I had this problem: 
https://forums.xamarin.com/discussion/31835/visual-studio-freezes-when-debugging-on-the-xamarin-android-player-xap

After installing the new alpha fixes Visual Studio does not crash anymore but i still can't debug. 
And i also can not debug in Xamarin Studio anymore: 
Java.Lang.RuntimeException: java.lang.reflect.InvocationTargetException
  at --- End of managed exception stack trace ---
  at java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
  at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
  at at dalvik.system.NativeStart.main(Native Method)
  at Caused by: java.lang.reflect.InvocationTargetException
  at at java.lang.reflect.Method.invokeNative(Native Method)
  at at java.lang.reflect.Method.invoke(Method.java:511)
  at at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
  at ... 2 more
  at Caused by: md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable: System.NullReferenceException: Object reference not set to an instance of an object
  at at Xamarin.Forms.Platform.Android.Platform.UpdateActionBarBackgroundColor () <IL 0x00010, 0x00094>
  at at Xamarin.Forms.Platform.Android.Platform.set_CurrentNavigationPage (Xamarin.Forms.NavigationPage) <IL 0x000f2, 0x0058b>
  at at Xamarin.Forms.Platform.Android.Platform.UpdateActionBar () <IL 0x0006a, 0x00223>
  at at Xamarin.Forms.Platform.Android.Platform.SetPage (Xamarin.Forms.Page) <IL 0x000c0, 0x003e3>
  at at Xamarin.Forms.Platform.Android.FormsApplicationActivity.InternalSetPage (Xamarin.Forms.Page) <IL 0x000be, 0x00413>
  at at Xamarin.Forms.Platform.Android.FormsApplicationActivity.SetMainPage () <IL 0x0000c, 0x00047>
  at at Xamarin.Forms.Platform.Android.FormsApplicationActivity.LoadApplication (Xamarin.Forms.Application) <IL 0x0002e, 0x00153>
  at Todo.Android.MainActivity.OnCreate (Android.OS.Bundle) [0x00011] in c:\Users\jonas.hahn\Downloads\Todo\SharedProject\Android\MainActivity.cs:24
  at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) [0x00011] in /Users/builder/data/lanes/1502/690e31db/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Android.App.Activity.cs:2707
  at at (wrapper dynamic-method) object.9bcbe46b-3e7e-4b34-aea6-bef6e2a46887 (intptr,intptr,intptr) <IL 0x00017, 0x00027>
  at at md5bbda18165034e574ca338d2c41b760cf.MainActivity.n_onCreate(Native Method)
  at at md5bbda18165034e574ca338d2c41b760cf.MainActivity.onCreate(MainActivity.java:28)
  at at android.app.Activity.performCreate(Activity.java:5008)
  at at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
  at at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
  at at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
  at at android.app.ActivityThread.access$600(ActivityThread.java:130)
  at at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
  at at android.os.Handler.dispatchMessage(Handler.java:99)
  at at android.os.Looper.loop(Looper.java:137)
  at at android.app.ActivityThread.main(ActivityThread.java:4745)
  at ... 5 more
Comment 1 herzock@web.de 2015-05-10 04:50:57 UTC
I think this is somehow related to XAP Android emulator. On the device i can debug now with the newest alpha version.
Comment 2 herzock@web.de 2015-05-10 04:59:06 UTC
It also happens with the build in mono emulator.
Comment 3 mehdy 2015-06-03 02:02:13 UTC
I get the exact message when an exception happens in Xamarin Studio 5.9.2 and
Latest Xamarin Android Plyer on Windows x64 :


Java.Lang.RuntimeException: java.lang.reflect.InvocationTargetException
  at --- End of managed exception stack trace ---
  at java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
  at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
  at at dalvik.system.NativeStart.main(Native Method)
  at Caused by: java.lang.reflect.InvocationTargetException
  at at java.lang.reflect.Method.invokeNative(Native Method)
  at at java.lang.reflect.Method.invoke(Method.java:515)
  at at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
  at ... 2 more
  at Caused by: md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable: System.FormatException: Token dc679080bfe09627e223a4ce2ae028770e798494
  at at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <IL 0x00011, 0x0004b>
  at at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>m__0 (object) <IL 0x00006, 0x0003b>
  at Android.App.SyncContext/<Post>c__AnonStorey0.<>m__0 () [0x00000] in /Users/builder/data/lanes/1502/4ab8d98a/source/monodroid/src/Mono.Android/src/Android.App/SyncContext.cs:18
  at Java.Lang.Thread/RunnableImplementor.Run () [0x0000b] in /Users/builder/data/lanes/1502/4ab8d98a/source/monodroid/src/Mono.Android/src/Java.Lang/Thread.cs:36
  at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) [0x00009] in /Users/builder/data/lanes/1502/4ab8d98a/source/monodroid/src/Mono.Android/platforms/android-19/src/generated/Java.Lang.IRunnable.cs:71
  at at (wrapper dynamic-method) object.f5b915dd-37a2-41fb-9eed-37fa828a330c (intptr,intptr) <IL 0x00011, 0x0001f>
  at at mono.java.lang.RunnableImplementor.n_run(Native Method)
  at at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:29)
  at at android.os.Handler.handleCallback(Handler.java:733)
  at at android.os.Handler.dispatchMessage(Handler.java:95)
  at at android.os.Looper.loop(Looper.java:136)
  at at android.app.ActivityThread.main(ActivityThread.java:5017)
Comment 4 Danish Akhtar 2015-07-03 07:47:39 UTC
Hi Herzock,

We are successfully able to run android application with VS and XS. Could you please confirm that you are still getting this issue? if yes, then please provide your Xamarin build info and ide logs.

Thanks!
Comment 5 herzock@web.de 2015-07-06 05:50:11 UTC
I did not experience the problem anymore. Thanks
Comment 6 Danish Akhtar 2015-07-07 04:04:55 UTC
As per comment 5 closing this issue.