Startup crash in Fenix when substituting a local GeckoView, after GeckoView rebuild
Categories
(Firefox Build System :: Android Studio and Gradle Integration, defect)
Tracking
(Not tracked)
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:
- Have a local mozilla-central build for GeckoView.
- Have a local Fenix checkout, open in in Android Studio.
- Point your Fenix at your local mozilla-central, by adding a line like this to your
local.properties
:dependencySubstitutions.geckoviewTopsrcdir=/Users/mstange/code/mozilla
- Connect your Android development phone.
- Make the geckoNightlyDebug build variant active.
- 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.)
- Now make a change to Gecko C++ code, and rebuild GeckoView using
./mach build
. - 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.
Reporter | ||
Comment 1•4 years ago
|
||
The workaround I use at the moment is the following:
- Comment out the
dependencySubstitutions
line inlocal.properties
and click the Start button. Wait. - Uncomment the line again and click the Start button. Wait again.
Comment 2•4 years ago
|
||
Dup of bug 1627796, I think.
Reporter | ||
Comment 3•4 years ago
|
||
Indeed, thanks.
Assignee | ||
Comment 4•4 years ago
|
||
Updated•4 years ago
|
Comment 5•4 years ago
|
||
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.
Description
•