Bug 18049 - List of available Android devices is not always updated
Summary: List of available Android devices is not always updated
Status: RESOLVED DUPLICATE of bug 16865
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Add-in ()
Version: 4.3.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: master
Assignee: Mikayla Hutchinson [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2014-02-27 08:22 UTC by René Ruppert
Modified: 2014-03-22 17:32 UTC (History)
2 users (show)

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


Attachments
All logs (5.13 KB, application/zip)
2014-03-20 16:30 UTC, René Ruppert
Details


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:
Status:
RESOLVED DUPLICATE of bug 16865

Description René Ruppert 2014-02-27 08:22:07 UTC
Today during a Xamarin University session I had to quit and restart XS every time I would open a new solution. Otherwise the list of available Android device did not show the active devices (a physical Nexus 7 and a Genymotion emulator instance).
So we are not talking about an emulator problem but about discovering devices in general. Even hitting the "Refresh" button did not help.

Once I managed to deploy the app, I had the opposite effect: XS kept on deploying to the same device over and over. It completely refused to show the device selection dialog. Currently I cannot deploy to my Nexus 7 because it always pushes the app to the Genymotion instance.

If this happens the next time, I can check logs or whatever you need. Just let me know what I should try.

=== Xamarin Studio ===

Version 4.3.3 (build 2)
Installation UUID: b8bdc5a1-348b-4fad-8e4f-4632ee990c59
Runtime:
	Mono 3.2.7 ((no/40f92d5)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 302070000

=== Xamarin.Android ===

Version: 4.12.0 (Business Edition)
Android SDK: /Users/rene/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.2   (API level 17)
		4.3   (API level 18)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Apple Developer Tools ===

Xcode 5.0.2 (3335.32)
Build 5A3005

=== Xamarin.Mac ===

Xamarin.Mac: Not Installed

=== Xamarin.iOS ===

Version: 7.0.6.168 (Business Edition)
Hash: 2ed9bc9
Branch: 
Build date: 2014-21-01 06:33:05-0500

=== Build Information ===

Release ID: 403030002
Git revision: 89301538d2f1e41888247489294fdb08a6888119
Build date: 2014-02-23 23:26:23-05
Xamarin addins: 21512f84ba13e6f7264bb24d505927e2b302c81c

=== Operating System ===

Mac OS X 10.9.1
Darwin Renes-iMac.local 13.0.0 Darwin Kernel Version 13.0.0
    Thu Sep 19 22:22:27 PDT 2013
    root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
Comment 1 Mikayla Hutchinson [MSFT] 2014-02-27 17:24:13 UTC
1) This is almost certainly a bug in the Google adb server, which is notoriously unreliable. If you attach log files I can check.

2) The device picker is only shown when you have not selected a device. When you have selected a device, you can change the active device with the Project -> Android Device Target menu.
Comment 2 René Ruppert 2014-02-27 18:28:59 UTC
What log files do you need and where do I find them?
Comment 3 Mikayla Hutchinson [MSFT] 2014-02-27 18:43:30 UTC
Help->Open Log Directory
Comment 4 René Ruppert 2014-03-20 16:24:33 UTC
See logs attached below. I notice that my Device (Nexus 7) shows up but not the Genymotion Emulator. If I press "refresh", the Nexus is also gone, never to come back.

[2014-03-20 21:17:49.1] ERROR: Adb server launch operation failed: cannot bind 'tcp:5037'
* daemon not running. starting it now on port 5037 *
ADB server didn't ACK
* failed to start daemon *

[2014-03-20 21:18:01.3] INFO: Adb server kill operation completed
[2014-03-20 21:18:01.3] INFO: Starting Android device monitor
[2014-03-20 21:18:01.5] ERROR: Adb server launch operation failed: 
[2014-03-20 21:18:22.5] INFO: Adb server kill operation completed
[2014-03-20 21:18:22.5] INFO: Starting Android device monitor
[2014-03-20 21:18:22.7] ERROR: Adb server launch operation failed: 
[2014-03-20 21:18:23.0] INFO: Adb server kill operation completed
[2014-03-20 21:18:23.0] INFO: Starting Android device monitor
[2014-03-20 21:18:23.1] INFO: Stopping Android device monitor
[2014-03-20 21:18:23.1] INFO: Adb server kill operation completed
[2014-03-20 21:18:23.1] INFO: Starting Android device monitor
[2014-03-20 21:18:23.3] INFO: Stopping Android device monitor
[2014-03-20 21:18:23.3] INFO: Adb server kill operation completed
[2014-03-20 21:18:23.3] INFO: Starting Android device monitor
[2014-03-20 21:18:23.4] INFO: Stopping Android device monitor
[2014-03-20 21:18:23.4] INFO: Adb server kill operation completed
[2014-03-20 21:18:23.4] INFO: Starting Android device monitor
[2014-03-20 21:18:23.6] INFO: Stopping Android device monitor
[2014-03-20 21:18:23.6] INFO: Adb server kill operation completed
[2014-03-20 21:18:23.6] INFO: Starting Android device monitor
[2014-03-20 21:18:23.7] INFO: Stopping Android device monitor
[2014-03-20 21:18:23.7] INFO: Adb server kill operation completed
[2014-03-20 21:18:23.7] INFO: Starting Android device monitor
[2014-03-20 21:18:23.9] ERROR: Adb server launch operation failed: 
[2014-03-20 21:19:05.6] INFO: Adb server kill operation completed
[2014-03-20 21:19:05.6] ERROR: Error killing adb server
System.Net.Sockets.SocketException: Connection refused
  at System.Net.Sockets.Socket+SocketAsyncResult.CheckIfThrowDelayedException () [0x00035] in /private/tmp/source/bockbuild-mono-3.2.7-branch/profiles/mono-mac-xamarin/build-root/mono-3.2.7/mcs/class/System/System.Net.Sockets/Socket_2_1.cs:208 
  at System.Net.Sockets.Socket.EndConnect (IAsyncResult result) [0x0008b] in /private/tmp/source/bockbuild-mono-3.2.7-branch/profiles/mono-mac-xamarin/build-root/mono-3.2.7/mcs/class/System/System.Net.Sockets/Socket.cs:1294 
  at System.Net.Sockets.TcpClient.EndConnect (IAsyncResult asyncResult) [0x00000] in /private/tmp/source/bockbuild-mono-3.2.7-branch/profiles/mono-mac-xamarin/build-root/mono-3.2.7/mcs/class/System/System.Net.Sockets/TcpClient.cs:372 
  at Mono.AndroidTools.Adb.AdbClient.EndConnect (IAsyncResult asyncResult) [0x00002] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.3.3-branch/e2e118a5/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Mono.AndroidTools/Adb/AdbClient.cs:120 
[2014-03-20 21:19:05.6] INFO: Starting Android device monitor
[2014-03-20 21:19:06.1] INFO: Stopping Android device monitor
[2014-03-20 21:19:06.1] INFO: Adb server kill operation completed
[2014-03-20 21:19:06.1] INFO: Starting Android device monitor
[2014-03-20 21:19:09.1] INFO: Adb server launch operation completed
[2014-03-20 21:19:09.1] INFO: Creating android device tracker
[2014-03-20 21:19:09.1] DEBUG: TrackDeviceTask got: 
[2014-03-20 21:19:09.1] INFO: Got new device list from adb
[2014-03-20 21:19:37.6] INFO: Stopping Android device monitor
[2014-03-20 21:19:37.6] INFO: Adb server kill operation completed
[2014-03-20 21:19:37.6] INFO: Starting Android device monitor
[2014-03-20 21:19:37.8] ERROR: Adb server launch operation failed: 
[2014-03-20 21:19:38.3] INFO: Starting Android device monitor
[2014-03-20 21:19:41.3] INFO: Adb server launch operation completed
[2014-03-20 21:19:41.3] INFO: Creating android device tracker
[2014-03-20 21:19:41.3] DEBUG: TrackDeviceTask got: 015d456da6340013	device
[2014-03-20 21:19:41.3] INFO: Got new device list from adb
[2014-03-20 21:19:41.3] DEBUG: RunShellCommand: 015d456da6340013 getprop



INFO [2014-03-20 21:18:01Z]: ANDROID: Adb server kill operation completed
INFO [2014-03-20 21:18:01Z]: ANDROID: Starting Android device monitor
ERROR [2014-03-20 21:18:01Z]: ANDROID: Adb server launch operation failed: 
INFO [2014-03-20 21:18:22Z]: ANDROID: Adb server kill operation completed
INFO [2014-03-20 21:18:22Z]: ANDROID: Starting Android device monitor
ERROR [2014-03-20 21:18:22Z]: ANDROID: Adb server launch operation failed: 
INFO [2014-03-20 21:18:23Z]: ANDROID: Adb server kill operation completed
INFO [2014-03-20 21:18:23Z]: ANDROID: Starting Android device monitor
INFO [2014-03-20 21:18:23Z]: ANDROID: Stopping Android device monitor
INFO [2014-03-20 21:18:23Z]: ANDROID: Adb server kill operation completed
INFO [2014-03-20 21:18:23Z]: ANDROID: Starting Android device monitor
INFO [2014-03-20 21:18:23Z]: ANDROID: Stopping Android device monitor
INFO [2014-03-20 21:18:23Z]: ANDROID: Adb server kill operation completed
INFO [2014-03-20 21:18:23Z]: ANDROID: Starting Android device monitor
INFO [2014-03-20 21:18:23Z]: ANDROID: Stopping Android device monitor
INFO [2014-03-20 21:18:23Z]: ANDROID: Adb server kill operation completed
INFO [2014-03-20 21:18:23Z]: ANDROID: Starting Android device monitor
INFO [2014-03-20 21:18:23Z]: ANDROID: Stopping Android device monitor
INFO [2014-03-20 21:18:23Z]: ANDROID: Adb server kill operation completed
INFO [2014-03-20 21:18:23Z]: ANDROID: Starting Android device monitor
INFO [2014-03-20 21:18:23Z]: ANDROID: Stopping Android device monitor
INFO [2014-03-20 21:18:23Z]: ANDROID: Adb server kill operation completed
INFO [2014-03-20 21:18:23Z]: ANDROID: Starting Android device monitor
ERROR [2014-03-20 21:18:23Z]: ANDROID: Adb server launch operation failed: 
INFO [2014-03-20 21:19:05Z]: ANDROID: Adb server kill operation completed
ERROR [2014-03-20 21:19:05Z]: ANDROID: Error killing adb server
System.Net.Sockets.SocketException: Connection refused
  at System.Net.Sockets.Socket+SocketAsyncResult.CheckIfThrowDelayedException () [0x00035] in /private/tmp/source/bockbuild-mono-3.2.7-branch/profiles/mono-mac-xamarin/build-root/mono-3.2.7/mcs/class/System/System.Net.Sockets/Socket_2_1.cs:208 
  at System.Net.Sockets.Socket.EndConnect (IAsyncResult result) [0x0008b] in /private/tmp/source/bockbuild-mono-3.2.7-branch/profiles/mono-mac-xamarin/build-root/mono-3.2.7/mcs/class/System/System.Net.Sockets/Socket.cs:1294 
  at System.Net.Sockets.TcpClient.EndConnect (IAsyncResult asyncResult) [0x00000] in /private/tmp/source/bockbuild-mono-3.2.7-branch/profiles/mono-mac-xamarin/build-root/mono-3.2.7/mcs/class/System/System.Net.Sockets/TcpClient.cs:372 
  at Mono.AndroidTools.Adb.AdbClient.EndConnect (IAsyncResult asyncResult) [0x00002] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.3.3-branch/e2e118a5/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Mono.AndroidTools/Adb/AdbClient.cs:120 
INFO [2014-03-20 21:19:05Z]: ANDROID: Starting Android device monitor
INFO [2014-03-20 21:19:06Z]: ANDROID: Stopping Android device monitor
INFO [2014-03-20 21:19:06Z]: ANDROID: Adb server kill operation completed
INFO [2014-03-20 21:19:06Z]: ANDROID: Starting Android device monitor
INFO [2014-03-20 21:19:09Z]: ANDROID: Adb server launch operation completed
INFO [2014-03-20 21:19:09Z]: ANDROID: Creating android device tracker
INFO [2014-03-20 21:19:09Z]: ANDROID: Got new device list from adb
INFO [2014-03-20 21:19:37Z]: ANDROID: Stopping Android device monitor
INFO [2014-03-20 21:19:37Z]: ANDROID: Adb server kill operation completed
INFO [2014-03-20 21:19:37Z]: ANDROID: Starting Android device monitor
ERROR [2014-03-20 21:19:37Z]: ANDROID: Adb server launch operation failed: 
INFO [2014-03-20 21:19:38Z]: ANDROID: Starting Android device monitor
INFO [2014-03-20 21:19:41Z]: ANDROID: Adb server launch operation completed
INFO [2014-03-20 21:19:41Z]: ANDROID: Creating android device tracker
INFO [2014-03-20 21:19:41Z]: ANDROID: Got new device list from adb
INFO [2014-03-20 21:20:31Z]: ANDROID: Stopping Android device monitor
INFO [2014-03-20 21:20:31Z]: ANDROID: Adb server kill operation completed
INFO [2014-03-20 21:20:31Z]: ANDROID: Starting Android device monitor
INFO [2014-03-20 21:20:32Z]: ANDROID: Stopping Android device monitor
INFO [2014-03-20 21:20:32Z]: ANDROID: Adb server kill operation completed
INFO [2014-03-20 21:20:32Z]: ANDROID: Starting Android device monitor
INFO [2014-03-20 21:20:33Z]: ANDROID: Stopping Android device monitor
INFO [2014-03-20 21:20:33Z]: ANDROID: Adb server kill operation completed
INFO [2014-03-20 21:20:33Z]: ANDROID: Starting Android device monitor
ERROR [2014-03-20 21:20:33Z]: ANDROID: Adb server launch operation failed: 
INFO [2014-03-20 21:20:33Z]: ANDROID: Adb server kill operation completed
ERROR [2014-03-20 21:20:33Z]: ANDROID: Error killing adb server
System.Net.Sockets.SocketException: Connection refused
  at System.Net.Sockets.Socket+SocketAsyncResult.CheckIfThrowDelayedException () [0x00035] in /private/tmp/source/bockbuild-mono-3.2.7-branch/profiles/mono-mac-xamarin/build-root/mono-3.2.7/mcs/class/System/System.Net.Sockets/Socket_2_1.cs:208 
  at System.Net.Sockets.Socket.EndConnect (IAsyncResult result) [0x0008b] in /private/tmp/source/bockbuild-mono-3.2.7-branch/profiles/mono-mac-xamarin/build-root/mono-3.2.7/mcs/class/System/System.Net.Sockets/Socket.cs:1294 
  at System.Net.Sockets.TcpClient.EndConnect (IAsyncResult asyncResult) [0x00000] in /private/tmp/source/bockbuild-mono-3.2.7-branch/profiles/mono-mac-xamarin/build-root/mono-3.2.7/mcs/class/System/System.Net.Sockets/TcpClient.cs:372 
  at Mono.AndroidTools.Adb.AdbClient.EndConnect (IAsyncResult asyncResult) [0x00002] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.3.3-branch/e2e118a5/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Mono.AndroidTools/Adb/AdbClient.cs:120 
INFO [2014-03-20 21:20:33Z]: ANDROID: Starting Android device monitor
INFO [2014-03-20 21:20:36Z]: ANDROID: Adb server launch operation completed
INFO [2014-03-20 21:20:36Z]: ANDROID: Creating android device tracker
INFO [2014-03-20 21:20:36Z]: ANDROID: Got new device list from adb
INFO [2014-03-20 21:20:41Z]: ANDROID: Stopping Android device monitor
INFO [2014-03-20 21:20:41Z]: ANDROID: Adb server kill operation completed
INFO [2014-03-20 21:20:41Z]: ANDROID: Starting Android device monitor
ERROR [2014-03-20 21:20:41Z]: ANDROID: Adb server launch operation failed:
Comment 5 René Ruppert 2014-03-20 16:29:56 UTC
Here is one more piece of log. Here I tried:

* Genymotion device is up and running (just restarted).
* Nexus 7 is connected via USB but sleeping.
* I run my app.
* The device selector shows the Genymotion device ONLY.
* I click "refresh".
* The Genymotion device is GONE

[2014-03-20 21:25:33.9] INFO: Adb server kill operation completed
[2014-03-20 21:25:33.9] ERROR: Error killing adb server
System.Net.Sockets.SocketException: Connection refused
  at System.Net.Sockets.Socket+SocketAsyncResult.CheckIfThrowDelayedException () [0x00035] in /private/tmp/source/bockbuild-mono-3.2.7-branch/profiles/mono-mac-xamarin/build-root/mono-3.2.7/mcs/class/System/System.Net.Sockets/Socket_2_1.cs:208 
  at System.Net.Sockets.Socket.EndConnect (IAsyncResult result) [0x0008b] in /private/tmp/source/bockbuild-mono-3.2.7-branch/profiles/mono-mac-xamarin/build-root/mono-3.2.7/mcs/class/System/System.Net.Sockets/Socket.cs:1294 
  at System.Net.Sockets.TcpClient.EndConnect (IAsyncResult asyncResult) [0x00000] in /private/tmp/source/bockbuild-mono-3.2.7-branch/profiles/mono-mac-xamarin/build-root/mono-3.2.7/mcs/class/System/System.Net.Sockets/TcpClient.cs:372 
  at Mono.AndroidTools.Adb.AdbClient.EndConnect (IAsyncResult asyncResult) [0x00002] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.3.3-branch/e2e118a5/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Mono.AndroidTools/Adb/AdbClient.cs:120 
[2014-03-20 21:25:33.9] INFO: Starting Android device monitor
[2014-03-20 21:25:34.1] INFO: Stopping Android device monitor
[2014-03-20 21:25:34.1] INFO: Adb server kill operation completed
[2014-03-20 21:25:34.1] INFO: Starting Android device monitor
[2014-03-20 21:25:34.5] INFO: Stopping Android device monitor
[2014-03-20 21:25:34.5] INFO: Adb server kill operation completed
[2014-03-20 21:25:34.5] INFO: Starting Android device monitor
[2014-03-20 21:25:37.5] INFO: Adb server launch operation completed
[2014-03-20 21:25:37.5] INFO: Creating android device tracker
[2014-03-20 21:25:37.5] DEBUG: TrackDeviceTask got: 
[2014-03-20 21:25:37.5] INFO: Got new device list from adb
[2014-03-20 21:25:56.5] DEBUG: TrackDeviceTask got: 192.168.56.101:5555	offline
[2014-03-20 21:25:56.5] INFO: Got new device list from adb
[2014-03-20 21:25:56.5] DEBUG: TrackDeviceTask got: 192.168.56.101:5555	device
[2014-03-20 21:25:56.5] INFO: Got new device list from adb
[2014-03-20 21:25:56.5] DEBUG: RunShellCommand: 192.168.56.101:5555 getprop
[2014-03-20 21:26:22.1] INFO: Stopping Android device monitor
[2014-03-20 21:26:22.1] INFO: Adb server kill operation completed
[2014-03-20 21:26:22.1] INFO: Starting Android device monitor
[2014-03-20 21:26:22.3] ERROR: Adb server launch operation failed: cannot bind 'tcp:5037'
* daemon not running. starting it now on port 5037 *
ADB server didn't ACK
* failed to start daemon *

[2014-03-20 21:26:26.5] INFO: Adb server kill operation completed
[2014-03-20 21:26:26.5] INFO: Starting Android device monitor
[2014-03-20 21:26:26.7] ERROR: Adb server launch operation failed:
Comment 6 René Ruppert 2014-03-20 16:30:56 UTC
Created attachment 6368 [details]
All logs
Comment 7 Mikayla Hutchinson [MSFT] 2014-03-22 17:32:29 UTC
Devices connected to adb as "tcpip" devices aren't supported yet.

*** This bug has been marked as a duplicate of bug 16865 ***