Closed Bug 1276564 Opened 8 years ago Closed 8 years ago

./mach android-emulator fails on Linux

Categories

(Firefox for Android Graveyard :: Testing, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: hiro, Unassigned)

References

Details

The output is:

% ./mach android-emulator --verbose
DEBUG: adb found at /home/ikezoe/.mozbuild/android-sdk-linux/platform-tools/adb
DEBUG: Emulator created with type 4.3
DEBUG: emulator found at /home/ikezoe/.mozbuild/android-sdk-linux/tools/emulator
DEBUG: AVD found at /home/ikezoe/.mozbuild/android-device/avd/mozemulator-4.3.avd
 0:00.15 Starting Android emulator running Android 4.3...
DEBUG: Starting the emulator with this command: /home/ikezoe/.mozbuild/android-sdk-linux/tools/emulator -avd mozemulator-4.3 -port 5554 -show-kernel -debug init,console,gles,memcheck,adbserver,adbclient,adb,avd_config,socket
DEBUG: Emulator output will be written to '/home/ikezoe/.mozbuild/android-device/emulator.log'
DEBUG: Emulator started with pid 6349
DEBUG: Waiting for device status...
WARNING: Emulator has already completed!
 0:10.17 Unable to verify that emulator is running.
 0:10.17 Use 'mach install' to install or update Firefox on your emulator.
I did run emulator command directly:

Concatenated QEMU options:
 /home/ikezoe/.mozbuild/android-sdk-linux/tools/emulator64-arm -show-kernel -android-port 5554 -android-hw /home/ikezoe/.mozbuild/android-device/avd/mozemulator-4.3.avd/hardware-qemu.ini
This application failed to start because it could not find or load the Qt platform plugin "xcb".

Reinstalling the application may fix this problem.
zsh: abort (core dumped)  ANDROID_AVD_HOME=$HOME/.mozbuild/android-device/avd  -avd mozemulator-4.3    

It looks like the emulator needs xcb plugin for Qt.
The command in comment 1 was wrong.

% ANDROID_AVD_HOME=$HOME/.mozbuild/android-device/avd /home/ikezoe/.mozbuild/android-sdk-linux/tools/emulator -avd mozemulator-4.3 -port 5554 -show-kernel -debug init,console,gles,memcheck,adbserver,adbclient,adb,avd_config,socket
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct null not valid
zsh: abort (core dumped)  ANDROID_AVD_HOME=$HOME/.mozbuild/android-device/avd  -avd mozemulator-4.3
The failure reason was that arm system image in SDK was not installed.  I guess updating SDK process failed due to network errors or some sort of.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
See Also: → 1289226
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.