Closed
Bug 1375141
Opened 8 years ago
Closed 7 years ago
Crash in java.lang.NullPointerException: uriString at android.net.Uri$StringUri.<init>(Uri.java)
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox56 unaffected, firefox57+ fixed, firefox58 fixed)
RESOLVED
FIXED
Firefox 58
Tracking | Status | |
---|---|---|
firefox56 | --- | unaffected |
firefox57 | + | fixed |
firefox58 | --- | fixed |
People
(Reporter: jcristau, Assigned: esawin)
References
Details
(Keywords: crash, regression)
Crash Data
Attachments
(2 files)
1.06 KB,
patch
|
snorp
:
review+
ritu
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
1.25 KB,
patch
|
snorp
:
review+
jcristau
:
approval-mozilla-release+
|
Details | Diff | Splinter Review |
This bug was filed from the Socorro interface and is
report bp-cbd219cf-953a-4511-bc4e-10ff60170620.
=============================================================
There's a few of those in the last few days on nightly:
java.lang.NullPointerException: uriString
at android.net.Uri$StringUri.<init>(Uri.java:475)
at android.net.Uri$StringUri.<init>(Uri.java:465)
at android.net.Uri.parse(Uri.java:437)
at org.mozilla.gecko.customtabs.CustomTabsActivity.onOpenInClicked(CustomTabsActivity.java:416)
at org.mozilla.gecko.customtabs.CustomTabsActivity.onOptionsItemSelected(CustomTabsActivity.java:254)
at org.mozilla.gecko.customtabs.CustomTabsActivity.onMenuItemClick(CustomTabsActivity.java:225)
at org.mozilla.gecko.customtabs.CustomTabsActivity$4.onMenuItemClick(CustomTabsActivity.java:310)
at org.mozilla.gecko.widget.GeckoPopupMenu.onMenuItemClick(GeckoPopupMenu.java:163)
at org.mozilla.gecko.menu.GeckoMenu.handleMenuItemClick(GeckoMenu.java:662)
at org.mozilla.gecko.menu.GeckoMenu.onItemClick(GeckoMenu.java:638)
at android.widget.AdapterView.performItemClick(AdapterView.java:300)
at android.widget.AbsListView.performItemClick(AbsListView.java:1143)
at android.widget.AbsListView$PerformClick.run(AbsListView.java:3048)
at android.widget.AbsListView$3.run(AbsListView.java:3837)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:211)
at android.app.ActivityThread.main(ActivityThread.java:5335)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1016)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
Reporter | ||
Comment 1•8 years ago
|
||
Expanding the date range, it seems this isn't all that new after all.
status-firefox54:
unaffected → ---
status-firefox55:
unaffected → ---
status-firefox56:
affected → ---
status-firefox-esr52:
unaffected → ---
Comment 2•7 years ago
|
||
[Tracking Requested - why for this release]:
this signature is spiking up during the 57.0b cycle and may be related to bug 1356346.
on 57.0b9 it's the #4 fennec top crash accounting for 3.1% of all crashes.
Blocks: customtabs_geckoview
status-firefox57:
--- → affected
status-firefox58:
--- → affected
tracking-firefox57:
--- → ?
Keywords: regression
Reporter | ||
Comment 3•7 years ago
|
||
Max, Wesly, this crash is getting worse in beta57, see comment 2. Can you find someone to work on it?
Flags: needinfo?(wehuang)
Flags: needinfo?(max)
Assignee | ||
Comment 4•7 years ago
|
||
We should always check for null-URIs before sending out view intents.
We should also check how that can be the case, are we missing some onLocationChange events?
Attachment #8920196 -
Flags: review?(snorp)
Attachment #8920196 -
Flags: review?(snorp) → review+
Pushed by esawin@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/ff3b69d3b045
[1.0] Check for null-URI when sending view intent from Open-in menu item. r=snorp
Comment 6•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
Comment 7•7 years ago
|
||
Please request Beta approval on this when you get a chance.
Assignee: nobody → esawin
status-firefox56:
--- → unaffected
Flags: needinfo?(wehuang)
Flags: needinfo?(max)
Flags: needinfo?(esawin)
Assignee | ||
Comment 8•7 years ago
|
||
Comment on attachment 8920196 [details] [diff] [review]
0001-Bug-1375141-1.0-Check-for-null-URI-when-sending-view.patch
Approval Request Comment
[Feature/Bug causing the regression]: Bug 1356346
[User impact if declined]: Crash when trying to use Open-In feature in some (yet unknown) cases in custom tabs
[Is this code covered by automated tests?]: No
[Has the fix been verified in Nightly?]: No
[Needs manual test from QE? If yes, steps to reproduce]: STR not available
[List of other uplifts needed for the feature/fix]: None
[Is the change risky?]: No
[Why is the change risky/not risky?]: The change only prevents a null-reference access crash
[String changes made/needed]: None
Flags: needinfo?(esawin)
Attachment #8920196 -
Flags: approval-mozilla-beta?
Comment on attachment 8920196 [details] [diff] [review]
0001-Bug-1375141-1.0-Check-for-null-URI-when-sending-view.patch
Crash fix, Beta57+
Attachment #8920196 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 10•7 years ago
|
||
bugherder uplift |
Comment 11•7 years ago
|
||
The crashes are still there in 57.0b11 & 57.0b13.
By the way, the volume is strongly lower than in 57.0b9 (see[1]).
[1] http://bit.ly/2zdn87W
Flags: needinfo?(esawin)
Assignee | ||
Comment 12•7 years ago
|
||
Same signature, slightly different crash stack.
Again, we need to make sure that we don't parse a null-URI.
Flags: needinfo?(esawin)
Attachment #8925518 -
Flags: review?(snorp)
Assignee | ||
Updated•7 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #8925518 -
Flags: review?(snorp) → review+
Comment 13•7 years ago
|
||
Pushed by esawin@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/8bbcbeb797d3
[2.0] Check for null-URI when attaching pending intent data. r=snorp
Comment 14•7 years ago
|
||
bugherder |
Status: REOPENED → RESOLVED
Closed: 7 years ago → 7 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 15•7 years ago
|
||
Comment on attachment 8925518 [details] [diff] [review]
0001-Bug-1375141-2.0-Check-for-null-URI-when-attaching-pe.patch
See comment 8.
Attachment #8925518 -
Flags: approval-mozilla-beta?
Reporter | ||
Comment 16•7 years ago
|
||
Comment on attachment 8925518 [details] [diff] [review]
0001-Bug-1375141-2.0-Check-for-null-URI-when-attaching-pe.patch
null check, for 57 rc2
Attachment #8925518 -
Flags: approval-mozilla-beta? → approval-mozilla-release+
Comment 17•7 years ago
|
||
bugherder uplift |
Comment 18•7 years ago
|
||
Could not reproduce any crashes in our test day for 57.0 Build 2.
We tried different scenarios that involve custom tabs on different devices and still couldn't reproduce any crashes.
I'm leaving this issue still open so that we get more related crash stats and decide afterwards.
Updated•4 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
•