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 mmocr的训练错误,结果全为0
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀