Closed Bug 1463909 Opened 7 years ago Closed 7 years ago

mozemulator-4.3 does not boot with emulator 27.2.9

Categories

(Firefox for Android Graveyard :: Testing, defect, P1)

defect

Tracking

(firefox63 fixed)

RESOLVED FIXED
Firefox 63
Tracking Status
firefox63 --- fixed

People

(Reporter: eeejay, Assigned: gbrown)

References

Details

It fails to mount /data, here is the relevant log: <EXT4-fs (mtdblock0): mounted filesystem with ordered data mode. Opts: barrier=1> <EXT4-fs (mtdblock1): bad geometry: block count 524288 exceeds size of device (153600 blocks)> <fs_mgr: Running /system/bin/e2fsck on /dev/block/mtdblock1> <e2fsck: executing /system/bin/e2fsck failed: No such file or directory> <e2fsck: e2fsck terminated by exit(255)> <EXT4-fs (mtdblock1): bad geometry: block count 524288 exceeds size of device (153600 blocks)> <fs_mgr: Cannot mount filesystem on /dev/block/mtdblock1 at /data> <init: fs_mgr_mount_all returned an error> and then we get things like this: <init: Unable to open persistent property directory /data/property errno: 2> I downgraded to 26, and it works.
Assignee: nobody → gbrown
I cannot reproduce, on Ubuntu 16.04 with emulator 27.1.12. Can you provide a log like this: $ mach android-emulator --verbose --force-update DEBUG: Running on Linux-4.4.0-127-generic-x86_64-with-Ubuntu-16.04-xenial DEBUG: Emulator created with type 4.3 DEBUG: emulator found at /home/gbrown/.mozbuild/android-sdk-linux/emulator/emulator DEBUG: ...with creation time Thu Mar 8 09:50:00 2018 DEBUG: ...with SDK version in /home/gbrown/.mozbuild/android-sdk-linux/emulator/source.properties: Pkg.Revision=27.1.12 0:00.30 Fetching and installing AVD. This may take a few minutes... DEBUG: Copied tooltool manifest /home/gbrown/src/testing/config/tooltool-manifests/androidarm_4_3/mach-emulator.manifest to /home/gbrown/.mozbuild/android-device/releng.manifest DEBUG: Download https://raw.githubusercontent.com/mozilla/build-tooltool/master/tooltool.py to /home/gbrown/.mozbuild/android-device/tooltool.py... DEBUG: Downloaded https://raw.githubusercontent.com/mozilla/build-tooltool/master/tooltool.py to /home/gbrown/.mozbuild/android-device/tooltool.py DEBUG: INFO - untarring "AVDs-armv7a-android-4.3.1_r1-build-2017-03-09.tar.gz" 0:22.64 Starting Android emulator running Android 4.3... DEBUG: deleted /home/gbrown/.emulator_console_auth_token DEBUG: Starting the emulator with this command: /home/gbrown/.mozbuild/android-sdk-linux/emulator/emulator -avd mozemulator-4.3 -gpu swiftshader -skip-adb-auth -verbose -show-kernel DEBUG: Emulator output will be written to '/home/gbrown/.mozbuild/android-device/emulator.log' DEBUG: Emulator started with pid 22105 DEBUG: Waiting for device status... DEBUG: adb found at /home/gbrown/.mozbuild/android-sdk-linux/platform-tools/adb DEBUG: ...with creation time Thu Mar 8 09:50:06 2018 DEBUG: ...with SDK version in /home/gbrown/.mozbuild/android-sdk-linux/platform-tools/source.properties: Pkg.Revision=27.0.1 DEBUG: Device status verified. DEBUG: Checking that Android has booted... DEBUG: adb found at /home/gbrown/.mozbuild/android-sdk-linux/platform-tools/adb DEBUG: ...with creation time Thu Mar 8 09:50:06 2018 DEBUG: ...with SDK version in /home/gbrown/.mozbuild/android-sdk-linux/platform-tools/source.properties: Pkg.Revision=27.0.1 DEBUG: Android boot status verified. DEBUG: >>> avd status DEBUG: <<< virtual device is running OK DEBUG: >>> redir list DEBUG: <<< no active redirections OK DEBUG: >>> network status DEBUG: <<< Current network status: download speed: 0 bits/s (0.0 KB/s) upload speed: 0 bits/s (0.0 KB/s) minimum latency: 0 ms maximum latency: 0 ms OK Running the arm emulator; be sure to install an arm APK! 1:13.35 Android emulator is running. 1:13.35 Use 'mach install' to install or update Firefox on your emulator.
Flags: needinfo?(eitan)
Blocks: 1425322
Note: 'ls' fails because /data is never mounted. $ ./mach android-emulator --verbose --force-update DEBUG: Running on Linux-4.16.9-300.fc28.x86_64-x86_64-with-fedora-28-Twenty_Eight DEBUG: Emulator created with type 4.3 0:00.47 An Android emulator is already running. Close the existing emulator and re-run this command. [eitan@snarfpup gecko]$ ./mach android-emulator --version x86^C [eitan@snarfpup gecko]$ ./mach android-emulator --verbose --force-update DEBUG: Running on Linux-4.16.9-300.fc28.x86_64-x86_64-with-fedora-28-Twenty_Eight DEBUG: Emulator created with type 4.3 DEBUG: emulator found at /home/eitan/.mozbuild/android-sdk-linux/emulator/emulator DEBUG: ...with creation time Wed May 23 10:11:24 2018 DEBUG: ...with SDK version in /home/eitan/.mozbuild/android-sdk-linux/emulator/source.properties: Pkg.Revision=27.2.9 0:00.53 Fetching and installing AVD. This may take a few minutes... DEBUG: Copied tooltool manifest /home/eitan/Mozilla/gecko/testing/config/tooltool-manifests/androidarm_4_3/mach-emulator.manifest to /home/eitan/.mozbuild/android-device/releng.manifest DEBUG: Download https://raw.githubusercontent.com/mozilla/build-tooltool/master/tooltool.py to /home/eitan/.mozbuild/android-device/tooltool.py... DEBUG: Downloaded https://raw.githubusercontent.com/mozilla/build-tooltool/master/tooltool.py to /home/eitan/.mozbuild/android-device/tooltool.py DEBUG: INFO - untarring "AVDs-armv7a-android-4.3.1_r1-build-2017-03-09.tar.gz" 0:30.57 Starting Android emulator running Android 4.3... DEBUG: deleted /home/eitan/.emulator_console_auth_token DEBUG: Starting the emulator with this command: /home/eitan/.mozbuild/android-sdk-linux/emulator/emulator -avd mozemulator-4.3 -gpu swiftshader -skip-adb-auth -verbose -show-kernel DEBUG: Emulator output will be written to '/home/eitan/.mozbuild/android-device/emulator.log' DEBUG: Emulator started with pid 9983 DEBUG: Waiting for device status... DEBUG: adb found at /home/eitan/.mozbuild/android-sdk-linux/platform-tools/adb DEBUG: ...with creation time Wed May 23 10:11:26 2018 DEBUG: ...with SDK version in /home/eitan/.mozbuild/android-sdk-linux/platform-tools/source.properties: Pkg.Revision=27.0.1 DEBUG: Device status verified. DEBUG: Checking that Android has booted... DEBUG: adb found at /home/eitan/.mozbuild/android-sdk-linux/platform-tools/adb DEBUG: ...with creation time Wed May 23 10:11:26 2018 DEBUG: ...with SDK version in /home/eitan/.mozbuild/android-sdk-linux/platform-tools/source.properties: Pkg.Revision=27.0.1 Error running mach: ['android-emulator', '--verbose', '--force-update'] The error occurred in code that was called by the mach command. This is either a bug in the called code itself or in the way that mach is calling it. You should consider filing a bug for this issue. If filing a bug, please include the full output of mach, including this error message. The details of the failure are as follows: ADBError: ADBDevice.__init__: ls not found File "/home/eitan/Mozilla/gecko/mobile/android/mach_commands.py", line 562, in emulator if emulator.wait_for_start(): File "/home/eitan/Mozilla/gecko/testing/mozbase/mozrunner/mozrunner/devices/android_device.py", line 564, in wait_for_start device = _get_device(self.substs, self.device_serial) File "/home/eitan/Mozilla/gecko/testing/mozbase/mozrunner/mozrunner/devices/android_device.py", line 118, in _get_device device = ADBAndroid(adb=adb_path, verbose=verbose_logging, device=device_serial) File "/home/eitan/Mozilla/gecko/testing/mozbase/mozdevice/mozdevice/adb_android.py", line 84, in __init__ device_ready_retry_attempts=device_ready_retry_attempts) File "/home/eitan/Mozilla/gecko/testing/mozbase/mozdevice/mozdevice/adb.py", line 614, in __init__ raise ADBError("ADBDevice.__init__: ls not found")
Flags: needinfo?(eitan)
Oh, I hadn't noticed that 27.2.9 was released! I'll check that out... Thanks!
I see the failure after upgrading the emulator to 27.2.9. I notice https://issuetracker.google.com/issues/79871988, and note that mozemulator-4.3 sets a datadir size of 600m, but changing that to 800m does not help.
Summary: mozemulator-4.3 does not boot with emulator 27 → mozemulator-4.3 does not boot with emulator 27.2.9
Blocks: 1465210
Priority: -- → P1
I removed userdata-qemu.img and ran the 27.2.9 emulator -- it booted. I customized -- turn off screen lock, animations, etc -- and exited the emulator, then re-built the archive with the new userdata-qemu.img. The result works with 27.1.12 and 27.2.9. Will update tooltool today...
Pushed by gbrown@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/fee169776372 Update android-4.3 avd for 'mach android-emulator'; r=me,a=test-only
Anyone having trouble will need to: - ensure this patch is applied - mach android-emulator --version 4.3 --force-update --force-update is a one-time requirement.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.