Closed Bug 969681 Opened 10 years ago Closed 10 years ago

android.app.IntentReceiverLeaked: Activity org.mozilla.fennec_nalexander.App has leaked IntentReceiver org.mozilla.gecko.LocaleManager

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 956079

People

(Reporter: nalexander, Unassigned)

Details

I see this while testing locally (so it's a little artificial) but we're not cleaning up our registered receiver at all.

E StrictMode(22355)           android.app.IntentReceiverLeaked: Activity org.mozilla.fennec_nalexander.App has leaked IntentReceiver org.mozilla.gecko.LocaleManager$1@42f12dd8 that was originally registered here. Are you missing a call to unregisterReceiver()?
E StrictMode(22355)           	at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:805)
E StrictMode(22355)           	at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:606)
E StrictMode(22355)           	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1705)
E StrictMode(22355)           	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1685)
E StrictMode(22355)           	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1679)
E StrictMode(22355)           	at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:453)
E StrictMode(22355)           	at org.mozilla.gecko.LocaleManager.initialize(LocaleManager.java:62)
E StrictMode(22355)           	at org.mozilla.gecko.GeckoApp$16.run(GeckoApp.java:1288)
E StrictMode(22355)           	at android.os.Handler.handleCallback(Handler.java:730)
E StrictMode(22355)           	at android.os.Handler.dispatchMessage(Handler.java:92)
E StrictMode(22355)           	at android.os.Looper.loop(Looper.java:137)
E StrictMode(22355)           	at org.mozilla.gecko.util.GeckoBackgroundThread.run(GeckoBackgroundThread.java:32)
That's because Applications don't have a termination handler.

http://developer.android.com/reference/android/app/Application.html#onTerminate%28%29
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.