-
Notifications
You must be signed in to change notification settings - Fork 88
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
Loading this webp image crashes #114
Comments
In the latest SDWebImage Demo, it can be reproduced. I only used SDImageWebPCoder instead of SDImageAWebPCoder. I called sd_setImageWithURL and passed in the remote address of this image. The memory began to grow infinitely until it was killed. |
I tried to use SDWebImageAPWebCoder in our project and it also crashed. Using Demo, I finally found that the memory of this image would soar to 1.6G when loading, and if multiple images were displayed in the UITableViewCell, it would crash. I don't know if it was the problem with the image itself, or if the decoding was just so big. The Demo has been uploaded. If you have time to trouble reading it, thank you very much |
@DevWhan I think im running into the same issue. I have a feed paginated of images from a server. However when enough images are loaded they stop loading, app does not crash but i get the following on the warning on the console. "CGSImageDataLock: Cannot allocate memory |
OOM ? Maybe you can use that This can reduce the RAM usage for loading |
Yes, I suspect that the OOM was caused by SDImageWebPCoder. The image itself is only 3.4MB |
unused SDWebImageAWebPCoder
de3bc07f4186db0094ed2187883cd46e.zip
The text was updated successfully, but these errors were encountered: