==================================== HEAP ANALYSIS RESULT ==================================== 1 APPLICATION LEAKS References underlined with "~~~" are likely causes. Learn more at https://squ.re/leaks. Signature: bd2544d6cfbec1945913f9cc40eef66629d55e5c ┬─── │ 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.mServiceBinderImpl │ ~~~~~~~~~~~~~~~~~~ ├─ androidx.media.MediaBrowserServiceCompat$ServiceBinderImpl instance │ Leaking: UNKNOWN │ this$0 instance of com.bubenheimer.rucksack.d.CW │ ↓ MediaBrowserServiceCompat$ServiceBinderImpl.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 = 94bd2860-a839-43cc-a6b4-a39048dec104 ​ watchDurationMillis = 5325 ​ retainedDurationMillis = 311 ​ 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: 28230 Instance count: 179565 Primitive array count: 131995 Object array count: 24963 Thread count: 38 Heap total bytes: 26999036 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=43969,misses=59257,hitRate=42%] RandomAccess[bytes=2851906,reads=59257,travel=40817397543,range=32118446,size=40035004] Heap dump reason: 1 retained objects, app is visible Analysis duration: 9524 ms Heap dump file path: /storage/emulated/0/Download/leakcanary-com.bubenheimer.rucksack/2023-04-25_13-18-11_366.hprof Heap dump timestamp: 1682443116729 Heap dump duration: 3372 ms ====================================