Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak on dev #666

Closed
ugaugabuga opened this issue Feb 16, 2020 · 1 comment
Closed

Memory leak on dev #666

ugaugabuga opened this issue Feb 16, 2020 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@ugaugabuga
Copy link

ugaugabuga commented Feb 16, 2020

`┬───
│ GC Root: System class
│
├─ android.view.accessibility.AccessibilityManager class
│    Leaking: NO (a class is never leaking)
│    ↓ static AccessibilityManager.sInstance
│                                  ~~~~~~~~~
├─ android.view.accessibility.AccessibilityManager instance
│    Leaking: UNKNOWN
│    ↓ AccessibilityManager.mTouchExplorationStateChangeListeners
│                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
├─ java.util.concurrent.CopyOnWriteArrayList instance
│    Leaking: UNKNOWN
│    ↓ CopyOnWriteArrayList.elements
│                           ~~~~~~~~
├─ java.lang.Object[] array
│    Leaking: UNKNOWN
│    ↓ Object[].[0]
│               ~~~
├─ androidx.core.view.accessibility.AccessibilityManagerCompat$TouchExplorationStateChangeListenerWrapper instance
│    Leaking: UNKNOWN
│    ↓ AccessibilityManagerCompat$TouchExplorationStateChangeListenerWrapper.mListener
│                                                                            ~~~~~~~~~
├─ com.google.android.material.snackbar.BaseTransientBottomBar$SnackbarBaseLayout$1 instance
│    Leaking: UNKNOWN
│    Anonymous class implementing androidx.core.view.accessibility.AccessibilityManagerCompat$TouchExplorationStateChangeListener
│    ↓ BaseTransientBottomBar$SnackbarBaseLayout$1.this$0
│                                                  ~~~~~~
├─ com.google.android.material.snackbar.Snackbar$SnackbarLayout instance
│    Leaking: YES (View.mContext references a destroyed activity)
│    mContext instance of android.view.ContextThemeWrapper, wrapping activity com.github.adamantcheese.chan.StartActivity with mDestroyed = true
│    View#mParent is null
│    View#mAttachInfo is null (view detached)
│    View.mWindowAttachCount = 0
│    ↓ Snackbar$SnackbarLayout.mContext
├─ android.view.ContextThemeWrapper instance
│    Leaking: YES (Snackbar$SnackbarLayout↑ is leaking and ContextThemeWrapper wraps an Activity with Activity.mDestroyed true)
│    ↓ ContextThemeWrapper.mBase
╰→ com.github.adamantcheese.chan.StartActivity instance
​     Leaking: YES (ObjectWatcher was watching this because com.github.adamantcheese.chan.StartActivity received Activity#onDestroy() callback and Activity#mDestroyed is true)
​     key = 22a5d7a1-628f-4ea1-b54d-5e0e62fb8a19
​     watchDurationMillis = 5301
​     retainedDurationMillis = 298

METADATA

Build.VERSION.SDK_INT: 24
Build.MANUFACTURER: HUAWEI
LeakCanary version: 2.2
App process name: com.github.adamantcheese.chan.dev
Analysis duration: 43726 ms`

@Adamantcheese Adamantcheese added the duplicate This issue or pull request already exists label Feb 16, 2020
@Adamantcheese
Copy link
Owner

Duplicate of #583, #581. Probably not solvable, but very minor anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants