Closed Bug 1657190 Opened 4 years ago Closed 4 years ago

Startup crash in Fenix when substituting a local GeckoView, after GeckoView rebuild

Categories

(Firefox Build System :: Android Studio and Gradle Integration, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1627796

People

(Reporter: mstange, Assigned: nalexander)

References

Details

Attachments

(1 obsolete file)

(Not entirely sure where to file this; it could be a mozglue bug or a build system bug or something on the Android Components / Fenix side.)

When working on GeckoView C++ code and testing in Fenix, after rebuilding Gecko and Fenix, Fenix crashes on startup. There's a workaround but it is time-consuming and annoying.

Steps to reproduce:

  1. Have a local mozilla-central build for GeckoView.
  2. Have a local Fenix checkout, open in in Android Studio.
  3. Point your Fenix at your local mozilla-central, by adding a line like this to your local.properties: dependencySubstitutions.geckoviewTopsrcdir=/Users/mstange/code/mozilla
  4. Connect your Android development phone.
  5. Make the geckoNightlyDebug build variant active.
  6. Click the green triangle "Start" button in Android Studio to build Fenix and launch it on the phone.

(So far so good. The Fenix build works.)

  1. Now make a change to Gecko C++ code, and rebuild GeckoView using ./mach build.
  2. Press the green triangle "Start" button in Android Studio again.

Expected results:
The new Fenix build should work.

Actual results:
The new Fenix build crashes on startup.

The workaround I use at the moment is the following:

  1. Comment out the dependencySubstitutions line in local.properties and click the Start button. Wait.
  2. Uncomment the line again and click the Start button. Wait again.

Indeed, thanks.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
Assignee: nobody → nalexander

Comment on attachment 9170860 [details]
Bug 1657190 - Work around Android-Gradle plugin bug causing startup crash when substituting GeckoView. r?agi

Revision D87551 was moved to bug 1627796. Setting attachment 9170860 [details] to obsolete.

Attachment #9170860 - Attachment is obsolete: true
Regressions: 1661158
Depends on: 1533465
Blocks: 1661158
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: