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. #26

Open
akshaytandroid opened this issue Nov 5, 2023 · 0 comments
Open

Memory Leak. #26

akshaytandroid opened this issue Nov 5, 2023 · 0 comments

Comments

@akshaytandroid
Copy link

┬───
│ GC Root: Thread object

├─ android.os.HandlerThread instance
│ Leaking: NO (PathClassLoader↓ is not leaking)
│ Thread name: 'queued-work-looper'
│ ↓ Thread.contextClassLoader
├─ dalvik.system.PathClassLoader instance
│ Leaking: NO (AvatarGenerator↓ is not leaking and A ClassLoader is never
│ leaking)
│ ↓ ClassLoader.runtimeInternalObjects
├─ java.lang.Object[] array
│ Leaking: NO (AvatarGenerator↓ is not leaking)
│ ↓ Object[4493]
├─ com.avatarfirst.avatargenlib.AvatarGenerator class
│ Leaking: NO (a class is never leaking)
│ ↓ static AvatarGenerator.uiContext
│ ~~~~~~~~~
├─ dagger.hilt.android.internal.managers.
│ ViewComponentManager$FragmentContextWrapper instance
│ Leaking: YES (ViewComponentManager$FragmentContextWrapper wraps an
│ Activity with Activity.mDestroyed true)
│ Retaining 7.9 MB in 95470 objects
│ mBase instance of com.akshay.stockbubbles.ui.MainActivity with mDestroyed
│ = true
│ ↓ ContextWrapper.mBase
╰→ com.akshay.stockbubbles.ui.MainActivity instance
​ Leaking: YES (ObjectWatcher was watching this because com.akshay.
​ stockbubbles.ui.MainActivity received Activity#onDestroy() callback and
​ Activity#mDestroyed is true)
​ Retaining 7.9 MB in 95467 objects
​ key = e40fdba2-213f-4e58-800c-9a15d7d65240
​ watchDurationMillis = 7353
​ retainedDurationMillis = 2340
​ mApplication instance of com.akshay.stockbubbles.util.
​ StockBubblesApplication
​ mBase instance of androidx.appcompat.view.ContextThemeWrapper

METADATA

Build.VERSION.SDK_INT: 33
Build.MANUFACTURER: OnePlus
LeakCanary version: 2.12
App process name: com.akshay.stockbubbles
Class count: 30724
Instance count: 319177
Primitive array count: 179928
Object array count: 44291
Thread count: 76
Heap total bytes: 38676449
Bitmap count: 89
Bitmap total bytes: 10398041
Large bitmap count: 0
Large bitmap total bytes: 0
Db 1: open /data/user/0/com.akshay.stockbubbles/databases/com.google.android.
datatransport.events
Db 2: closed /data/user/0/com.akshay.
stockbubbles/databases/google_app_measurement_local.db
Db 3: closed /data/user/0/com.akshay.
stockbubbles/databases/google_app_measurement_local.db
Count of retained yet cleared: 6 KeyedWeakReference instances
Stats: LruCache[maxSize=3000,hits=150111,misses=307300,hitRate=32%]
RandomAccess[bytes=16577902,reads=307300,travel=119892018418,range=44820383,size
=56078207]
Analysis duration: 103056 ms

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