I/art: Starting a blocking GC Alloc
02-08 15:40:00.307 15871-15871/android.ye.fashioncircle I/art: Clamp target GC heap from 207MB to 192MB
02-08 15:40:00.307 15871-15871/android.ye.fashioncircle I/art: Alloc concurrent mark sweep GC freed 3(96B) AllocSpace objects, 0(0B) LOS objects, 0% free, 191MB/192MB, paused 773us total 41.748ms
02-08 15:40:00.308 15871-15871/android.ye.fashioncircle I/art: Forcing collection of SoftReferences for 1406KB allocation
02-08 15:40:00.308 15871-15871/android.ye.fashioncircle I/art: Starting a blocking GC Alloc
02-08 15:40:00.349 15871-15871/android.ye.fashioncircle I/art: Clamp target GC heap from 207MB to 192MB
02-08 15:40:00.349 15871-15871/android.ye.fashioncircle I/art: Alloc concurrent mark sweep GC freed 3(96B) AllocSpace objects, 0(0B) LOS objects, 0% free, 191MB/192MB, paused 789us total 40.572ms
02-08 15:40:00.351 15871-15871/android.ye.fashioncircle W/art: Throwing OutOfMemoryError "Failed to allocate a 1440012 byte allocation with 200488 free bytes and 195KB until OOM"
02-08 15:40:00.351 15871-15871/android.ye.fashioncircle D/skia: --- allocation failed for scaled bitmap
02-08 15:40:00.352 15871-15871/android.ye.fashioncircle D/AndroidRuntime: Shutting down VM
02-08 15:40:00.355 15871-15871/android.ye.fashioncircle I/art: Waiting for a blocking GC Alloc
02-08 15:40:00.361 15871-15871/android.ye.fashioncircle I/art: WaitForGcToComplete blocked for 5.461ms for cause Alloc
02-08 15:40:00.361 15871-15871/android.ye.fashioncircle I/art: Starting a blocking GC Alloc
02-08 15:40:00.673 7773-7780/android.ye.fashioncircle A/art: art/runtime/barrier.cc:90] Check failed: count_ == 0 (count_=-1, 0=0) Attempted to destroy barrier with non zero count
02-08 15:40:00.673 7773-7780/android.ye.fashioncircle A/art: art/runtime/runtime.cc:366] Runtime aborting --- recursively, so no thread-specific detail!
02-08 15:40:00.673 7773-7780/android.ye.fashioncircle A/art: art/runtime/runtime.cc:366]
这样的时候界面出现卡顿,然后就OOM闪退了
该如何解决。。。
页面是一个scrollview嵌套recyclerview使得分页加载失效,一次性加载了所有的图片
换成Glide和ImageLoader也是OOM
使用fresco框架加载图片时,一次性加载70多张就会出现OOM,该如何解决
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
4条回答
- 依风听雨锋 2017-02-08 09:21关注
为什么要用scrollview嵌套recycleview,分页加载还是要的,即便没有分页加载也不会一次性全部加载吧,按道理本身应该recycleview只会加载显示的图片的
嵌套滚动可以看看NestedScrollView
解决 无用评论 打赏 举报
悬赏问题
- ¥15 安卓adb backup备份应用数据失败
- ¥15 eclipse运行项目时遇到的问题
- ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
- ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
- ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
- ¥50 成都蓉城足球俱乐部小程序抢票
- ¥15 yolov7训练自己的数据集
- ¥15 esp8266与51单片机连接问题(标签-单片机|关键词-串口)(相关搜索:51单片机|单片机|测试代码)
- ¥15 电力市场出清matlab yalmip kkt 双层优化问题
- ¥30 ros小车路径规划实现不了,如何解决?(操作系统-ubuntu)