Skip to content

Instantly share code, notes, and snippets.

@msfjarvis
Created November 23, 2019 10:25
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 msfjarvis/c955835b7074722c8d61f8d553c01319 to your computer and use it in GitHub Desktop.
Save msfjarvis/c955835b7074722c8d61f8d553c01319 to your computer and use it in GitHub Desktop.
Logcat snippets for debugging leakcanary beta 4 regression
LeakCanary D Checking retained object because found new object retained
D No retained objects
D Analysis in progress, working on: PARSING_HEAP_DUMP
D Analysis in progress, working on: FINDING_LEAKING_INSTANCES
D Analysis in progress, working on: FINDING_PATHS_TO_LEAKING_INSTANCES
D Analysis in progress, working on: FINDING_DOMINATORS
D Analysis in progress, working on: COMPUTING_NATIVE_RETAINED_SIZE
D Analysis in progress, working on: COMPUTING_RETAINED_SIZE
D Analysis in progress, working on: BUILDING_LEAK_TRACES
D Analysis in progress, working on: REPORTING_HEAP_ANALYSIS
D HeapAnalysisSuccess(heapDumpFile=/data/user/0/com.stylingandroid.biometrics/files/leakcanary/2019-11-23_15-46-48_260.hprof, createdAtTimeMillis=1574504219620, analysisDurationMillis=8780, a
pplicationLeaks=[ApplicationLeak(className=com.stylingandroid.biometrics.MainActivity, leakTrace=
D ┬
D ├─ android.app.Activity$1
D │ Leaking: UNKNOWN
D │ Anonymous subclass of android.app.IRequestFinishCallback$Stub
D │ GC Root: Global variable in native code
D │ ↓ Activity$1.this$0
D │ ~~~~~~
D ╰→ com.stylingandroid.biometrics.MainActivity
D ​ Leaking: YES (Activity#mDestroyed is true and ObjectWatcher was watching this)
D ​ key = 87e61d6d-a54f-430e-9e56-d063fe83336c
D ​ watchDurationMillis = 5222
D ​ retainedDurationMillis = 186
D , retainedHeapByteSize=95980), ApplicationLeak(className=androidx.biometric.BiometricFragment, leakTrace=
D ┬
D ├─ android.hardware.biometrics.BiometricPrompt$1
D │ Leaking: UNKNOWN
D │ Anonymous subclass of android.hardware.biometrics.IBiometricServiceReceiver$Stub
D │ GC Root: Global variable in native code
D │ ↓ BiometricPrompt$1.this$0
D │ ~~~~~~
D ├─ android.hardware.biometrics.BiometricPrompt
D │ Leaking: UNKNOWN
D │ ↓ BiometricPrompt.mAuthenticationCallback
D │ ~~~~~~~~~~~~~~~~~~~~~~~
D ├─ androidx.biometric.BiometricFragment$2
D │ Leaking: UNKNOWN
D │ Anonymous subclass of android.hardware.biometrics.BiometricPrompt$AuthenticationCallback
D │ ↓ BiometricFragment$2.this$0
D │ ~~~~~~
D ╰→ androidx.biometric.BiometricFragment
D ​ Leaking: YES (Fragment#mFragmentManager is null and ObjectWatcher was watching this)
D ​ key = 17e49419-e52d-4068-8633-d7bf986c8eb4
D ​ watchDurationMillis = 5216
D ​ retainedDurationMillis = 185
D , retainedHeapByteSize=1519)], libraryLeaks=[])
LeakCanary D Checking retained object because found new object retained
D No retained objects
D Analysis in progress, working on: PARSING_HEAP_DUMP
D Analysis in progress, working on: EXTRACTING_METADATA
D Analysis in progress, working on: FINDING_LEAKING_INSTANCES
D Analysis in progress, working on: FINDING_PATHS_TO_LEAKING_OBJECTS
D Analysis in progress, working on: COMPUTING_NATIVE_RETAINED_SIZE
D Analysis in progress, working on: COMPUTING_RETAINED_SIZE
D Analysis in progress, working on: BUILDING_LEAK_TRACES
D Analysis in progress, working on: REPORTING_HEAP_ANALYSIS
D ====================================
D HEAP ANALYSIS RESULT
D ====================================
D 0 APPLICATION LEAKS
D References underlined with "~~~" are likely causes.
D Learn more at https://squ.re/leaks.
D ====================================
D 0 LIBRARY LEAKS
D Leaks coming from the Android Framework or Google libraries.
D ====================================
D METADATA
D Please include this in bug reports and Stack Overflow questions.
D Build.VERSION.SDK_INT: 29
D Build.MANUFACTURER: Google
D LeakCanary version: 2.0-beta-4
D App process name: com.stylingandroid.biometrics
D Analysis duration: 7172 ms
D Heap dump file path: /data/user/0/com.stylingandroid.biometrics/files/leakcanary/2019-11-23_15-51-49_812.hprof
D Heap dump timestamp: 1574504519676
D ====================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment