Closed
Bug 1138529
Opened 10 years ago
Closed 10 years ago
crash in java.lang.NullPointerException: at org.mozilla.gecko.BrowserApp$15.onStartEditing(BrowserApp.java)
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox36 affected, firefox37 fixed, firefox38 fixed, firefox39 fixed, fennec37+)
RESOLVED
FIXED
Firefox 39
People
(Reporter: aaronmt, Assigned: mcomella)
References
Details
(Keywords: crash)
Crash Data
Attachments
(1 file, 1 obsolete file)
This bug was filed from the Socorro interface and is
report bp-d03c4b40-e5a8-4e25-b3ad-aebe72150227.
=============================================================
java.lang.NullPointerException
at org.mozilla.gecko.BrowserApp$15.onStartEditing(BrowserApp.java:880)
at org.mozilla.gecko.toolbar.BrowserToolbar.startEditing(BrowserToolbar.java:812)
at org.mozilla.gecko.toolbar.BrowserToolbarNewTablet.startEditing(BrowserToolbarNewTablet.java:183)
at org.mozilla.gecko.BrowserApp.enterEditingMode(BrowserApp.java:1961)
at org.mozilla.gecko.BrowserApp.enterEditingMode(BrowserApp.java:1937)
at org.mozilla.gecko.BrowserApp.access$600(BrowserApp.java:144)
at org.mozilla.gecko.BrowserApp$10.onActivate(BrowserApp.java:837)
at org.mozilla.gecko.toolbar.BrowserToolbar$1.onClick(BrowserToolbar.java:241)
at android.view.View.performClick(View.java:4445)
at android.view.View$PerformClick.run(View.java:18446)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5158)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:566)
at dalvik.system.NativeStart.main(Native Method)
Assignee | ||
Comment 1•10 years ago
|
||
The failing line:
mDoorHangerPopup.disable();
It gets initialized from onWindowFocusChanged: soft-dep bug 973085.
Depends on: 973085
Assignee | ||
Comment 2•10 years ago
|
||
<AaronMT> mcomella: tablet code execution on phones?
<AaronMT> mcomella: second top device is a GS3
Updated•10 years ago
|
Assignee: nobody → michael.l.comella
tracking-fennec: ? → 37+
Comment 4•10 years ago
|
||
Mike - Let's see if there is something we can do to handle this ASAP.
Reporter | ||
Comment 5•10 years ago
|
||
Comment:
* "Happens almost (always?) when Android was suspended
Assignee | ||
Comment 7•10 years ago
|
||
Precedent: bug 1090347 and potentially bug 1031365.
Status: NEW → ASSIGNED
Flags: needinfo?(michael.l.comella)
Assignee | ||
Comment 8•10 years ago
|
||
(fixing block)
Alternative diagnosis (to comment 1): something is getting inlined but bug 1031365 would imply otherwise.
The easiest thing to do is to initialize mDoorHangerPopup in onCreate instead because it doesn't appear to rely on the initialization in onWindowFocusChanged in anyway.
Assignee | ||
Comment 9•10 years ago
|
||
/r/4791 - Bug 1138529 - Move doorhanger popup initialization to onCreate. r=liuche
Pull down this commit:
hg pull review -r 31692a858f439828cb663cf01a9e40f242e5eb1b
Attachment #8573432 -
Flags: review?(liuche)
Assignee | ||
Comment 10•10 years ago
|
||
Comment 11•10 years ago
|
||
Comment on attachment 8573432 [details]
MozReview Request: bz://1138529/mcomella
https://reviewboard.mozilla.org/r/4789/#review3885
::: mobile/android/base/GeckoApp.java
(Diff revision 1)
> - mDoorHangerPopup = new DoorHangerPopup(this);
We care a lot about startup time, so I'd probably just keep this here and put a null check in the Toolbar usage. We never use the DoorHanger before content is loaded anyways, so initializeChrome is the right place for it.
Attachment #8573432 -
Flags: review?(liuche)
Assignee | ||
Comment 12•10 years ago
|
||
(In reply to Chenxia Liu [:liuche] from comment #11)
> We care a lot about startup time, so I'd probably just keep this here and
> put a null check in the Toolbar usage. We never use the DoorHanger before
> content is loaded anyways, so initializeChrome is the right place for it.
Probably easier because we won't have to move it back later, and there are fewer possible side effects (which is important for uplift): wfm.
Assignee | ||
Updated•10 years ago
|
Attachment #8573432 -
Flags: review?(liuche)
Assignee | ||
Comment 13•10 years ago
|
||
Comment on attachment 8573432 [details]
MozReview Request: bz://1138529/mcomella
/r/4791 - Bug 1138529 - Add null checks mDoorHangerPopup access in toolbar editing state. r=liuche
Pull down this commit:
hg pull review -r 44dbeebd1ea6ed31f8437decb52c75457f27eb7c
Comment 14•10 years ago
|
||
Comment on attachment 8573432 [details]
MozReview Request: bz://1138529/mcomella
https://reviewboard.mozilla.org/r/4789/#review3891
It's possible there are other places where we try to dismiss the doorhanger before it's created, but I prefer maintaining the onCreate/intializeChrome for now. And creating and then destroying the DoorHanger before it's shown is not in line with good performance practices anyways.
Attachment #8573432 -
Flags: review?(liuche) → review+
Assignee | ||
Comment 15•10 years ago
|
||
Assignee | ||
Comment 16•10 years ago
|
||
Comment on attachment 8573432 [details]
MozReview Request: bz://1138529/mcomella
Approval Request Comment
[Feature/regressing bug #]: New tablet UI, it seems
[User impact if declined]:
Users crash! STR unknown.
[Describe test coverage new/current, TreeHerder]: None
[Risks and why]:
Low - add some null checks.
[String/UUID change made/needed]: None
Attachment #8573432 -
Flags: approval-mozilla-beta?
Attachment #8573432 -
Flags: approval-mozilla-aurora?
Comment 17•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 39
Comment 18•10 years ago
|
||
(In reply to Michael Comella (:mcomella) from comment #16)
> [Risks and why]:
> Low - add some null checks.
Even something as simply as a null check has burned us in the past. Let's give this a couple of days on Nightly before uplifting as we have time to do so and still take the fix in Beta 4.
Comment 19•10 years ago
|
||
Comment on attachment 8573432 [details]
MozReview Request: bz://1138529/mcomella
Now that the fix has been on Nightly for a couple of days, let's take it in Beta 4. Beta+ Aurora+
Attachment #8573432 -
Flags: approval-mozilla-beta?
Attachment #8573432 -
Flags: approval-mozilla-beta+
Attachment #8573432 -
Flags: approval-mozilla-aurora?
Attachment #8573432 -
Flags: approval-mozilla-aurora+
Comment 20•10 years ago
|
||
Comment 21•10 years ago
|
||
Assignee | ||
Comment 22•10 years ago
|
||
Attachment #8573432 -
Attachment is obsolete: true
Attachment #8619634 -
Flags: review+
Assignee | ||
Comment 23•10 years ago
|
||
Assignee | ||
Comment 24•10 years ago
|
||
We fixed this without the soft-dep so removing it.
No longer depends on: 1085591
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•