Closed Bug 1403754 Opened 7 years ago Closed 5 years ago

Crash in java.lang.NullPointerException: Attempt to invoke virtual method ''android.view.View android.view.ViewStub.inflate()'' on a null object reference at org.mozilla.gecko.home.BrowserSearch.showSuggestionsOptIn(BrowserSearch.java)

Categories

(Firefox for Android Graveyard :: Awesomescreen, defect, P3)

Unspecified
Android
defect

Tracking

(fennec+)

RESOLVED WONTFIX
Tracking Status
fennec + ---

People

(Reporter: mcomella, Unassigned)

Details

(Keywords: crash, Whiteboard: [FNC][SPT59.5][MVP])

Crash Data

Attachments

(1 obsolete file)

This bug was filed from the Socorro interface and is 
report bp-45ad923e-6589-40dc-a797-4b1bd0170927.
=============================================================
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.ViewStub.inflate()' on a null object reference
	at org.mozilla.gecko.home.BrowserSearch.showSuggestionsOptIn(BrowserSearch.java:850)
	at org.mozilla.gecko.home.BrowserSearch.setSearchEngines(BrowserSearch.java:804)
	at org.mozilla.gecko.home.BrowserSearch.handleMessage(BrowserSearch.java:484)
	at org.mozilla.gecko.EventDispatcher$2.run(EventDispatcher.java:337)

#17 top crasher in 57 Beta: it's crashed 9 times since Beta has been released.
fwiw, the Beta was just released so we may not be at the point where the number of crashes is statistically significant enough such that this really deserves to be the #17 top crasher.
NI Joe and Wesly to help prioritize this
tracking-fennec: ? → +
Flags: needinfo?(wehuang)
Flags: needinfo?(jcheng)
Priority: -- → P1
fwiw, it's now the #47 top crasher.
#25 in 57.0.4 (count/install = 13/14, while 283/286 in 57.0.1) and still seen in 59.0a1 (#36 top crasher) today so worth checking, added to Sprint 59.5 planning.
Flags: needinfo?(wehuang)
Whiteboard: [FNC][SPT59.5][MVP]
Attachment #8941754 - Attachment is obsolete: true
Assignee: nobody → cnevinchen
Comment on attachment 8941754 [details]
Bug 1403754 - Skip browser search opt-in prompt if it's not ready.

Another reason could be calling findViewById for ViewStub may return null when the view is already inflated. There might be a timing that mSuggestionsOptInPrompt is null again( maybe [1] or [2])

I'll pause the investigation till I have time again. Anyone who have time please feel free to take it.

[1] https://searchfox.org/mozilla-central/source/mobile/android/base/java/org/mozilla/gecko/home/BrowserSearch.java#951

[2] https://searchfox.org/mozilla-central/source/mobile/android/base/java/org/mozilla/gecko/home/BrowserSearch.java#324
Attachment #8941754 - Attachment is obsolete: true
Attachment #8941754 - Flags: review?(max)
[triage] #31 top FF58 release crasher: 30 crashes in 7 days. Seems non-critical.
Assignee: cnevinchen → nobody
Flags: needinfo?(jcheng)
Priority: P1 → --
Closing because no crashes reported for 12 weeks.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: