Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oom #42

Open
hukejia opened this issue Sep 10, 2019 · 5 comments
Open

oom #42

hukejia opened this issue Sep 10, 2019 · 5 comments

Comments

@hukejia
Copy link

hukejia commented Sep 10, 2019

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

在recyclerview里用,100% oom

@zjupure
Copy link
Owner

zjupure commented Sep 11, 2019

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

@hukejia
Copy link
Author

hukejia commented Sep 11, 2019

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

@zjupure
Copy link
Owner

zjupure commented Sep 12, 2019

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

@hukejia
Copy link
Author

hukejia commented Sep 26, 2019

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

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

@Yahui-Li
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants