Closed Bug 1722483 Opened 4 years ago Closed 4 years ago

mach bootstrap and mach android-emulator create emulator with too many lock files that won't start

Categories

(Firefox Build System :: Bootstrap Configuration, defect)

Desktop
Linux
defect

Tracking

(firefox-esr78 unaffected, firefox90 unaffected, firefox91 unaffected, firefox92 fixed)

RESOLVED FIXED
92 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox90 --- unaffected
firefox91 --- unaffected
firefox92 --- fixed

People

(Reporter: Gijs, Assigned: agi)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

In particular, the ~/.mozbuild/android-device/avd/mozemulator-x86_64.avd/ directory has 2 lock files (hardware-qemu.ini.lock and multiinstance.lock), and trying to reun the emulator fails with "ERROR: Running multiple emulators with the same AVD is an experimental feature". Removing the entire directory and re-running mach bootstrap and mach android-emulator just reproduces the same problem. Manually removing both lockfiles and re-running only mach android-emulator appears to work.

I can confirm that the described work-around works (macOS).

Product: GeckoView → Firefox Build System

The Bugbug bot thinks this bug should belong to the 'Firefox Build System::Bootstrap Configuration' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: General → Bootstrap Configuration

Looks like the emulator doesn't run the cleanup step when running in headless
mode, so we need to remove the lock files manually:

https://android.googlesource.com/platform/external/qemu/+/84416e78b496149f478d50b54adf1a34e1f98e2f/android/android-emu/android/console.cpp#4016

Assignee: nobody → agi
Status: NEW → ASSIGNED
Regressed by: 1718341
Has Regression Range: --- → yes

Set release status flags based on info from the regressing bug 1718341

Pushed by asferro@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3f918abfc940 Rename avd_path -> avd_home_path. r=nalexander https://hg.mozilla.org/integration/autoland/rev/f75d5bcab4f0 Remove emulator lock files if present. r=nalexander
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: