Closed Bug 746086 Opened 12 years ago Closed 12 years ago

java.lang.NullPointerException: at org.mozilla.gecko.GeckoApp.onApplicationPause(GeckoApp.java)

Categories

(Firefox for Android Graveyard :: General, defect)

14 Branch
ARM
Android
defect
Not set
critical

Tracking

(blocking-fennec1.0 soft)

VERIFIED FIXED
Firefox 14
Tracking Status
blocking-fennec1.0 --- soft

People

(Reporter: scoobidiver, Assigned: sriram)

Details

(Keywords: crash, regression, topcrash, Whiteboard: [native-crash])

Crash Data

Attachments

(1 file)

There are two crashes from the same user, the last one is bp-4df69c9b-919c-4b93-b5d6-75d192120416.

java.lang.NullPointerException
	at org.mozilla.gecko.GeckoApp.onApplicationPause(GeckoApp.java:2135)
	at org.mozilla.gecko.GeckoApplication.onActivityPause(GeckoApplication.java:43)
	at org.mozilla.gecko.GeckoActivity.onPause(GeckoActivity.java:24)
	at android.app.Activity.performPause(Activity.java:4563)
	at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1195)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1999)
	at android.app.ActivityThread.access$600(ActivityThread.java:122)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:137)
	at android.app.ActivityThread.main(ActivityThread.java:4340)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:511)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
	at dalvik.system.NativeStart.main(Native Method)

More reports at:
https://crash-stats.mozilla.com/report/list?signature=java.lang.NullPointerException%3A+at+org.mozilla.gecko.GeckoApp.onApplicationPause%28GeckoApp.java%29
There's a spike in crashes starting in 14.0a1/20120421030642. The regression range for the spike is:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=22bfdebf5cae&tochange=021f95903ded
blocking-fennec1.0: --- → ?
Keywords: regression, topcrash
Version: Trunk → Firefox 14
Sriram - can you look and see what might be causing this?
Assignee: nobody → sriram
Attached patch PatchSplinter Review
Is there any steps to reproduce?

The likelihood of this crashing is when Fennec is starting and before initializing, the activity goes to background. This is when mConnectivityReceiver wouldn't have been initialized.

This patch tries to register/unregister only when mConnectivityReceiver is not null.

This might fix the issue, as that's the only variable that could trigger a NPE there.
Attachment #617601 - Flags: review?(mark.finkle)
Comment on attachment 617601 [details] [diff] [review]
Patch

Looks OK. Since we have no STR, but this is a topcrash, we should land this and see what affect it has on crash-stats.
Attachment #617601 - Flags: review?(mark.finkle)
Attachment #617601 - Flags: review+
Attachment #617601 - Flags: approval-mozilla-central+
blocking-fennec1.0: ? → soft
https://hg.mozilla.org/mozilla-central/rev/e84141c374c2
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 14
(In reply to Mark Finkle (:mfinkle) from comment #4)
> Comment on attachment 617601 [details] [diff] [review]
> Patch
> 
> Looks OK. Since we have no STR, but this is a topcrash, we should land this
> and see what affect it has on crash-stats.

Since we don't have any STR here and it doesn't occur so far, shall we close it as verified fixed?
The latest crashes happened in 14.0a1/20120423.
Status: RESOLVED → VERIFIED
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: