hms-mapkit-demo
hms-mapkit-demo copied to clipboard
There is a memory leak on the map.
eg:
┬─── │ GC Root: System class │ ├─ android.os.Parcel class │ Leaking: NO (e↓ is not leaking and a class is never leaking) │ ↓ static Parcel.mCreators ├─ java.util.HashMap instance │ Leaking: NO (e↓ is not leaking) │ ↓ HashMap[key()] ├─ com.huawei.hms.dynamicloader.e instance │ Leaking: NO (mab↓ is not leaking and A ClassLoader is never leaking) │ ↓ ClassLoader.runtimeInternalObjects ├─ java.lang.Object[] array │ Leaking: NO (mab↓ is not leaking) │ ↓ Object[1415] ├─ com.huawei.hms.maps.mab class │ Leaking: NO (a class is never leaking) │ ↓ static mab.a │ ~ ╰→ com.huawei.hms.maps.sample.MapFunctionsDemoActivity instance Leaking: YES (ObjectWatcher was watching this because com.huawei.hms.maps.sample.MapFunctionsDemoActivity received Activity#onDestroy() callback and Activity#mDestroyed is true) Retaining 927.9 kB in 8278 objects key = e8a8ff4b-166a-473a-9218-ff492477d59d watchDurationMillis = 5696 retainedDurationMillis = 692 mApplication instance of android.app.Application mBase instance of androidx.appcompat.view.ContextThemeWrapper
Do you have a specific path for memory leak? or a screenshot of the corresponding class.