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

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条回答 默认 最新

  • 普通网友 领域专家: 编程技术技术领域 2016-02-01 09:01
    关注

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

    评论

报告相同问题?