-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Crash +[SDImageCoderHelper CGImageCreateDecoded:orientation:] #3641
Comments
standard OOM issue... If your App has a limit RAM footprint, you can disable the force decode for image loading |
“If your App has a limit RAM footprint”, you mean that SDImageCache.shared.config.maxMemoryCost = UInt(1024 * 1024 * 100)? Are there any other solutions? |
Yes
Maybe no. Because if we don't use You can try to disable the force decode firstly to see the memory footprint usage. Then, if this still not enough, try using the thumbnail decoding feature to limit the big image size: Maybe useful: https://github.com/SDWebImage/SDWebImage/wiki/Common-Problems#configuration-to-reduce-memory-pressure-aggressive |
Ok, I will try it.
I see that there is mention of GIF in the crash stack. This method might not have a significant impact on GIF images because the issue with GIFs is often related to a large number of frames rather than the size. |
Just have a try. There are also another default control. The You can change this value as well to see the differenes. Which effect the frame rate as well. |
New Issue Checklist
Issue Info
Issue Description and Steps
Please fill in the detailed description of the issue (full output of any stack trace, compiler error, ...) and the steps to reproduce the issue.
The text was updated successfully, but these errors were encountered: