Bug 24599 - Latest iOS beta update breaks debugging on Android
Summary: Latest iOS beta update breaks debugging on Android
Alias: None
Product: Android
Classification: Xamarin
Component: Debugger ()
Version: 4.20.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: dean.ellis
Depends on:
Reported: 2014-11-18 02:42 UTC by Miha Markic
Modified: 2014-11-21 03:40 UTC (History)
2 users (show)

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 or GitHub 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:

Description Miha Markic 2014-11-18 02:42:59 UTC
Today I've installed the latest iOS beta channel update (I'm on beta) and suddenly I can't debug Android applications anymore (both VS and Xam Studio). The application starts, pauses for a second or so and then screen goes black on device (testing on Genymotion and Android AVD). Visual Studio eventually throws an exception (on Genymotion, on AVD after stopping emulator):


Error initializing the debugger: Mono.Debugging.Soft.ConnectionException: Could not connect to the debugger. ---> Mono.Debugger.Soft.VMDisconnectedException: Exception of type 'Mono.Debugger.Soft.VMDisconnectedException' was thrown.

Server stack trace: 

   at Mono.Debugger.Soft.Connection.SendReceive(CommandSet command_set, Int32 command, PacketWriter packet)

   at Mono.Debugger.Soft.Connection.get_RootDomain()

   at Mono.Debugger.Soft.VirtualMachine.connect()

   at Mono.Debugger.Soft.VirtualMachineManager.Connect(Connection transport, StreamReader standardOutput, StreamReader standardError)

   at Mono.Debugger.Soft.VirtualMachineManager.ConnectInternal(Socket dbg_sock, Socket con_sock, IPEndPoint dbg_ep, IPEndPoint con_ep)

   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)

   at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]: 

   at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)

   at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)

   at Mono.Debugger.Soft.VirtualMachineManager.ConnectCallback.EndInvoke(IAsyncResult result)

   at Mono.Debugger.Soft.VirtualMachineManager.EndConnect(IAsyncResult asyncResult)

   at Mono.Debugging.Soft.SoftDebuggerSession.<>c__DisplayClass9.<StartConnecting>b__8(IAsyncResult ar)

   --- End of inner exception stack trace ---
Comment 1 John Cachat 2014-11-18 11:42:39 UTC
I am having the same issue but I am using Xamarin Studio on Mac (beta channel).  Happens when trying to debug to a real device or using Genymotion.  I see my splash screen and a couple seconds later it goes black and just hangs.  I am not seeing a stack trace (that could be a VS thing).  All I see in the Application Output is this:
[monodroid-debug] Trying to initialize the debugger with options: --debugger-agent=transport=dt_socket,loglevel=0,address=,server=y,embedding=1
[Mono] Image addref mscorlib[0xb7fcd1d8] -> mscorlib.dll[0xb7fcc598]: 1
[Mono] AOT module 'mscorlib.dll.so' not found: dlopen failed: library "/data/data/x4iQ.x4iQ/lib/mscorlib.dll.so" not found
[Mono] Assembly mscorlib[0xb7fcd1d8] added to domain RootDomain, ref_count=1

I don't know if it was an iOS update that caused the issue.  I have been working on another project for a few days and just this morning updated Xamarin.  It took updates to all components that claimed to have "debugging improvements".

XS: 5.5.4 (build 14)
Comment 2 Miha Markic 2014-11-21 03:40:15 UTC
It seems fixed with the latest beta channel update ( probably)