Bug 29249 - No devices shown in Android Player
Summary: No devices shown in Android Player
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Android Player
Classification: Xamarin
Component: Device Manager ()
Version: unspecified
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: Bugzilla
URL:
: 25589 30130 ()
Depends on:
Blocks:
 
Reported: 2015-04-20 13:49 UTC by Jim Bearden
Modified: 2015-07-21 05:12 UTC (History)
7 users (show)

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


Attachments
XamarinAndroidPlayer logs for 0 downloadable images problem (2.82 KB, application/x-zip-compressed)
2015-04-28 11:39 UTC, Mirek
Details
Logfile showing issue. (3.04 KB, application/octet-stream)
2015-05-15 12:10 UTC, Richard Hopkins
Details
error while saving the device image (23.46 KB, application/octet-stream)
2015-07-21 04:22 UTC, Marco
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 FIXED

Description Jim Bearden 2015-04-20 13:49:52 UTC
The Android Player installed successfully (3 times, same result each time), but when it starts, it shows no devices, either installed or downloadable, and does not respond to any clicks anywhere to show any devices. I've attached a ZIP file of the log files, as requested.
Comment 1 Will Schaller 2015-04-23 05:52:36 UTC
Hi Jim, I can't see any logs attached, could you reupload them please?
Comment 2 Mirek 2015-04-28 11:33:40 UTC
Same problem, uploading my logs in a moment.  The error seems to be:

[15-04-28 15:24:45.50] Failed to refresh manifest: Unable to contact server to download device manifest.
[15-04-28 15:24:49.08] Unable to download manifest: System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
   at Xamarin.AndroidPlayer.API.Download.<Run>d__a.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at Xamarin.AndroidPlayer.API.XAPSystemIO.DownloadManifest()
---> (Inner Exception #0) System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
   at Xamarin.AndroidPlayer.API.Download.<Run>d__a.MoveNext()<---

Thanks,
Mirek
Comment 3 Mirek 2015-04-28 11:39:03 UTC
Created attachment 10939 [details]
XamarinAndroidPlayer logs for 0 downloadable images problem

Here is my original problem report.
I've been using XAP w/o problems with Xamarin Studio for a long time (64bit, Win8.1). a few days ago when starting an emulator I was told my Beta Player expired and I need to update it. The update went OK but after it I could not start my existing images anymore (the error message was stating they cannot be found.) I wasn't able to delete the old images from within the Manager neither. I finally deleted them manually from AppData/Roaming but now I cannot re-download them - there are still 0 downloadable devices.

I went ahead and removed the references to images in the Oracle VM VB, still no help. I uninstalled and re-installed the whole VM/XAP combo several times but am still stuck with no downloadable images.
Comment 4 Will Schaller 2015-05-13 06:36:36 UTC
*** Bug 25589 has been marked as a duplicate of this bug. ***
Comment 5 Richard Hopkins 2015-05-15 12:10:09 UTC
Created attachment 11214 [details]
Logfile showing issue.

Also have a customer (currently evaluating Xamarin for purchase) impacted by this bug.  Customer claims to have no network issues or firewall blocking XAP.  Have attached the customer's device log.
Comment 6 Will Schaller 2015-05-18 13:03:37 UTC
Seems to be at least two different issues that can cause this bug.
1. Running XAP for the first time with < 3 GB free space results in a failure to download the manifest, which is not reported to the user. This can be worked around by freeing up enough space.
2. DriveInfo doesn't support UNC paths, leading to issues with shared drives. 

We'll have an update to fix these issues soon
Comment 8 alextretij@mail.ru 2015-05-22 10:33:50 UTC
W7 X64, We use proxy.

My Log file

[15-05-22 14:08:40.78] DeviceManager version 0.3.7.2
[15-05-22 14:08:40.78] --- Device Manager started
[15-05-22 14:08:41.33] Unable to download manifest: System.AggregateException: Произошла одна или несколько ошибок. ---> System.InvalidOperationException: Последовательность не содержит соответствующий элемент
   в System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
   в Xamarin.AndroidPlayer.API.Download.<Run>d__a.MoveNext()
   --- Конец трассировки внутреннего стека исключений ---
   в System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   в System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   в Xamarin.AndroidPlayer.API.XAPSystemIO.DownloadManifest()
---> (Внутреннее исключение #0) System.InvalidOperationException: Последовательность не содержит соответствующий элемент
   в System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
   в Xamarin.AndroidPlayer.API.Download.<Run>d__a.MoveNext()<---

[15-05-22 14:08:41.33] Failed to refresh manifest: Unable to contact server to download device manifest.
[15-05-22 14:08:43.15] Unable to download manifest: System.AggregateException: Произошла одна или несколько ошибок. ---> System.InvalidOperationException: Последовательность не содержит соответствующий элемент
   в System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
   в Xamarin.AndroidPlayer.API.Download.<Run>d__a.MoveNext()
   --- Конец трассировки внутреннего стека исключений ---
   в System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   в System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   в Xamarin.AndroidPlayer.API.XAPSystemIO.DownloadManifest()
---> (Внутреннее исключение #0) System.InvalidOperationException: Последовательность не содержит соответствующий элемент
   в System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
   в Xamarin.AndroidPlayer.API.Download.<Run>d__a.MoveNext()<---

[15-05-22 14:08:43.15] Failed to refresh manifest: Unable to contact server to download device manifest.
Comment 9 Mark Simpson 2015-07-20 11:13:39 UTC
*** Bug 30130 has been marked as a duplicate of this bug. ***
Comment 10 Mark Simpson 2015-07-20 11:15:45 UTC
There was a patch to address this merged on Fri May 22 2015.

Please test 0.4.4.0 and report back.
Comment 11 Marco 2015-07-21 03:59:15 UTC
With the latest version 0.4.4.0 now I can download the images but after I insert the name of the device, the installation fails.
Comment 12 Mark Simpson 2015-07-21 04:18:18 UTC
Are you seeing similar messages in the logs to the what is posted above?

Could you generate and upload a bug report;

OS X
Load the Device Manager component of XAP. Go to "Help -> Generate Bug Report". 

Windows
Load the Device Manager component of XAP. Right click on the lower black bar
(bottom of the window) and select Generate Bug Report".

There is no feedback whilst data is being collected, but XAP will notify when
it has finished doing so. An archive is placed on the desktop in format of
"XAP_BugTool_dd-MM-yyyy_HHmmss.zip".
Comment 13 Marco 2015-07-21 04:22:35 UTC
Created attachment 12127 [details]
error while saving the device image
Comment 14 Mark Simpson 2015-07-21 05:12:32 UTC
This isn't the same issue as this bug is logged against. 

Looking at those logs, ApplicationData is being returned as a UNC path due to folder redirection set up on your network; that is a configuration that is causing the issue you are seeing.

I'm going to close this bug as the reported use case is fixed.