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 in Android Flipper library #5604

Open
juzha opened this issue May 8, 2024 · 0 comments
Open

Memory Leak in Android Flipper library #5604

juzha opened this issue May 8, 2024 · 0 comments

Comments

@juzha
Copy link

juzha commented May 8, 2024

🐛 Bug Report

┬───
│ GC Root: Thread object

├─ WV.kd instance
│ Leaking: NO (PathClassLoader↓ is not leaking)
│ Thread name: 'CleanupReference'
│ ↓ Thread.contextClassLoader
├─ dalvik.system.PathClassLoader instance
│ Leaking: NO (ApplicationDescriptor↓ is not leaking and A ClassLoader is never leaking)
│ ↓ ClassLoader.runtimeInternalObjects
├─ java.lang.Object[] array
│ Leaking: NO (ApplicationDescriptor↓ is not leaking)
│ ↓ Object[6631]
├─ com.facebook.flipper.plugins.inspector.descriptors.ApplicationDescriptor class
│ Leaking: NO (a class is never leaking)
│ Library leak match: static field com.facebook.flipper.plugins.inspector.descriptors.ApplicationDescriptor#editedDelegates
│ ↓ static ApplicationDescriptor.editedDelegates
│ ~~~~~~~~~~~~~~~
├─ java.util.ArrayList instance
│ Leaking: UNKNOWN
│ Retaining 2.5 MB in 54013 objects
│ ↓ ArrayList[3]
│ ~~~
╰→ com.android.internal.policy.DecorView instance
​ Leaking: YES (ObjectWatcher was watching this because com.android.internal.policy.DecorView received View#onDetachedFromWindow() callback and View.mContext references a destroyed activity)
​ Retaining 2.5 MB in 54011 objects
​ key = 4fe388c0-f2b2-460a-aba6-181bb0c237d8
​ watchDurationMillis = 5914
​ retainedDurationMillis = 914
​ View not part of a window view hierarchy
​ View.mAttachInfo is null (view detached)
​ View.mWindowAttachCount = 1
​ mContext instance of com.android.internal.policy.DecorContext, wrapping activity com..MY_COMPANY.android.SOMEActivity with mDestroyed = true

To Reproduce

I integrated LeakCanary in the app and try to find memory leaks of my app and triggered this link for Flipper plugin.

Environment

Android 13
Android flipper library: "0.247.0"
Flipper Desktop Version 0.252.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant