==================================== HEAP ANALYSIS RESULT ==================================== 1 APPLICATION LEAKS References underlined with "~~~" are likely causes. Learn more at https://squ.re/leaks. Signature: 80f093d135adc2b278b02ca2f66fbd46aaa36bea ┬─── │ GC Root: Global variable in native code │ ├─ android.support.v4.media.session.MediaSessionCompat$MediaSessionImplApi21$ExtraSession instance │ Leaking: UNKNOWN │ ↓ MediaSessionCompat$MediaSessionImplApi21$ExtraSession.this$0 │ ~~~~~~ ├─ android.support.v4.media.session.MediaSessionCompat$MediaSessionImplApi29 instance │ Leaking: UNKNOWN │ ↓ MediaSessionCompat$MediaSessionImplApi21.mSessionFwk │ ~~~~~~~~~~~ ├─ android.media.session.MediaSession instance │ Leaking: UNKNOWN │ mContext instance of com.bubenheimer.rucksack.d.CW │ ↓ MediaSession.mContext │ ~~~~~~~~ ╰→ com.bubenheimer.rucksack.d.CW instance ​ Leaking: YES (ObjectWatcher was watching this because com.bubenheimer.rucksack.d.CW received Service#onDestroy() ​ callback and Service not held by ActivityThread) ​ key = 1579d3c8-c5eb-48af-8fd2-c2f56aafeee0 ​ watchDurationMillis = 5296 ​ retainedDurationMillis = 291 ​ mApplication instance of com.bubenheimer.rucksack.d.D ​ mBase instance of android.app.ContextImpl ==================================== 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 ==================================== 0 UNREACHABLE OBJECTS An unreachable object is still in memory but LeakCanary could not find a strong reference path from GC roots. ==================================== METADATA Please include this in bug reports and Stack Overflow questions. Build.VERSION.SDK_INT: 33 Build.MANUFACTURER: Google LeakCanary version: 2.10 App process name: com.bubenheimer.rucksack Class count: 28160 Instance count: 179043 Primitive array count: 131777 Object array count: 24898 Thread count: 38 Heap total bytes: 26946918 Bitmap count: 0 Bitmap total bytes: 0 Large bitmap count: 0 Large bitmap total bytes: 0 Db 1: open /data/user/0/com.bubenheimer.rucksack/databases/com.google.android.datatransport.events Db 2: open /data/user/0/com.bubenheimer.rucksack/databases/rucksack-11196846344382804225.db Stats: LruCache[maxSize=3000,hits=43936,misses=59219,hitRate=42%] RandomAccess[bytes=2850070,reads=59219,travel=40826114938,range=32048130,size=39959274] Heap dump reason: 1 retained objects, app is visible Analysis duration: 9645 ms Heap dump file path: /storage/emulated/0/Download/leakcanary-com.bubenheimer.rucksack/2023-04-25_13-53-41_173.hprof Heap dump timestamp: 1682445242318 Heap dump duration: 3480 ms ====================================