Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntentReciver leak in SettingsActivity #237

Open
anlalalu opened this issue Dec 18, 2019 · 0 comments
Open

IntentReciver leak in SettingsActivity #237

anlalalu opened this issue Dec 18, 2019 · 0 comments

Comments

@anlalalu
Copy link

Reproduction Steps
  1. tap 'more options'
  2. tap 'settings'
  3. push 'back'
Stack trace

E/ActivityThread: Activity org.openbmap.activities.SettingsActivity has leaked IntentReceiver org.openbmap.activities.DialogPreferenceCatalogs$1@529f90bc that was originally registered here. Are you missing a call to unregisterReceiver()?
android.app.IntentReceiverLeaked: Activity org.openbmap.activities.SettingsActivity has leaked IntentReceiver org.openbmap.activities.DialogPreferenceCatalogs$1@529f90bc that was originally registered here. Are you missing a call to unregisterReceiver()?
at android.app.LoadedApk$ReceiverDispatcher.(LoadedApk.java:796)
at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:597)
at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1446)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1426)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1420)
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:467)
at org.openbmap.activities.DialogPreferenceCatalogs.initDownloadManager(DialogPreferenceCatalogs.java:148)
at org.openbmap.activities.DialogPreferenceCatalogs.(DialogPreferenceCatalogs.java:89)
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at android.preference.GenericInflater.createItem(GenericInflater.java:383)
at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:430)
at android.preference.GenericInflater.rInflate(GenericInflater.java:481)
at android.preference.GenericInflater.rInflate(GenericInflater.java:493)
at android.preference.GenericInflater.inflate(GenericInflater.java:326)
at android.preference.GenericInflater.inflate(GenericInflater.java:263)
at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:272)
at android.preference.PreferenceActivity.addPreferencesFromResource(PreferenceActivity.java:1472)
at org.openbmap.activities.SettingsActivity.onCreate(SettingsActivity.java:80)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)

E/ActivityThread: Activity org.openbmap.activities.SettingsActivity has leaked IntentReceiver org.openbmap.activities.DialogPreferenceMaps$1@52a4880c that was originally registered here. Are you missing a call to unregisterReceiver()?
android.app.IntentReceiverLeaked: Activity org.openbmap.activities.SettingsActivity has leaked IntentReceiver org.openbmap.activities.DialogPreferenceMaps$1@52a4880c that was originally registered here. Are you missing a call to unregisterReceiver()?
at android.app.LoadedApk$ReceiverDispatcher.(LoadedApk.java:796)
at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:597)
at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1446)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1426)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1420)
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:467)
at org.openbmap.activities.DialogPreferenceMaps.initDownloadManager(DialogPreferenceMaps.java:151)
at org.openbmap.activities.DialogPreferenceMaps.(DialogPreferenceMaps.java:91)
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at android.preference.GenericInflater.createItem(GenericInflater.java:383)
at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:430)
at android.preference.GenericInflater.rInflate(GenericInflater.java:481)
at android.preference.GenericInflater.rInflate(GenericInflater.java:493)
at android.preference.GenericInflater.inflate(GenericInflater.java:326)
at android.preference.GenericInflater.inflate(GenericInflater.java:263)
at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:272)
at android.preference.PreferenceActivity.addPreferencesFromResource(PreferenceActivity.java:1472)
at org.openbmap.activities.SettingsActivity.onCreate(SettingsActivity.java:80)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)

Debug info

App Version = 0.8.18

Android Version = 4.4.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant