crash in NullPointerException at org.mozilla.gecko.BrowserApp.onCreate(BrowserApp.java) on null mBrowserToolbar
Categories
(Firefox for Android Graveyard :: General, defect, P2)
Tracking
(firefox-esr60 wontfix, firefox66 wontfix, firefox67 wontfix, firefox68 fixed)
People
(Reporter: cpeterson, Assigned: anuta.vlad)
References
Details
(Keywords: crash, Whiteboard: [bcs:p1])
Crash Data
Attachments
(2 files)
|
8.70 MB,
video/mp4
|
Details | |
|
Bug 1546153 - <Fixed NPE at BrowserApp.onCreate() caused by mBrowserToolbar being null>; <VladBaicu>
47 bytes,
text/x-phabricator-request
|
Details | Review |
We should try to fix bug for [bcs:p2] because it's related to system language settings. Probably not a [bcs:p1] because users are unlikely to change their system language settings very often.
STR:
- Open Fennec. I was testing Fennec 66 Release.
- Go to Android's system settings and change the system language: System > Languages & input > Languages.
- Switch back to Fennec.
EXPECTED RESULT:
Fennec's UI language should change.
ACTUAL RESULT:
Fennec will sometimes crash.
I was able to twice reproduce a similar NullPointerException at org.mozilla.gecko.BrowserApp.onCreate(BrowserApp.java) after switching my Android system language settings.
bp-de0b3b1b-ac94-4f7c-a7c2-eda9d0190422
Looks like mBrowserToolbar is null here: https://searchfox.org/mozilla-release/rev/ee65ae17d964dda4d764020b2f0c0a09c6cd1984/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java#651
java.lang.NullPointerException
at org.mozilla.gecko.BrowserApp.onCreate(BrowserApp.java:651)
at android.app.Activity.performCreate(Activity.java:7032)
at android.app.Activity.performCreate(Activity.java:7023)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1236)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2814)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2943)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1630)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6626)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
Updated•6 years ago
|
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Hi all,
I was able to reproduce the issue on the latest Nightly 68.0a1 (2019-04-23), on Beta 67.0b13, and on RC 66.0.2 on Samsung Galaxy Note 8 (Android 9).
I got a crash report only on RC, while Nightly and Beta crashed without a report, like in the attached short video.
Thank you!
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
| Reporter | ||
Comment 2•6 years ago
|
||
This crash volume is a lot higher than I would expect. Perhaps this crash signature can be triggered by multiple causes.
| Assignee | ||
Comment 3•6 years ago
|
||
We were able to reproduce this using the steps above but only with the "Don't keep activities" enabled from the Developer options. I will prepare a PR with the fix.
| Assignee | ||
Comment 4•6 years ago
|
||
Updated•6 years ago
|
Comment 5•6 years ago
|
||
It's currently not possible to land this, the landing system blocks it with this message:
'Lando says "This diff does not have the proper author information uploaded to Phabricator", but I see an author on Phabricator. What's wrong?'
See https://wiki.mozilla.org/Phabricator/FAQ#Lando
There is no previous, recent commit by Anuta found in mozilla-central, so I haven't the information (what user name and email address shall be used) to land this manually.
Updated•6 years ago
|
| Reporter | ||
Comment 8•6 years ago
|
||
67=wontfix because it's too late to uplift to Fennec 67 Beta. We've had this crash for a long time, so the fix can ride the trains with Fennec 68.
Comment 9•6 years ago
|
||
| bugherder | ||
Comment 10•6 years ago
|
||
Verified as fixed on the latest Nightly 68.0a1 (2019-05-05), with Samsung Galaxy Note 8 (Android 9), Nexus 6P (Android 8.1.0), and Nexus 5 (Android 6.0.1).
| Assignee | ||
Updated•6 years ago
|
Updated•4 years ago
|
Description
•