Closed Bug 1138760 Opened 10 years ago Closed 8 years ago

crash in java.lang.NullPointerException: at org.mozilla.gecko.GeckoSharedPrefs.forApp(GeckoSharedPrefs.java)

Categories

(Firefox for Android Graveyard :: Search Activity, defect)

All
Android
defect
Not set
critical

Tracking

(firefox36 affected, firefox37 affected, firefox38 affected, firefox39 affected, firefox47 affected)

RESOLVED WONTFIX
Tracking Status
firefox36 --- affected
firefox37 --- affected
firefox38 --- affected
firefox39 --- affected
firefox47 --- affected

People

(Reporter: kbrosnan, Unassigned)

Details

(Keywords: crash)

Crash Data

This bug was filed from the Socorro interface and is report bp-726f6764-53ed-472f-8b2c-b94762150224. ============================================================= https://crash-stats.mozilla.com/report/list?signature=java.lang.NullPointerException%3A+at+org.mozilla.gecko.GeckoSharedPrefs.forApp%28GeckoSharedPrefs.java%29&product=FennecAndroid&query_type=contains java.lang.NullPointerException at org.mozilla.gecko.GeckoSharedPrefs.forApp(GeckoSharedPrefs.java:86) at org.mozilla.gecko.GeckoSharedPrefs.forApp(GeckoSharedPrefs.java:74) at org.mozilla.search.providers.SearchEngineManager$2.run(SearchEngineManager.java:148) at android.os.Handler.handleCallback(Handler.java:725) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at org.mozilla.gecko.util.GeckoBackgroundThread.run(GeckoBackgroundThread.java:43)
Crash Signature: [@ java.lang.NullPointerException: at org.mozilla.gecko.GeckoSharedPrefs.forApp(GeckoSharedPrefs.java)] → [@ java.lang.NullPointerException: at org.mozilla.gecko.GeckoSharedPrefs.forApp(GeckoSharedPrefs.java)] [@ java.lang.NullPointerException: at org.mozilla.gecko.GeckoSharedPrefs.forApp]
I wonder if the SearchEngineManager has been destroyed before the Distribution callback is fired. The onDestroy method sets the distribution, context and other stuff to null. I suppose we could check for a null distribution or context in the main callback methods, with distributionNotFound seems to be the most common entry point for this crash.
Nevermind comment 3 – they're not listeners. To be explicit, I'm too unfamiliar with this code and I have other things to do so I'm going to stop diving in now.
¡Hola! This just bite me so dropping the crash report here FWIW... https://crash-stats.mozilla.com/report/index/bp-63de74a2-eecc-4865-af8e-89bcb2160210 ¡Gracias!
Hey Alex! Thanks for the report. Do you remember what you were doing when you hit this crash? It looks like this is happening in the search activity.
Component: General → Search Activity
Flags: needinfo?(alex_mayorga)
¡Hola Margaret! The steps as far as I recall involved a long press on the center (circle) button on the main screen of an Amazon Fire, this pops up a white on orange magnifying glass, moving the finger to this icon results in the crash. I can try to confirm these steps later today if you want me to. ¡Gracias! Alex
Flags: needinfo?(alex_mayorga)
This is an ex-Search Activity now (bug 1221344).
Status: NEW → RESOLVED
Closed: 8 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.