Open Bug 2021073 Opened 4 days ago

Emulator startup should fail fast and loudly if headless isn't supported

Categories

(Firefox for Android :: Tooling, enhancement)

All
Android
enhancement

Tracking

()

People

(Reporter: mgaudet, Unassigned)

Details

Steps to reproduce

  1. Run ./mach geckoview-junit over ssh

Expected behavior

Either "Error: Headless emulator not supported" or support the emulator launching headless

Actual behavior

Hangs at

$ ./mach geckoview-junit
Found MOZ_DISABLE_ADB_INSTALL in environment and/or the --no-install flag, skipping android app installation
No Android devices connected. Start an emulator? (Y/n) Y
Starting emulator running Android x86_64...
WARNING: Emulator has already completed!
WARNING: See log at /home/matthew/.mozbuild/android-device/emulator.log and/or use --verbose for more information.
 0:12.09 adb INFO Using adb 1.0.41

If you check the log it of course says:

INFO         | Warning: could not connect to display  (:0, )
INFO         | Warning: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin. (:0, )
INFO         | Info: Could not load the Qt platform plugin "xcb" in "/home/matthew/.mozbuild/android-sdk-linux/emulator/lib64/qt/plugins" even though it was found. (:0, )
INFO         | Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: offscreen, linuxfb, minimal, vnc, xcb.
You need to log in before you can comment on or make changes to this bug.