Uploaded image for project: 'Crosswalk Project'
  1. Crosswalk Project
  2. XWALK-1633

[Android] Always get IntentReceiverLeaked message when exiting app using Presentation API

    Details

      Description

      The exception is as below:

      E/ActivityThread(30195): android.app.IntentReceiverLeaked: Activity org.xwalk.timer.TimerActivity has leaked IntentReceiver org.xwalk.core.extension.api.messaging.MessagingSmsManager$1@41f2c270 that was originally registered here. Are you missing a call to unregisterReceiver()?
      E/ActivityThread(30195): at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:805)
      E/ActivityThread(30195): at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:606)
      E/ActivityThread(30195): at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1430)
      E/ActivityThread(30195): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1410)
      E/ActivityThread(30195): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1404)
      E/ActivityThread(30195): at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:467)
      E/ActivityThread(30195): at org.xwalk.core.extension.api.messaging.MessagingSmsManager.registerIntentFilters(MessagingSmsManager.java:317)
      E/ActivityThread(30195): at org.xwalk.core.extension.api.messaging.Messaging.<init>(Messaging.java:104)
      E/ActivityThread(30195): at org.xwalk.core.extension.XWalkExtensionManager.loadInternalExtensions(XWalkExtensionManager.java:205)
      E/ActivityThread(30195): at org.xwalk.core.extension.XWalkExtensionManager.loadExtensions(XWalkExtensionManager.java:123)
      E/ActivityThread(30195): at org.xwalk.core.XWalkView.initXWalkContent(XWalkView.java:218)
      E/ActivityThread(30195): at org.xwalk.core.XWalkView.init(XWalkView.java:187)
      E/ActivityThread(30195): at org.xwalk.core.XWalkView.<init>(XWalkView.java:90)
      E/ActivityThread(30195): at org.xwalk.core.extension.api.presentation.XWalkPresentationContent.load(XWalkPresentationContent.java:37)
      E/ActivityThread(30195): at org.xwalk.core.extension.api.presentation.PresentationExtension$2.run(PresentationExtension.java:287)
      E/ActivityThread(30195): at android.os.Handler.handleCallback(Handler.java:733)
      E/ActivityThread(30195): at android.os.Handler.dispatchMessage(Handler.java:95)
      E/ActivityThread(30195): at android.os.Looper.loop(Looper.java:136)
      E/ActivityThread(30195): at android.app.ActivityThread.main(ActivityThread.java:5017)
      E/ActivityThread(30195): at java.lang.reflect.Method.invokeNative(Native Method)
      E/ActivityThread(30195): at java.lang.reflect.Method.invoke(Method.java:515)
      E/ActivityThread(30195): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
      E/ActivityThread(30195): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
      E/ActivityThread(30195): at dalvik.system.NativeStart.main(Native Method)
      E/ActivityThread(30195): Activity org.xwalk.timer.TimerActivity has leaked IntentReceiver org.xwalk.core.extension.api.messaging.MessagingSmsManager$2@41f2c290 that was originally registered here. Are you missing a call to unregisterReceiver()?
      E/ActivityThread(30195): android.app.IntentReceiverLeaked: Activity org.xwalk.timer.TimerActivity has leaked IntentReceiver org.xwalk.core.extension.api.messaging.MessagingSmsManager$2@41f2c290 that was originally registered here. Are you missing a call to unregisterReceiver()?
      E/ActivityThread(30195): at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:805)
      E/ActivityThread(30195): at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:606)
      E/ActivityThread(30195): at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1430)
      E/ActivityThread(30195): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1410)
      E/ActivityThread(30195): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1404)
      E/ActivityThread(30195): at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:467)
      E/ActivityThread(30195): at org.xwalk.core.extension.api.messaging.MessagingSmsManager.registerIntentFilters(MessagingSmsManager.java:319)
      E/ActivityThread(30195): at org.xwalk.core.extension.api.messaging.Messaging.<init>(Messaging.java:104)
      E/ActivityThread(30195): at org.xwalk.core.extension.XWalkExtensionManager.loadInternalExtensions(XWalkExtensionManager.java:205)
      E/ActivityThread(30195): at org.xwalk.core.extension.XWalkExtensionManager.loadExtensions(XWalkExtensionManager.java:123)
      E/ActivityThread(30195): at org.xwalk.core.XWalkView.initXWalkContent(XWalkView.java:218)
      E/ActivityThread(30195): at org.xwalk.core.XWalkView.init(XWalkView.java:187)
      E/ActivityThread(30195): at org.xwalk.core.XWalkView.<init>(XWalkView.java:90)
      E/ActivityThread(30195): at org.xwalk.core.extension.api.presentation.XWalkPresentationContent.load(XWalkPresentationContent.java:37)
      E/ActivityThread(30195): at org.xwalk.core.extension.api.presentation.PresentationExtension$2.run(PresentationExtension.java:287)
      E/ActivityThread(30195): at android.os.Handler.handleCallback(Handler.java:733)
      E/ActivityThread(30195): at android.os.Handler.dispatchMessage(Handler.java:95)
      E/ActivityThread(30195): at android.os.Looper.loop(Looper.java:136)
      E/ActivityThread(30195): at android.app.ActivityThread.main(ActivityThread.java:5017)
      E/ActivityThread(30195): at java.lang.reflect.Method.invokeNative(Native Method)
      E/ActivityThread(30195): at java.lang.reflect.Method.invoke(Method.java:515)
      E/ActivityThread(30195): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
      E/ActivityThread(30195): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
      E/ActivityThread(30195): at dalvik.system.NativeStart.main(Native Method)
      D/dalvikvm(30195): GC_CONCURRENT freed 368K, 5% free 9494K/9896K, paused 1ms+2ms, total 29ms
      D/dalvikvm(30195): WAIT_FOR_CONCURRENT_GC blocked 13ms
      E/ActivityThread(30195): Activity org.xwalk.timer.TimerActivity has leaked IntentReceiver org.xwalk.core.extension.api.messaging.MessagingSmsManager$3@41f2c2b0 that was originally registered here. Are you missing a call to unregisterReceiver()?
      E/ActivityThread(30195): android.app.IntentReceiverLeaked: Activity org.xwalk.timer.TimerActivity has leaked IntentReceiver org.xwalk.core.extension.api.messaging.MessagingSmsManager$3@41f2c2b0 that was originally registered here. Are you missing a call to unregisterReceiver()?
      E/ActivityThread(30195): at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:805)
      E/ActivityThread(30195): at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:606)
      E/ActivityThread(30195): at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1430)
      E/ActivityThread(30195): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1410)
      E/ActivityThread(30195): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1404)
      E/ActivityThread(30195): at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:467)
      E/ActivityThread(30195): at org.xwalk.core.extension.api.messaging.MessagingSmsManager.registerIntentFilters(MessagingSmsManager.java:321)
      E/ActivityThread(30195): at org.xwalk.core.extension.api.messaging.Messaging.<init>(Messaging.java:104)
      E/ActivityThread(30195): at org.xwalk.core.extension.XWalkExtensionManager.loadInternalExtensions(XWalkExtensionManager.java:205)
      E/ActivityThread(30195): at org.xwalk.core.extension.XWalkExtensionManager.loadExtensions(XWalkExtensionManager.java:123)
      E/ActivityThread(30195): at org.xwalk.core.XWalkView.initXWalkContent(XWalkView.java:218)
      E/ActivityThread(30195): at org.xwalk.core.XWalkView.init(XWalkView.java:187)
      E/ActivityThread(30195): at org.xwalk.core.XWalkView.<init>(XWalkView.java:90)
      E/ActivityThread(30195): at org.xwalk.core.extension.api.presentation.XWalkPresentationContent.load(XWalkPresentationContent.java:37)
      E/ActivityThread(30195): at org.xwalk.core.extension.api.presentation.PresentationExtension$2.run(PresentationExtension.java:287)
      E/ActivityThread(30195): at android.os.Handler.handleCallback(Handler.java:733)
      E/ActivityThread(30195): at android.os.Handler.dispatchMessage(Handler.java:95)
      E/ActivityThread(30195): at android.os.Looper.loop(Looper.java:136)
      E/ActivityThread(30195): at android.app.ActivityThread.main(ActivityThread.java:5017)
      E/ActivityThread(30195): at java.lang.reflect.Method.invokeNative(Native Method)
      E/ActivityThread(30195): at java.lang.reflect.Method.invoke(Method.java:515)
      E/ActivityThread(30195): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
      E/ActivityThread(30195): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
      E/ActivityThread(30195): at dalvik.system.NativeStart.main(Native Method)
      E/ActivityThread(30195): Activity org.xwalk.timer.TimerActivity has leaked IntentReceiver org.xwalk.core.extension.api.messaging.MessagingSmsManager$4@41f2c2d0 that was originally registered here. Are you missing a call to unregisterReceiver()?
      E/ActivityThread(30195): android.app.IntentReceiverLeaked: Activity org.xwalk.timer.TimerActivity has leaked IntentReceiver org.xwalk.core.extension.api.messaging.MessagingSmsManager$4@41f2c2d0 that was originally registered here. Are you missing a call to unregisterReceiver()?
      E/ActivityThread(30195): at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:805)
      E/ActivityThread(30195): at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:606)
      E/ActivityThread(30195): at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1430)
      E/ActivityThread(30195): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1410)
      E/ActivityThread(30195): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1404)
      E/ActivityThread(30195): at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:467)
      E/ActivityThread(30195): at org.xwalk.core.extension.api.messaging.MessagingSmsManager.registerIntentFilters(MessagingSmsManager.java:323)
      E/ActivityThread(30195): at org.xwalk.core.extension.api.messaging.Messaging.<init>(Messaging.java:104)
      E/ActivityThread(30195): at org.xwalk.core.extension.XWalkExtensionManager.loadInternalExtensions(XWalkExtensionManager.java:205)
      E/ActivityThread(30195): at org.xwalk.core.extension.XWalkExtensionManager.loadExtensions(XWalkExtensionManager.java:123)
      E/ActivityThread(30195): at org.xwalk.core.XWalkView.initXWalkContent(XWalkView.java:218)
      E/ActivityThread(30195): at org.xwalk.core.XWalkView.init(XWalkView.java:187)
      E/ActivityThread(30195): at org.xwalk.core.XWalkView.<init>(XWalkView.java:90)
      E/ActivityThread(30195): at org.xwalk.core.extension.api.presentation.XWalkPresentationContent.load(XWalkPresentationContent.java:37)
      E/ActivityThread(30195): at org.xwalk.core.extension.api.presentation.PresentationExtension$2.run(PresentationExtension.java:287)
      E/ActivityThread(30195): at android.os.Handler.handleCallback(Handler.java:733)
      E/ActivityThread(30195): at android.os.Handler.dispatchMessage(Handler.java:95)
      E/ActivityThread(30195): at android.os.Looper.loop(Looper.java:136)
      E/ActivityThread(30195): at android.app.ActivityThread.main(ActivityThread.java:5017)
      E/ActivityThread(30195): at java.lang.reflect.Method.invokeNative(Native Method)
      E/ActivityThread(30195): at java.lang.reflect.Method.invoke(Method.java:515)
      E/ActivityThread(30195): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
      E/ActivityThread(30195): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
      E/ActivityThread(30195): at dalvik.system.NativeStart.main(Native Method)

        Attachments

          Activity

            People

            • Assignee:
              hmin Hongbo Min (Inactive)
              Reporter:
              hmin Hongbo Min (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: