==================================== HEAP ANALYSIS RESULT ==================================== 1 APPLICATION LEAKS References underlined with "~~~" are likely causes. Learn more at https://squ.re/leaks. Signature: 881c4404fc048402f456764f134ed07390863849 ┬─── │ GC Root: Global variable in native code │ ├─ android.os.Handler$MessengerImpl instance │ Leaking: UNKNOWN │ ↓ Handler$MessengerImpl.this$0 │ ~~~~~~ ├─ androidx.media.MediaBrowserServiceCompat$ServiceHandler instance │ Leaking: UNKNOWN │ this$0 instance of com.bubenheimer.rucksack.d.CW │ ↓ MediaBrowserServiceCompat$ServiceHandler.this$0 │ ~~~~~~ ╰→ 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 = 0cda35fa-fa79-4035-89ca-6ab496bd1ddc ​ watchDurationMillis = 5400 ​ retainedDurationMillis = 392 ​ 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: 28324 Instance count: 179717 Primitive array count: 132390 Object array count: 25025 Thread count: 39 Heap total bytes: 27055417 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-5031356898991293088.db Stats: LruCache[maxSize=3000,hits=32348,misses=41728,hitRate=43%] RandomAccess[bytes=1991236,reads=41728,travel=35597905162,range=32212305,size=40115227] Heap dump reason: 1 retained objects, app is visible Analysis duration: 16991 ms Heap dump file path: /storage/emulated/0/Download/leakcanary-com.bubenheimer.rucksack/2023-04-25_11-53-35_598.hprof Heap dump timestamp: 1682438042701 Heap dump duration: 4546 ms ====================================