Hi all,
I am facing a leak memory as logged below, I am using leak canary to found that.
I already called mapView.dispose() and see the log "TextureView RenderingThread - disposed" before leak canary dump the memory. Could you please help to take a look ?
Thanks a lot.
├─ Dalvik.system.PathClassLoader instance
2 │ Leaking: NO (b↓ is not leaking and A ClassLoader is never leaking)
3 │ ↓ ClassLoader.runtimeInternalObjects
4 ├─ java.lang.Object[] array
5 │ Leaking: NO (b↓ is not leaking)
6 │ ↓ Object[731]
7 ├─ com.esri.arcgisruntime.internal.b.b class
8 │ Leaking: NO (a class is never leaking)
9 │ ↓ static b.WRAPPER_CACHE
10 │ ~~~~~~~~~~~~~
11 ├─ com.esri.arcgisruntime.internal.b.h instance
12 │ Leaking: UNKNOWN
13 │ Retaining 4.2 MB in 115754 objects
14 │ ↓ h.mCache
15 │ ~~~~~~
16 ├─ java.util.concurrent.ConcurrentHashMap instance
17 │ Leaking: UNKNOWN
18 │ Retaining 4.2 MB in 115753 objects
19 319226872 of java.lang.Long]
20 │ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21 ├─ com.esri.arcgisruntime.internal.h.b.g$b instance
22 │ Leaking: UNKNOWN
23 │ Retaining 4.2 MB in 115749 objects
24 │ ↓ g$b.a
25 │ ~
26 ├─ com.esri.arcgisruntime.internal.h.b.o instance
27 │ Leaking: UNKNOWN
28 │ Retaining 4.2 MB in 115740 objects
29 │ ↓ g.mGeoView
30 │ ~~~~~~~~
31 ├─ com.esri.arcgisruntime.mapping.view.MapView instance
32 │ Leaking: YES (View.mContext references a destroyed activity)
33 │ Retaining 551.2 kB in 9727 objects
34 │ View not part of a window view hierarchy
35 │ View.mAttachInfo is null (view detached)
36 │ View.mID = R.id.mapView
37 │ View.mWindowAttachCount = 1
38 │ mContext instance of com......MyActivity with mDestroyed = true
39 │ ↓ View.mContext
40 ╰→ com........MyActivity instance
41 Leaking: YES (ObjectWatcher was watching this because com.......MyActivity received
42 Activity#onDestroy() callback and Activity#mDestroyed is true)
43 Retaining 207.4 kB in 3681 objects
44 key = b5f097e7-68d9-4e29-ab0b-d96684f9cfa0
45 watchDurationMillis = 5266
46 retainedDurationMillis = 233
47 mApplication instance of com......MyApplication
48 mBase instance of androidx.appcompat.view.ContextThemeWrapper