GlideWebpDecoder icon indicating copy to clipboard operation
GlideWebpDecoder copied to clipboard

oom

Open hukejia opened this issue 6 years ago • 5 comments

Glide.with(holder.getContext()).load(data.getCover_gif()) .optionalTransform(WebpDrawable.class,new WebpDrawableTransformation(new MultiTransformation<>(new CenterCrop(),roundedCorners))) .into(iv);

在recyclerview里用,100% oom

hukejia avatar Sep 10 '19 10:09 hukejia

can you provide the image urls? and try reproduce in sample project?

zjupure avatar Sep 11 '19 00:09 zjupure

can you provide the image urls? and try reproduce in sample project?

[{ "cover_gif": "https://go-call.oss-cn-hangzhou.aliyuncs.com/7ac2ee0264e111e9b542067370699482.webp" }, { "cover_gif": "https://go-call.oss-cn-hangzhou.aliyuncs.com/99f2f89464e111e9ae73069825642616.webp" }, { "cover_gif": "https://go-call.oss-cn-hangzhou.aliyuncs.com/633aefd264e111e9934d066c33130828.webp" }, { "cover_gif": "https://go-call.oss-cn-hangzhou.aliyuncs.com/bb459e4864e111e9a80f061d8cebef70.webp" }, { "cover_gif": "https://go-call.oss-cn-hangzhou.aliyuncs.com/a697a43c628911e98bda06c9c3ff5f2c.webp" }, { "cover_gif": "https://go-call.oss-cn-hangzhou.aliyuncs.com/4d444cb464e111e9b03f06c9c3ff5f2c.webp" }, { "cover_gif": "https://go-call.oss-cn-hangzhou.aliyuncs.com/0a0dd2fc627b11e985c306c9c3ff5f2c.webp" }, { "cover_gif": "https://go-call.oss-cn-hangzhou.aliyuncs.com/216f514c64e111e9b8f7061d8cebef70.webp" }, { "cover_gif": "https://go-call.oss-cn-hangzhou.aliyuncs.com/43e46e4664e211e9b3f506c9c3ff5f2c.webp" }, { "cover_gif": "https://go-call.oss-cn-hangzhou.aliyuncs.com/6052314e64e211e9a137066c33130828.webp" }] 不加CenterCrop不oom,加了就oom

hukejia avatar Sep 11 '19 06:09 hukejia

@hukejia 我在demo里没有复现oom问题。你用的是哪个版本的,是否跟机型和系统有关,有其他规律吗,使用AS的profiler看下内存是在持续增长吗

zjupure avatar Sep 12 '19 13:09 zjupure

@hukejia 我在demo里没有复现oom问题。你用的是哪个版本的,是否跟机型和系统有关,有其他规律吗,使用AS的profiler看下内存是在持续增长吗

4.9.0的,我用的5.1的oppo,我试了用fresco一样会oom,只是概率稍微小了一点点,用glide加载gif就没问题

hukejia avatar Sep 26 '19 07:09 hukejia

我遇到了虚拟内存不够用的情况,此时内存虽然占用很大但是尚且有空间,但是虚拟空间超过4G了。我目前也没有具体的信息提供因为我暂时搞不懂为什么。请问您有什么关于定位此问题的建议吗?英语太差就不用英语写了.

Yahui-Li avatar Dec 17 '19 04:12 Yahui-Li