android-riscv64 icon indicating copy to clipboard operation
android-riscv64 copied to clipboard

Cuttlefish fails with Subprocess was interrupted by a signal: 11 on GCP Debian 11 (Bullseye) – suspected EGL/Vulkan/Display issue

Open kennethlwk opened this issue 9 months ago • 2 comments

Hi Cuttlefish team,

I’m setting up a Cuttlefish instance on GCP using a Debian 11 (Bullseye) base image and am running into persistent issues launching the emulator. The emulator was working previously, but after encountering some problems, I recreated the VM and reinstalled everything from scratch — yet the issue still persists.

❌ Problem: When I run: HOME=$PWD ./bin/launch_cvd --daemon

Cuttlefish fails with:

Failed to initialize display.
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
Failed to load vk
GPU auto mode: did not detect prerequisites for accelerated rendering support, enabling --gpu_mode=guest_swiftshader.
Requested resuming a previous session (the default behavior) but the base images have changed under the overlay, making the overlay incompatible. Wiping the overlay files.
Path for instance UDS: /tmp/cf_avd_453907093
...
launch_cvd E subprocess.cpp:162] Subprocess 2897 was interrupted by a signal: 11
launch_cvd E main.cc:420] run_cvd returned -1

Environment:

  • GCP VM: n2-standard-2
    
  • OS Image: debian-11-bullseye-v20240110
    
  • Cuttlefish Host Package: cvd-host_package.tar.gz (API 33+)
    
  • AOSP Image: [aosp_cf_x86_64_phone-img-13283805.zip](https://ci.android.com/builds/submitted/13283805/aosp_cf_x86_64_phone-userdebug/latest/aosp_cf_x86_64_phone-img-13283805.zip) from https://ci.android.com/builds/submitted/13283805/aosp_cf_x86_64_phone-userdebug/latest
    
  • Host Package: [cvd-host_package.tar.gz](https://ci.android.com/builds/submitted/13283805/aosp_cf_x86_64_phone-userdebug/latest/cvd-host_package.tar.gz)
    

What I’ve tried:

  • Installed all recommended Vulkan/OpenGL packages:
sudo apt install -y libvulkan1 mesa-vulkan-drivers libegl1 libgles2 libopengl0 libgl1 libglx0 libx11-dev libxrandr2 libxinerama1 libxcursor1 libxi6
sudo apt install -y pulseaudio
  • Verified presence of /dev/kvm
  • Confirmed grep -c -w "vmx|svm" /proc/cpuinfo returns > 0
  • Used HOME=$PWD ./bin/launch_cvd --daemon
  • Cleaned previous session overlays, rebooted

Still seeing:

  • Failed to initialize display
    
  • Failed to load vk
    
  • Ends with run_cvd returned -1
    

Is this an issue with missing EGL/Vulkan support on Debian Bullseye images in GCP? Or is there a known compatibility issue with this system image version?

Any help would be greatly appreciated 🙏

Thanks, Kenneth

kennethlwk avatar Apr 04 '25 18:04 kennethlwk

Hello! Can you attach the full ~/cuttlefish_runtime/launcher.log output to https://issuetracker.google.com/issues/409313419 . It's not clear that this issue is related to riscv so let's move the discussion to https://issuetracker.google.com/issues/409313419.

jmacnak avatar Apr 08 '25 16:04 jmacnak

Hey, I think I’ve identified the issue. It looks like the newer Cuttlefish Android emulator isn’t compatible with Debian 11. After recreating the VM on Debian 12 and reconfiguring everything, the emulator started working again.

kennethlwk avatar Apr 10 '25 11:04 kennethlwk