Bug 57138 - Visual Studio gets disconnected from mac
Summary: Visual Studio gets disconnected from mac
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: XMA ()
Version: unspecified
Hardware: PC Windows
: Normal normal
Target Milestone: Future Cycle
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-06-05 04:31 UTC by Naveen Gogineni
Modified: 2017-07-03 15:56 UTC (History)
6 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:
RESOLVED FIXED

Description Naveen Gogineni 2017-06-05 04:31:41 UTC
Visual Studio get disconnected from MAC immediately after connecting after the update to Xamarin 4.5.

The following are the logs that are generated.

Xamarin.Messaging.Ssh.MessagingService|Verbose|0|Client 'IDB450387' status changed: Connected|2017-06-05 04:17:02Z
Xamarin.Messaging.Client.MessagingClient|Verbose|0|Sending Message Xamarin.Messaging.MessageStatusMessage to topic xma/message-status|2017-06-05 04:17:02Z
Xamarin.Messaging.Client.MessagingClient|Verbose|0|Received Response of Xamarin.Messaging.IDB.Contracts.GetXcodeLocationMessage to topic vs3708eth19/response/xvs/idb/4.5.0.387/get-xcode-location|2017-06-05 04:17:02Z
Xamarin.Messaging.Client.MessagingClient|Verbose|0|Sending Message Xamarin.Messaging.MessageStatusMessage to topic xma/message-status|2017-06-05 04:17:02Z
Xamarin.Messaging.Client.MessagingClient|Verbose|0|Sending Request Xamarin.Messaging.IDB.Contracts.SyncSettingsMessage to topic xvs/idb/4.5.0.387/set-settings|2017-06-05 04:17:02Z
Xamarin.Messaging.Client.MessagingClient|Verbose|0|Sending Message Xamarin.Messaging.MessageStatusMessage to topic xma/message-status|2017-06-05 04:17:02Z
Xamarin.Messaging.Client.MessagingClient|Verbose|0|Received Response of Xamarin.Messaging.IDB.Contracts.SyncSettingsMessage to topic vs3708eth19/response/xvs/idb/4.5.0.387/set-settings|2017-06-05 04:17:02Z
Xamarin.Messaging.Client.MessagingClient|Verbose|0|Sending Message Xamarin.Messaging.MessageStatusMessage to topic xma/message-status|2017-06-05 04:17:02Z
Xamarin.Messaging.Client.MessagingClient|Verbose|0|Sending Request Xamarin.Messaging.IDB.Contracts.GetProvisioningProfilesMessage to topic xvs/idb/4.5.0.387/get-provisioning-profiles|2017-06-05 04:17:02Z
Xamarin.Messaging.Client.MessagingClient|Verbose|0|Sending Message Xamarin.Messaging.MessageStatusMessage to topic xma/message-status|2017-06-05 04:17:02Z
Xamarin.Messaging.Client.MessagingClient|Verbose|0|Received Response of Xamarin.Messaging.IDB.Contracts.GetProvisioningProfilesMessage to topic vs3708eth19/response/xvs/idb/4.5.0.387/get-provisioning-profiles|2017-06-05 04:17:02Z
Xamarin.VisualStudio.IOS.Messaging.MacServer|Error|0|The installed Xamarin.iOS (version 10.8) on the Mac Ethons-MacBook-Pro.local. (10.10.60.114) is not compatible with the local Xamarin.iOS (version 10.10), hence the connection will be cancelled. Please select a new server from the Xamarin Mac Agent dialog or install the correct Xamarin.iOS versions|2017-06-05 04:17:02Z
Xamarin.VisualStudio.Remote.State.ServerStateContext|Information|0|Server State transition from ConnectedState to DisconnectedState on Ethons-MacBook-Pro.local. (10.10.60.114)|2017-06-05 04:17:06Z
Xamarin.VisualStudio.Remote.State.ServerStateContext|Information|0|Disconnected from the Mac Ethons-MacBook-Pro.local. (10.10.60.114)|2017-06-05 04:17:06Z
Xamarin.Messaging.Ssh.MessagingService|Information|0|The underlying client has been closed|2017-06-05 04:17:06Z
Xamarin.Messaging.Client.MessageHandlerManager|Error|0|An error occurred while handling a message of type Xamarin.Messaging.AgentStatusMessage
System.NullReferenceException: Object reference not set to an instance of an object.
   at Xamarin.VisualStudio.Remote.State.ServerStateContextExtensions.SetConnected(ServerStateContext context) in C:\d\lanes\4699\1585aad2\source\xamarinvs\src\Core\Xamarin.VisualStudio.Remote\State\ServerStateContextExtensions.cs:line 27
   at Xamarin.VisualStudio.Remote.State.ServerStateContext.OnAgentStatusChanged(Object sender, AgentStatusEventArgs e) in C:\d\lanes\4699\1585aad2\source\xamarinvs\src\Core\Xamarin.VisualStudio.Remote\State\ServerStateContext.cs:line 140
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at Xamarin.Messaging.Ssh.MessagingEvents.OnAgentStatusChanged(AgentStatusEventArgs e) in C:\d\lanes\4699\1585aad2\source\xamarinvs\src\Messaging\Xamarin.Messaging.Ssh\MessagingEvents.cs:line 34
   at Xamarin.Messaging.Ssh.MessagingEvents.<OnConnected>b__15_0(AgentStatusMessage message) in C:\d\lanes\4699\1585aad2\source\xamarinvs\src\Messaging\Xamarin.Messaging.Ssh\MessagingEvents.cs:line 47
   at Xamarin.Messaging.Client.DefaultHandler`1.ExecuteAsync(TMessage message) in C:\d\lanes\4699\1585aad2\source\xamarinvs\src\Messaging\Xamarin.Messaging.Client\Handlers\DefaultHandler.cs:line 25
   at Xamarin.Messaging.Client.RequestHandler`1.<HandleAsync>d__5.MoveNext() in C:\d\lanes\4699\1585aad2\source\xamarinvs\src\Messaging\Xamarin.Messaging.Client\Handlers\RequestHandler.cs:line 32
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Messaging.Client.MessageHandlerManager.<>c__DisplayClass18_0`1.<<RegisterHandlerAsync>b__0>d.MoveNext() in C:\d\lanes\4699\1585aad2\source\xamarinvs\src\Messaging\Xamarin.Messaging.Client\MessageHandlerManager.cs:line 129|2017-06-05 04:17:07Z
Clide.Commands.VsCommandExtensionAdapter|Start|0|Executing command '' (ShowReleaseNotesXamarinVS).|2017-06-05 04:25:36Z
Clide.Commands.VsCommandExtensionAdapter|Stop|0|Executing command '' (ShowReleaseNotesXamarinVS).|2017-06-05 04:25:36Z
Comment 1 Matt Ward 2017-06-05 08:30:39 UTC
Can you provide information about what versions you are using? Thanks - https://developer.xamarin.com/guides/cross-platform/troubleshooting/questions/version-logs/
Comment 2 mag@xamarin.com 2017-07-03 15:56:50 UTC
Hi,
Te error message in the logs is very clear: 

Xamarin.VisualStudio.IOS.Messaging.MacServer|Error|0|The installed Xamarin.iOS (version 10.8) on the Mac Ethons-MacBook-Pro.local. (10.10.60.114) is not compatible with the local Xamarin.iOS (version 10.10), hence the connection will be cancelled. Please select a new server from the Xamarin Mac Agent dialog or install the correct Xamarin.iOS versions|2017-06-05 04:17:02Z

So, the problem is that the Xamarin iOS that you have installed on you Mac is of a lower version than what you have installed on Windows. We need that the versions are the same, or at least the Mac version higher than the Windows version. If not, we cancel the current connection to avoid runtime issues because of the incompatibility.

Please ensure to have the same versions installed (the easiest way is to install the same version of VS for Mac/Xamarin Studio on Mac, and Xamarin for Visual Studio in Windows.

Given that the connection error is expected, I will close this bug as Resolved.

Thanks.