Hurry up man 2016-02-01 08:51 采纳率: 0%
浏览 2032
已结题

eclipse使用fresco框架加载图片,内存没有释放.求大神指导

02-01 17:11:36.785: W/unknown:CloseableReference(17517): Finalized without closing: 429970e8 42997048 (type = CloseableStaticBitmap)
02-01 17:11:36.785: W/unknown:CloseableReference(17517): Finalized without closing: 439866c0 43986500 (type = NativePooledByteBuffer)
02-01 17:11:36.785: W/unknown:CloseableReference(17517): Finalized without closing: 42fc5cf8 42fc5bf0 (type = CloseableStaticBitmap)
....

下面是布局代码:
android:id="@+id/chatting_avatar_iv"
android:layout_width="48dp"
android:layout_height="48dp"
fresco:failureImage="@drawable/user_1"
fresco:failureImageScaleType="fitCenter"
fresco:placeholderImage="@drawable/user_1"
fresco:placeholderImageScaleType="fitCenter"
fresco:roundedCornerRadius="180dp" />
加载的时候 :

String userPic = OssUtils.thumbnailUserPic(PictureUtil.getUserPic(context,msg.getPicture()));
    Uri uri = Uri.parse(userPic);
    avatar.setImageURI(uri);

    这样使用应该是最基本的, 正常情况是没问题的吧 . 会不会因为当前activity关闭的时候,此activity没有被销毁 . 导致这里的内存也没有释放. 
  • 写回答

4条回答

  • 91program 博客专家认证 2016-02-01 09:01
    关注

    只提供这一点信息,无法分析吧
    即然知道是fresco框架加载图片引起的,只能查代码来分析。

    评论

报告相同问题?

悬赏问题

  • ¥15 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!