Bug 31331 - Build Host refuses connections after Mac wakes up
Summary: Build Host refuses connections after Mac wakes up
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 3.11 (C5)
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-06-23 14:45 UTC by Jose Gallardo
Modified: 2015-09-28 14:08 UTC (History)
4 users (show)

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

Customer Logs (deleted)
2015-06-23 14:45 UTC, Jose Gallardo

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:

Description Jose Gallardo 2015-06-23 14:45:30 UTC
Created attachment 11722 [details]
Customer Logs

This bug comes from Support case 174292.

From customer:

1. My setup:
- I have a laptop running Windows 8.1 and a Mac Mini running Yosemite.
These are physical machines. not VM.
- I am using Visual Studio on my Windows 8.1 laptop (PC) and iOS build host
is on my Mac Mini (Yosemite).
- Both machines are connected to my local network (DHCP) and have access to
the internet.
- Yes, IP address changes occasionally (like once in a month or longer).
But I thought VS is detecting the Build Host by Mac computer name, like
- My PC is wire-connected to my local network and my Mac Mini is connected
thru WiFi.

2. Both my PC and Mac will go to sleep, sometimes the Mac sleeps first.
When my Mac wakes up, my PC lost the connection to the Build Server on the
- When this happens, I try to manually connect using the IP address on my
Mac (as explained before) but that doesn't work as well.
- It works when i rebooted my PC and my Mac. After awhile, the same problem

*Visual Studio version info: *

Microsoft Visual Studio Community 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.6.00057

Installed Version: Professional

Team Explorer for Visual Studio 2013 06177-004-0444002-02195
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013 06177-004-0444002-02195
Microsoft Visual Basic 2013

Visual C# 2013 06177-004-0444002-02195
Microsoft Visual C# 2013

Visual C++ 2013 06177-004-0444002-02195
Microsoft Visual C++ 2013

Visual F# 2013 06177-004-0444002-02195
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker 06177-004-0444002-02195
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993
by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition
Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from
Lernout & Hauspie Speech Products N.V. All rights reserved.

Windows Phone SDK 8.0 - ENU 06177-004-0444002-02195
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package 1.0
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 12.4.51016.0
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Microsoft Azure Websites
Web publishing: Extensions for publishing ASP.NET web projects to hosting
providers, on-premises servers, or Microsoft Azure

ASP.NET Web Frameworks and Tools 2012.2 4.1.21001.0
For additional information, visit

ASP.NET Web Frameworks and Tools 2013 5.2.21010.0
For additional information, visit http://www.asp.net/

Common Azure Tools 1.3
Provides common services for use by Azure Mobile Services and Microsoft
Azure Tools.

Microsoft Advertising SDK for Windows Phone
Microsoft Advertising SDK for Windows Phone

Microsoft Azure Mobile Services Tools 1.3
Microsoft Azure Mobile Services Tools

NuGet Package Manager 2.8.60318.734
NuGet Package Manager in Visual Studio. For more information about NuGet,
visit http://docs.nuget.org/.

PowerShell Tools 1.3
Provides file classification services using PowerShell

PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from
the PreEmptive Analytics product.

SQL Server Data Tools 12.0.41012.0
Microsoft SQL Server Data Tools

Windows Phone 8.1 SDK Integration 1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the
menus and controls of Visual Studio.

Xamarin 3.11.590.0 (5160db7)
Visual Studio extension to enable development for Xamarin.iOS and

Xamarin.Android (d419c934e6ce2113653ff4c40214e3a5d5a69440)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.Forms Intellisense 1.0
Provides intellisense for Xamarin.Forms in the XML editor.

Xamarin.iOS (fce006eae308515fc1eaf85fcc0f90699d9c7e8b)
Visual Studio extension to enable development for Xamarin.iOS.

Xamarin.iOS Unified Migration 1.0
Automated migration for Xamarin iOS Classic projects to Unified

Xamarin.TestCloud.Integration 1.0
Early preview of Xamarin Test Cloud integration

*Version Info from Xamarin Studio:*
=== Xamarin Studio ===

Version 5.9.3 (build 1)
Installation UUID: 4f5a6bc8-88da-4cba-a10f-edf6d0873fc5
Mono 4.0.1 ((detached/ed1d3ec)
GTK+ 2.24.23 (Raleigh theme)

Package version: 400010044

=== Xamarin.Android ===

Version: (Business Edition)
Android SDK:
Supported Android versions:
2.3 (API level 10)
4.0.3 (API level 15)
4.4 (API level 19)
5.0 (API level 21)
Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Not Installed

=== Apple Developer Tools ===

Xcode 6.3.2 (7718)
Build 6D2105

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: e6ebd18
Branch: master
Build date: 2015-05-21 21:55:09-0400

=== Xamarin.Mac ===

Version: (Starter Edition)

=== Build Information ===

Release ID: 509030001
Git revision: 5a524e1726ed103fdd4fe37e0356f2b35466ce9d
Build date: 2015-06-02 16:35:08-04
Xamarin addins: 51957cfbd06be911b212671ad05c2c6221ac90f9

=== Operating System ===

Mac OS X 10.10.3
Darwin Casper-Mac.local 14.3.0 Darwin Kernel Version 14.3.0
Mon Mar 23 11:59:05 PDT 2015
root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64

From my investigation:

When Mac Mini goes to sleep, it keeps the old connection opened, hence it won't accept the VS reconnection.

A workaround for this issue is:

1. Close the Xamarin.iOS Build Host on the Mac (Menu option "Quit Xamarin.iOS Build Host" or Command - Q)
2. Open the Build Host again
3. Refresh Build Server Info on VS
Comment 2 Enzo Heredia 2015-09-28 14:08:39 UTC
With implementation of XMA this is not reproducible.