Bug 29367 - Failed to initialize device (VirtualBox terminated unexpectedly during startup with exit code -1073741819 (0xc0000005))
Summary: Failed to initialize device (VirtualBox terminated unexpectedly during startu...
Alias: None
Product: Xamarin Android Player
Classification: Xamarin
Component: Player ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-04-24 00:18 UTC by Alvaro Torres
Modified: 2015-10-21 09:26 UTC (History)
5 users (show)

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

Log and screens (43.71 KB, application/octet-stream)
2015-04-24 00:18 UTC, Alvaro Torres
KitKat VirtualBox log (15.69 KB, application/octet-stream)
2015-04-25 13:45 UTC, Alvaro Torres

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:

Description Alvaro Torres 2015-04-24 00:18:26 UTC
Created attachment 10891 [details]
Log and screens

Windows 8.1 64x
Clean install
Start player, click en "Play button", wait one minute and:

Timed out waiting for IP address

If I try sto start from VirtualBox, the error is:

Failed to open a session for the virtual machine Nexus 5 (Lollipop).

The virtual machine 'Nexus 5 (Lollipop)' has terminated unexpectedly during startup with exit code -1073741819 (0xc0000005).  More details may be available in 'C:\Users\Alvaro\AppData\Roaming\XamarinAndroidPlayer\VMStorageLibrary\Nexus 5 (Lollipop)\Logs\VBoxStartup.log'.

Result Code: E_FAIL (0x80004005)
Component: Machine
Interface: IMachine {480cf695-2d8d-4256-9c7c-cce4184fa048}
Comment 1 Will Schaller 2015-04-24 10:56:07 UTC
Hi Alvaro, can you run Kitkat or Lollipop devices or do you get the same error?

This looks like an issue with VirtualBox, and seems to be quite common:

Some posts on the VirtualBox forums suggest it's due to security hardening in newer versions and suggest uninstalling VirtualBox and rolling back to version 4.3.12. Perhaps you could see if that helps?

I'll try and find some more information on the VirtualBox issue.
Comment 2 Alvaro Torres 2015-04-25 13:44:39 UTC
Hi Will..

Kitkat message:
- Failed to initialize device Nexus 4 (KitKat)
- Device is incorrectly configured and cannot start

Trying from VirtualBox (4.3.26.r98988):
Failed to open a session for the virtual machine Nexus 4 (KitKat).

The virtual machine 'Nexus 4 (KitKat)' has terminated unexpectedly during startup with exit code -1073741819 (0xc0000005).  More details may be available in 'C:\Users\Alvaro\AppData\Roaming\XamarinAndroidPlayer\VMStorageLibrary\Nexus 4 (KitKat)\Logs\VBoxStartup.log'.

Result Code: E_FAIL (0x80004005)
Component: Machine
Interface: IMachine {480cf695-2d8d-4256-9c7c-cce4184fa048}

Please see the log files.
Comment 3 Alvaro Torres 2015-04-25 13:45:31 UTC
Created attachment 10902 [details]
KitKat VirtualBox log
Comment 4 Ben Brewer 2015-07-21 11:39:05 UTC
We have been unable to reproduce this, it would be useful if it could be
reproduced with the latest build which produces more logging.
Comment 5 Ram Chandra 2015-07-29 10:56:51 UTC
We have checked this issue with latest XAP, i.e.  XAP:15.29-v0.4.4 and we are unable to reproduce the reported behavior. 

If you're still experiencing the issue, it may help completely clean your install and reinstall the latest XAP build.

Please follow following steps to completely clean your XAP installation:

1) Uninstall previous versions of XAP.
2) Open up VirtualBox and remove all of the XAP devices, choose to delete files.
3) Open the VirtualBox Virtual Media Manager and ensure there are no data.vdi, system.vdi or sdcard.vdi files remaining. If there are, release and remove them.
4) Delete C:\ProgramData\AndroidPlayer

As of now, I am marking this issue as RESOLVED NOT_REPRODUCIBLE. Please feel free to reopen it if you will face this issue again after completely clean the XAP.