pumpkinz/pumpkin-reader

NewsCommentsActivity has leaked ServiceConnection

Closed this issue · 0 comments

Steps to reproduce:
0. Connect your Android to ADB.

  1. Set Show Link First settings to false.
  2. Open any news with URL.
  3. Open news URL.
  4. Close it.
  5. Press back.
  6. Observe the logcat.

Expected:
7. No error.

Actual:
7. Error occured like this one:

43:40.327 2163-2163/io.pumpkinz.pumpkinreader E/ActivityThread: Activity io.pumpkinz.pumpkinreader.NewsCommentsActivity has leaked ServiceConnection io.pumpkinz.pumpkinreader.util.ActionUtil$2@31f4d71d that was originally bound here
                                                                         android.app.ServiceConnectionLeaked: Activity io.pumpkinz.pumpkinreader.NewsCommentsActivity has leaked ServiceConnection io.pumpkinz.pumpkinreader.util.ActionUtil$2@31f4d71d that was originally bound here
                                                                             at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:1077)
                                                                             at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:971)
                                                                             at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1774)
                                                                             at android.app.ContextImpl.bindService(ContextImpl.java:1757)
                                                                             at android.content.ContextWrapper.bindService(ContextWrapper.java:539)
                                                                             at android.support.customtabs.CustomTabsClient.bindCustomTabsService(CustomTabsClient.java:60)
                                                                             at io.pumpkinz.pumpkinreader.util.ActionUtil.isCustomTabsAvailable(ActionUtil.java:111)
                                                                             at io.pumpkinz.pumpkinreader.util.ActionUtil.open(ActionUtil.java:31)
                                                                             at io.pumpkinz.pumpkinreader.NewsCommentsActivity.onOptionsItemSelected(NewsCommentsActivity.java:60)
                                                                             at android.app.Activity.onMenuItemSelected(Activity.java:2885)
                                                                             at android.support.v4.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:361)
                                                                             at android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:147)
                                                                             at android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:100)
                                                                             at android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:100)
                                                                             at android.support.v7.app.ToolbarActionBar$2.onMenuItemClick(ToolbarActionBar.java:68)
                                                                             at android.support.v7.widget.Toolbar$1.onMenuItemClick(Toolbar.java:172)
                                                                             at android.support.v7.widget.ActionMenuView$MenuBuilderCallback.onMenuItemSelected(ActionMenuView.java:760)
                                                                             at android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:811)
                                                                             at android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
                                                                             at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:958)
                                                                             at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:948)
                                                                             at android.support.v7.widget.ActionMenuView.invokeItem(ActionMenuView.java:618)
                                                                             at android.support.v7.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:139)
                                                                             at android.view.View.performClick(View.java:4780)
                                                                             at android.view.View$PerformClick.run(View.java:19866)
                                                                             at android.os.Handler.handleCallback(Handler.java:739)
                                                                             at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                             at android.os.Looper.loop(Looper.java:135)
                                                                             at android.app.ActivityThread.main(ActivityThread.java:5254)
                                                                             at java.lang.reflect.Method.invoke(Native Method)
                                                                             at java.lang.reflect.Method.invoke(Method.java:372)
                                                                             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
                                                                             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)