1 APPLICATION LEAKS
References underlined with "~~~" are likely causes.
Learn more at https://squ.re/leaks.
70983 bytes retained by leaking objects
Signature: 15573cc6c74bad714652a49c1f8ad11864b2df03
┬───
│ GC Root: Global variable in native code
│
├─ io.openmobilemaps.mapscore.map.scheduling.AndroidScheduler instance
│ Leaking: UNKNOWN
│ Retaining 508 B in 20 objects
│ ↓ AndroidScheduler.schedulerCallback
│ ~~~~~~~~~~~~~~~~~
├─ ch.admin.geo.openswissmaps.view.SwisstopoMapView instance
│ Leaking: UNKNOWN
│ Retaining 73.6 kB in 1815 objects
│ View not part of a window view hierarchy
│ View.mAttachInfo is null (view detached)
│ View.mID = R.id.map
│ View.mWindowAttachCount = 0
│ mContext instance of my.app.package.MainActivity with mDestroyed = false
│ ↓ View.mParent
│ ~~~~~~~
╰→ androidx.constraintlayout.widget.ConstraintLayout instance
Leaking: YES (ObjectWatcher was watching this because my.app.package.
MyFragment received Fragment#onDestroyView() callback (references to its views should be cleared to prevent
leaks))
Retaining 71.0 kB in 1763 objects
key = e918977a-17b9-4a19-b6d3-aabc655dc358
watchDurationMillis = 16756
retainedDurationMillis = 11756
View not part of a window view hierarchy
View.mAttachInfo is null (view detached)
View.mWindowAttachCount = 0
mContext instance of my.app.package.MainActivity with mDestroyed = false
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: 31
Build.MANUFACTURER: samsung
LeakCanary version: 2.9.1
App process name: my.app.package
Class count: 39381
Instance count: 384319
Primitive array count: 203574
Object array count: 61050
Thread count: 189
Heap total bytes: 46460491
Bitmap count: 19
Bitmap total bytes: 4784147
Large bitmap count: 0
Large bitmap total bytes: 0
Stats: LruCache[maxSize=3000,hits=161019,misses=368571,hitRate=30%]
RandomAccess[bytes=19735710,reads=368571,travel=231660715383,range=56409567,size=66972769]
Analysis duration: 20665 ms
Heap dump timestamp: 1680076297608
Heap dump duration: Unknown