Virtual device not starting

:backhand_index_pointing_right: Bug Description


1. Summary

After installing and configuring everything, I wanted to test the development environment using the hello world template.

Once I “installed” the template, I tried running the VirtualDevice:Tv, but after around 1 min, it crashes with the following message:

App Name: N/A
App Link on Amazon Appstore N/A

Bug Severity
Select one that applies

  • Impacts the development of the app ← can’t select it

2. Steps to Reproduce

  1. Follow the steps to install vega and its dependencies Install the Vega SDK | Vega Get Started
  2. Follow the steps to create a hello world app from the template Create a Hello World App | Vega Get Started
  3. Try to launch this app using the VVD

3. Observed Behavior

Explain what actually happened, noting any discrepancies or malfunctions.

Once everything was set up, I tried running the VirtualDevice:Tv from vsCode, using the Vega Estudio extension. After pressing the play button, it shows the screen with the kepler virtual device in black.

After around 1 min, it crashes with the following message in vsCode Console:

[warning] kepler operation FAILED due to an irrecoverable error: The virtual device failed to start within the expected time.

Tried troubleshooting using the provided common issues in the documentation (ADDED the parameter to increase the timeout to 1000, and still failed)

None of the options provided works.

4. Expected Behavior

Describe what you expected the SDK to do under normal operation.

It should run the application just as the example shows

4.a Possible Root Cause & Temporary Workaround

Fill out anything you have tried. If you don’t know, N/A is acceptable

https://developer.amazon.com/docs/vega/0.21/kvd-issues.html 

Tried all known issues in this link related to vvd not launching

5. Logs or crash report

(Please make sure to provide relevant logs as attachment)

(CAN’T add logs, new user)

  •  ~/.vscode/extensions/amazon.kepler-extension-<version>/ExtensionLogs
     ~/.vscode/extensions/amazon.kepler-ui-extension-<version>/ExtensionLogs
    

6. Environment

Please fill out the fields related to your bug below:

  • SDK Version: Output of kepler --version 0.21.4726

  • App State: [Foreground/Background]

  • OS Information
    Please ssh into the device via kepler exec vda shelland copy the output from cat /etc/os-releaseinto the answer section below. Note, if you don’t have a simulator running or device attached kepler exec vda shell will respond with vda: no devices/emulators found

    No device running, this is exactly why I'm reporting, it doesn't run.
    

7. Example Code Snippet / Screenshots / Screengrabs

Include any relevant code or component setup in React Native that can help reproduce the bug.

N/A is the same template for hello world

:backhand_index_pointing_right: Playback Issues


N/A


:backhand_index_pointing_right: Additional Context


Any Additional Context you would like to provide?
Add any other relevant information, such as recent updates to the SDK, dependencies, or device OS that may affect the bug.

<!-- Answer here if applicable  --> 

Hi @Yorki_Bonilla,

Welcome to the community!

Would you be able to provide more information about this issue?

  • Once Vega Virtual Device gets started, it should show a screen like below (with a text saying that it is ready). Please share a screenshot if your observation is different.
  • Share the content of ‘Output’ window from VS code when the output source is ‘Kepler’
  • Share contents of virtual_device.err and virtual_device.out files from the path ~/kepler/sdk/0.21.4726/kvd/instances/<instance-id>?
  • Check troubleshooting options from this page and share your observations

Regards,
Siva

Here is the required information:

Black screen when starting the vega virtual device, after sometime it crashes: (The image is not uploading for some reason, but is your same page, but black, no message or anything. The remote control on the right, and the left screen all black until it crashes)

The logs in Visual Studio Code show this:

  1. [info] Kepler device simulator start
  2. [info] Launching default instance
  3. [info] Waiting for virtual device to boot
  4. [info] Launch process complete
  5. [info] Launch failed with error code 0
  6. [info] Cleaning up. Killing virtual device process with pid 3969
  7. [warning] Kepler operation FAILED due to an irrecoverable error: The virtual device failed to start within the expected time. Additional logs can be found at /home/username/.kepler/logs

virtual_device.err content:

WARNING | Please update the emulator to one that supports the feature(s): AllowSnapshotMigration, AsyncComposeSupport, CarRotary, CarVHalTable, CarVhalReplay, DynamicMediaProfile, FastSnapshotV1, ForceANGLE, ForceSwiftshader, GLPipeChecksum, GenericSnapshotsUI, GuestUsesAngle, HAXM, HVF, HYPERV, HasSharedSlotsHostMemoryAllocator, IpDisconnectOnLoad, KVM, LocationUiV2, NetsimCliUi, NetsimWebUi, NoDelayCloseColorBuffer, NoDeviceFrame, OnDemandSnapshotLoad, QuickbootFileBacked, ScreenRecording, SnapshotAdb, TvRemote, VideoPlayback, VirtioGpuFenceContexts, VirtioGpuNativeSync, VirtualScene, Vulkan, VulkanAstcLdrEmulation, VulkanShaderFloat16Int8, VulkanSnapshots, VulkanYcbcrEmulation, WiFiPacketStream, WindowsHypervisorPlatform, WindowsOnDemandSnapshotLoad
WARNING | encryption is off
WARNING | Could not setup modem simulator config files, modem simulator disabled.
WARNING | FeatureControl is requesting a non existing feature.
WARNING | FeatureControl is requesting a non existing feature. (3x)
WARNING | cannot add library /home/yorkibonilla/kepler/sdk/0.21.4726/kvd/images/tv/vmtools/agent/qemu/linux-x86_64/lib64/vulkan/libvulkan.so: failed
WARNING: Image format was not specified for '/home/yorkibonilla/kepler/sdk/0.21.4726/kvd/instances/d6d82d7e-86af-4cf9-b85e-8a6342eb5cbd/misc.img' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.
WARNING: Image format was not specified for '/home/yorkibonilla/kepler/sdk/0.21.4726/kvd/instances/d6d82d7e-86af-4cf9-b85e-8a6342eb5cbd/keys.ext4' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.
WARNING: Image format was not specified for '/home/yorkibonilla/kepler/sdk/0.21.4726/kvd/instances/d6d82d7e-86af-4cf9-b85e-8a6342eb5cbd/idme.img' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.
WARNING: Image format was not specified for '/home/yorkibonilla/kepler/sdk/0.21.4726/kvd/instances/d6d82d7e-86af-4cf9-b85e-8a6342eb5cbd/cache.ext4' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.
WARNING: cannnot unmap ptr 0x7cbc8f801000 as it is in the protected range from 0x7cbb8f800000 to 0x7cbc8fa00000
pc_memory_init: above 4g size: 40000000
WARNING | Device 'misc' is writable but does not support snapshots.
WARNING | Failed to load snapshot 'default_boot'
WARNING | Cold boot: current configuration doesn't support snapshots
virtio_gpu_set_features: virtio gpu has eventidx
gl_version 30 - es profile enabled
WARNING: running without ARB/KHR robustness in place may crash
sPrepareTexImage2D:3614 failed validation
sPrepareTexImage2D:3614 failed validation
sPrepareTexImage2D:3613 failed validation
sPrepareTexImage2D:3614 failed validation
sPrepareTexImage2D:3614 failed validation
sPrepareTexImage2D:3614 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3613 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3613 failed validation
sPrepareTexImage2D:3613 failed validation
sPrepareTexImage2D:3613 failed validation
sPrepareTexImage2D:3613 failed validation
sPrepareTexImage2D:3613 failed validation
sPrepareTexImage2D:3613 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3616 failed validation
sPrepareTexImage2D:3628 failed validation
sPrepareTexImage2D:3628 failed validation
sPrepareTexImage2D:3613 failed validation
sPrepareTexImage2D:3613 failed validation

virtual_device.out content:

INFO    | Storing crashdata in: /tmp/android-yorkibonilla/emu-crash-34.1.15.db, detection is enabled for process: 3969
INFO    | Duplicate loglines will be removed, if you wish to see each individual line launch with the -log-nofilter flag.
INFO    | Changing default hw.initialOrientation to portrait
INFO    | Disabling SD Card suppor due to DownloadableSnapshot feature
INFO    | Warning: Could not find the Qt platform plugin "wayland" in "/home/yorkibonilla/kepler/sdk/0.21.4726/kvd/images/tv/vmtools/agent/lib64/qt/plugins" ((null):0, (null))
library_mode host gpu mode host
INFO    | added library /home/yorkibonilla/kepler/sdk/0.21.4726/kvd/images/tv/vmtools/agent/lib64/vulkan/libvulkan.so
INFO    | Sending adb public key [QAAAAO+Cxr/xEwngQdV6hRzZmiD8NNpiBGBQM46U4xHgxHK/XdT7PgeNk73ZBAITOjQ5ncjSGge9q9lfZ/kaPr8yXqh/yigfqhljIIcRTXl6qRn4SfTrqOm2EF2Igt0Aw3rAoMDLiIRWJtfp/w21Vi8qJcpKNejZ1G8r5BYldeBosCh+dYQ2MG51cBNGMvdULca/XmJaKD5Mhld1rluQzVqGTC+D10B4WR8Eur9TPmC4rya5x2fMXQ+l0IrHPtXl/vbROWsJBbg4g3PjQrXHIbQg+Arf/uEq6bPLNRfuYyOqBtiYKMK1R5dlcEMdDqBQq6ued84ojS5kzIVpQKNxJVjbG2qCdniwBvzhs21r5Ogi1Kae03HNWCQ1qDshf1UvSuznhGd12gdB8DgiEztUJ+JsbwjDQSf0HSPIq4kPYvkAwPse1q3kzC5BUgKQRXK4hTIciv5pOzCWwzL8fRko7GZJDwCIW8qY2nilB3tVQ3X4r7JGA1ZVwPmcoRtRs+3T34HGIFsBohl01Y8NHxLsrwhess9DaST0F+/lzgiS31mM4mFOHvVzKlknRke5CFth1HNZaO2TiFTu4Wd2NRghAD8Ib99X4l5Pm56jxsAy7ixMvCeveSQCS+ABkykDqLwsZV/h38rUrzcC5RutnZjqh6G/+2wFi2bXztDFYmiMiPmrX9JJNIjArAEAAQA= yorkibonilla@unknown]
TCG doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24]
TCG doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24]
TCG doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24]
TCG doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24]
INFO    | Setting display: 0 configuration to: 1920x1080, dpi: 320x320 
INFO    | Loading snapshot 'default_boot'...
INFO    | Activated packet streamer for bluetooth emulation

Check troubleshooting options from the provided link:

I already tried all the steps on this page, but it didn’t work:

1: Tried to launch without any dockings or USB connected
2: I completely removed audio from the virtual machine
3: Tried running the virtual device by console, increasing its load time with the –timeout parameter set to 1000

Ok, solved my issue… problem?

Virtual device was not starting

Solution?

Started over with a totally new virtual machine, made sure to install everything correctly, and it failed at the same spot.

After that I found the solution online and after following it, it works just fine.

I’m using windows 10 as my main OS
I’m using vmware to virtualize Ubuntu 22.04.5

After installing everything according to the vega docs, I had to do this extra step:

#region disable hypervisor on windows host

/* https://www.youtube.com/watch?v=6f1Qckg2Zx0

run this in the cmd as administrator

bcdedit /set hypervisorlaunchtype off

Run this in power shell as administrator:

Disable-WindowsOptionalFeature -Online -FeatureName HypervisorPlatform

*/

#endregion

1 Like