Bug 56919 - VS intermittent fails to start AVD
Summary: VS intermittent fails to start AVD
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 4.5.0 (15.2)
Hardware: PC Windows
: Normal normal
Target Milestone: 15.4
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-05-28 10:34 UTC by Magnus Johansson
Modified: 2017-07-25 12:22 UTC (History)
5 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:
VERIFIED FIXED

Description Magnus Johansson 2017-05-28 10:34:44 UTC
Every now and then VS, decides it doesn't want to play ball regarding AVDs.
It just fails with:
1>Starting deploy Nexus_5X_API_23 ...
1>Starting emulator Nexus_5X_API_23 ...
1>C:\Users\Magnus\AppData\Local\Android\ANDROI~1\tools\emulator.EXE -partition-size 512 -no-boot-anim -avd Nexus_5X_API_23 -prop monodroid.avdname=Nexus_5X_API_23
1>Warning: requested ram_size 1536M too big, reduced to 512MHax is enabled
1>
1>Hax ram_size 0x20000000
1>HAX is working and emulator runs in fast virt mode.
1>qemu-system-i386.exe: -drive if=none,index=1,id=cache,file=C:\Users\Magnus\.android\avd\Nexus_5X_API_23.avd/cache.img: could not open disk image C:\Users\Magnus\.android\avd\Nexus_5X_API_23.avd/cache.img: Could not open 'C:\Users\Magnus\.android\avd\Nexus_5X_API_23.avd/cache.img': Invalid argument
1>Emulator Nexus_5X_API_23 cannot be started.
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
Comment 1 Juan Marcelo Tondato 2017-05-30 17:33:39 UTC
Hi Magnus,

It looks like an issue with the emulator.

Could you try the following workaround: try to launch emulator from AVD Manager and you could check if this tools provide some fix to do to the emulator.
Comment 2 Juan Marcelo Tondato 2017-06-29 14:05:47 UTC
Hi Magnus,
I cannot reproduce this bug, I'll mark the bug as resolved fixed.
Please feel free to reopen it if you can still reproduce the issue with current stable release.
Thanks!