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 Arcgis相交分析无法绘制一个或多个图形
  • ¥15 seatunnel-web使用SQL组件时候后台报错,无法找到表格
  • ¥15 fpga自动售货机数码管(相关搜索:数字时钟)
  • ¥15 用前端向数据库插入数据,通过debug发现数据能走到后端,但是放行之后就会提示错误
  • ¥30 3天&7天&&15天&销量如何统计同一行
  • ¥30 帮我写一段可以读取LD2450数据并计算距离的Arduino代码
  • ¥15 飞机曲面部件如机翼,壁板等具体的孔位模型
  • ¥15 vs2019中数据导出问题
  • ¥20 云服务Linux系统TCP-MSS值修改?
  • ¥20 关于#单片机#的问题:项目:使用模拟iic与ov2640通讯环境:F407问题:读取的ID号总是0xff,自己调了调发现在读从机数据时,SDA线上并未有信号变化(语言-c语言)