高德地图内存测试报告

测试环境

设备:GT-I9300
Android版本:6.0.1
APP版本:高德地图V7.6.4.2043

内存抖动

0x00

首页->更多->扫一扫,主动呈现方式,内存图如下:

手机发热严重。

0x01

首页->滑动查找地点->不停滑动查找,被动呈现,内存图如下:

而百度地图中同样操作的内存图如下:

高德地图内存测试报告_第1张图片

问题显而易见

0x02

首页->导航(来回切换),被动呈现,内存图如下:

问题这种切换操作中,频繁的gc会造成卡顿现象,大致在切换3-5次的时候,就会出现一次卡顿情况。

0x03

首页-附近页面,上下滑动浏览:

高德地图内存测试报告_第2张图片

我能说卡成翔了么,这种界面,不要手动去gc,很容易卡的。

内存泄漏

疑似内存泄漏点,有3.66M的Image对象,没有被释放掉:

高德地图内存测试报告_第3张图片

测试过程中其他问题

0x00

主页->导航,logcat必报如下错误:

03-31 15:01:52.839 17543-17744/com.autonavi.minimap W/System.err: java.io.IOException: closed
03-31 15:01:52.844 17543-17744/com.autonavi.minimap W/System.err:     at com.android.okhttp.okio.RealBufferedSource$1.available(RealBufferedSource.java:357)
03-31 15:01:52.844 17543-17744/com.autonavi.minimap W/System.err:     at atp.d(URIRequest.java:229)
03-31 15:01:52.844 17543-17744/com.autonavi.minimap W/System.err:     at aub.a(HttpCacheImpl.java:167)
03-31 15:01:52.844 17543-17744/com.autonavi.minimap W/System.err:     at com.autonavi.sdk.http.HttpAsyncTask.e(HttpAsyncTask.java:545)
03-31 15:01:52.844 17543-17744/com.autonavi.minimap W/System.err:     at com.autonavi.sdk.http.HttpAsyncTask.c(HttpAsyncTask.java:49)
03-31 15:01:52.844 17543-17744/com.autonavi.minimap W/System.err:     at avr$1.call(PriorityAsyncTask.java:82)
03-31 15:01:52.844 17543-17744/com.autonavi.minimap W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
03-31 15:01:52.844 17543-17744/com.autonavi.minimap W/System.err:     at avu.run(PriorityRunnable.java:16)
03-31 15:01:52.844 17543-17744/com.autonavi.minimap W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
03-31 15:01:52.844 17543-17744/com.autonavi.minimap W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
03-31 15:01:52.844 17543-17744/com.autonavi.minimap W/System.err:     at java.lang.Thread.run(Thread.java:818)
03-31 15:01:52.939 17543-17794/com.autonavi.minimap W/System.err: java.io.IOException: closed
03-31 15:01:52.939 17543-17794/com.autonavi.minimap W/System.err:     at com.android.okhttp.okio.RealBufferedSource$1.available(RealBufferedSource.java:357)
03-31 15:01:52.939 17543-17794/com.autonavi.minimap W/System.err:     at atp.d(URIRequest.java:229)
03-31 15:01:52.939 17543-17794/com.autonavi.minimap W/System.err:     at aub.a(HttpCacheImpl.java:167)
03-31 15:01:52.939 17543-17794/com.autonavi.minimap W/System.err:     at com.autonavi.sdk.http.HttpAsyncTask.e(HttpAsyncTask.java:545)
03-31 15:01:52.939 17543-17794/com.autonavi.minimap W/System.err:     at com.autonavi.sdk.http.HttpAsyncTask.c(HttpAsyncTask.java:49)
03-31 15:01:52.939 17543-17794/com.autonavi.minimap W/System.err:     at avr$1.call(PriorityAsyncTask.java:82)
03-31 15:01:52.939 17543-17794/com.autonavi.minimap W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
03-31 15:01:52.939 17543-17794/com.autonavi.minimap W/System.err:     at avu.run(PriorityRunnable.java:16)
03-31 15:01:52.939 17543-17794/com.autonavi.minimap W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
03-31 15:01:52.939 17543-17794/com.autonavi.minimap W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
03-31 15:01:52.939 17543-17794/com.autonavi.minimap W/System.err:     at java.lang.Thread.run(Thread.java:818)

0x01

Json数据转换问题


03-31 15:24:45.194 26963-27076/com.autonavi.minimap W/System.err: org.json.JSONException: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject
03-31 15:24:45.204 26963-27076/com.autonavi.minimap W/System.err:     at org.json.JSON.typeMismatch(JSON.java:111)
03-31 15:24:45.209 26963-27076/com.autonavi.minimap W/System.err:     at org.json.JSONObject.<init>(JSONObject.java:160)
03-31 15:24:45.209 26963-27076/com.autonavi.minimap W/System.err:     at org.json.JSONObject.<init>(JSONObject.java:173)
03-31 15:24:45.209 26963-27076/com.autonavi.minimap W/System.err:     at com.autonavi.minimap.life.common.net.pipe.PipeCollectionDataService$NetJsonCallback.prepare(PipeCollectionDataService.java:54)
03-31 15:24:45.209 26963-27076/com.autonavi.minimap W/System.err:     at com.autonavi.minimap.life.common.net.pipe.PipeCollectionDataService$NetJsonCallback.prepare(PipeCollectionDataService.java:33)
03-31 15:24:45.209 26963-27076/com.autonavi.minimap W/System.err:     at com.autonavi.sdk.http.HttpAsyncTask.e(HttpAsyncTask.java:530)
03-31 15:24:45.209 26963-27076/com.autonavi.minimap W/System.err:     at com.autonavi.sdk.http.HttpAsyncTask.c(HttpAsyncTask.java:49)
03-31 15:24:45.209 26963-27076/com.autonavi.minimap W/System.err:     at avr$1.call(PriorityAsyncTask.java:82)
03-31 15:24:45.209 26963-27076/com.autonavi.minimap W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
03-31 15:24:45.209 26963-27076/com.autonavi.minimap W/System.err:     at avu.run(PriorityRunnable.java:16)
03-31 15:24:45.209 26963-27076/com.autonavi.minimap W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
03-31 15:24:45.209 26963-27076/com.autonavi.minimap W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
03-31 15:24:45.209 26963-27076/com.autonavi.minimap W/System.err:     at java.lang.Thread.run(Thread.java:818)
03-31 15:24:53.629 26963-26969/com.autonavi.minimap W/art: Suspending all threads took: 17.560ms

0x02

个人资料界面->头像->相册->选择一张图片->保存,居然报错。

提示信息为:

你可能感兴趣的:(高德地图内存测试报告)