HMS-Core / hms-mapkit-demo

HMS Map Kit demo provides an example of intergrating HMS Map Android SDK. Personalizing how your map displays and interacts with your users tailors their experience to them
https://developer.huawei.com/consumer/en/hms/huawei-MapKit?ha_source=hms1
Apache License 2.0
115 stars 43 forks source link

There is a memory leak on the map. #17

Open AngkiZ opened 1 year ago

AngkiZ commented 1 year ago
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

Xuejiao-Shi commented 1 year ago

Do you have a specific path for memory leak? or a screenshot of the corresponding class.