Skip to content

Instantly share code, notes, and snippets.

@abvanpelt
Created September 4, 2015 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abvanpelt/ddbc732f31550b09fc27 to your computer and use it in GitHub Desktop.
Save abvanpelt/ddbc732f31550b09fc27 to your computer and use it in GitHub Desktop.
Memory leak for Chrome Custom Tabs detected by LeakCanary
09-04 13:49:26.783 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ In org.chromium.customtabsclient.example:1.0:1.
09-04 13:49:26.783 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ * org.chromium.customtabsclient.Activity2 has leaked:
09-04 13:49:26.783 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ * GC ROOT android.support.customtabs.CustomTabsClient$1.val$callback (anonymous class extends android.support.customtabs.ICustomTabsCallback$Stub)
09-04 13:49:26.783 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ * references org.chromium.customtabsclient.Activity2$2.this$0 (anonymous class extends android.support.customtabs.CustomTabsCallback)
09-04 13:49:26.783 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ * leaks org.chromium.customtabsclient.Activity2 instance
09-04 13:49:26.783 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ [ 09-04 13:49:26.783 10456:12161 D/LeakCanary ]
* Reference Key: 0ff8a396-2da4-4361-95b0-bc278e317e7b
09-04 13:49:26.783 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ * Device: samsung samsung GT-I9505G jgedlteue
09-04 13:49:26.783 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ * Android Version: 5.0 API: 21 LeakCanary: 1.3.1
09-04 13:49:26.783 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ * Durations: watch=5056ms, gc=194ms, heap dump=10237ms, analysis=23603ms
09-04 13:49:26.783 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ [ 09-04 13:49:26.783 10456:12161 D/LeakCanary ]
* Details:
09-04 13:49:26.783 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ * Instance of android.support.customtabs.CustomTabsClient$1
09-04 13:49:26.783 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ | this$0 = android.support.customtabs.CustomTabsServiceConnection$1 [id=0x12de9580]
09-04 13:49:26.783 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ | val$callback = org.chromium.customtabsclient.Activity2$2 [id=0x12dea420]
09-04 13:49:26.783 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ | mDescriptor = java.lang.String [id=0x12deb900]
09-04 13:49:26.783 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ | mOwner = android.support.customtabs.CustomTabsClient$1 [id=0x12deb920]
09-04 13:49:26.784 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ | mObject = -1356381904
09-04 13:49:26.784 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ * Instance of org.chromium.customtabsclient.Activity2$2
09-04 13:49:26.784 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ | this$0 = org.chromium.customtabsclient.Activity2 [id=0x12c3d320]
09-04 13:49:26.784 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ * Instance of org.chromium.customtabsclient.Activity2
09-04 13:49:26.784 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ | static $staticOverhead = byte[] [id=0x12ccb001;length=8;size=24]
09-04 13:49:26.784 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ | static TAG = java.lang.String [id=0x12c94980]
09-04 13:49:26.784 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ | mClient = null
09-04 13:49:26.784 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ | mConnection = org.chromium.customtabsclient.Activity2$3 [id=0x12de3620]
09-04 13:49:26.784 10456-12161/org.chromium.customtabsclient.example D/LeakCanary﹕ | mCustomTabsSession = null
@dimanem
Copy link

dimanem commented Jan 29, 2018

I guess this is "yesterdays news" but do you have a solution for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment