Open hossain-khan opened 4 years ago
====================================
HEAP ANALYSIS RESULT
====================================
1 APPLICATION LEAKS
References underlined with "~~~" are likely causes.
Learn more at https://squ.re/leaks.
1857 bytes retained by leaking objects
Signature: 2c79b05398bb34a25217d6735a1974c1d368db1
┬───
│ GC Root: System class
│
├─ android.view.inputmethod.InputMethodManager class
│ Leaking: NO (InputMethodManager↓ is not leaking and a class is never leaking)
│ ↓ static InputMethodManager.sInstance
├─ android.view.inputmethod.InputMethodManager instance
│ Leaking: NO (ViewRootImpl↓ is not leaking and InputMethodManager is a singleton)
│ ↓ InputMethodManager.mCurRootView
├─ android.view.ViewRootImpl instance
│ Leaking: NO (PhoneWindow↓ is not leaking and ViewRootImpl#mView is not null)
│ ↓ ViewRootImpl.mContext
├─ com.android.internal.policy.DecorContext instance
│ Leaking: NO (PhoneWindow↓ is not leaking)
│ DecorContext wraps an Activity with Activity.mDestroyed false
│ ↓ DecorContext.mPhoneWindow
├─ com.android.internal.policy.PhoneWindow instance
│ Leaking: NO (Window#mDestroyed is false)
│ ↓ PhoneWindow.mCallback
│ ~~~~~~~~~
├─ androidx.appcompat.app.ToolbarActionBar$ToolbarCallbackWrapper instance
│ Leaking: UNKNOWN
│ ↓ ToolbarActionBar$ToolbarCallbackWrapper.this$0
│ ~~~~~~
├─ androidx.appcompat.app.ToolbarActionBar instance
│ Leaking: UNKNOWN
│ ↓ ToolbarActionBar.mDecorToolbar
│ ~~~~~~~~~~~~~
├─ androidx.appcompat.widget.ToolbarWidgetWrapper instance
│ Leaking: UNKNOWN
│ ↓ ToolbarWidgetWrapper.mToolbar
│ ~~~~~~~~
├─ androidx.appcompat.widget.Toolbar instance
│ Leaking: YES (View detached and has parent)
│ mContext instance of android.view.ContextThemeWrapper, wrapping activity com.blacklivesmatter.policebrutality.MainActivity with mDestroyed = false
│ View#mParent is set
│ View#mAttachInfo is null (view detached)
│ View.mID = R.id.toolbar
│ View.mWindowAttachCount = 1
│ ↓ Toolbar.mParent
├─ com.google.android.material.appbar.CollapsingToolbarLayout instance
│ Leaking: YES (Toolbar↑ is leaking and View detached and has parent)
│ mContext instance of android.view.ContextThemeWrapper, wrapping activity com.blacklivesmatter.policebrutality.MainActivity with mDestroyed = false
│ View#mParent is set
│ View#mAttachInfo is null (view detached)
│ View.mID = R.id.collapsingtoolbarlayout
│ View.mWindowAttachCount = 1
│ ↓ CollapsingToolbarLayout.mParent
├─ com.google.android.material.appbar.AppBarLayout instance
│ Leaking: YES (CollapsingToolbarLayout↑ is leaking and View detached and has parent)
│ mContext instance of android.view.ContextThemeWrapper, wrapping activity com.blacklivesmatter.policebrutality.MainActivity with mDestroyed = false
│ View#mParent is set
│ View#mAttachInfo is null (view detached)
│ View.mID = R.id.appbarlayout
│ View.mWindowAttachCount = 1
│ ↓ AppBarLayout.mParent
╰→ androidx.coordinatorlayout.widget.CoordinatorLayout instance
Leaking: YES (ObjectWatcher was watching this because com.blacklivesmatter.policebrutality.ui.incidentlocations.LocationFragment received Fragment#onDestroyView() callback (references to its views should be cleared to prevent leaks))
key = 3346b192-20a6-4562-918c-2cd9f06231ec
watchDurationMillis = 22938
retainedDurationMillis = 17937
mContext instance of dagger.hilt.android.internal.managers.ViewComponentManager$FragmentContextWrapper, wrapping activity com.blacklivesmatter.policebrutality.MainActivity with mDestroyed = false
View#mParent is null
View#mAttachInfo is null (view detached)
View.mID = R.id.coordinator
View.mWindowAttachCount = 1
====================================
0 LIBRARY LEAKS
A Library Leak is a leak caused by a known bug in 3rd party code that you do not have control over.
See https://square.github.io/leakcanary/fundamentals-how-leakcanary-works/#4-categorizing-leaks
====================================
METADATA
Please include this in bug reports and Stack Overflow questions.
Build.VERSION.SDK_INT: 30
Build.MANUFACTURER: Google
LeakCanary version: 2.4
App process name: com.blacklivesmatter.policebrutality
Analysis duration: 8503 ms
Heap dump file path: /storage/emulated/0/Download/leakcanary-com.blacklivesmatter.policebrutality/2020-07-05_09-32-22_549.hprof
Heap dump timestamp: 1593955955131
====================================