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
iOS 17 (from beta 7+) Force Decode on HEIF/AVIF image may crash #3604
Comments
Guess this is Apple HEIF/HEVC decoder issue. It seems like a OOM ? If you want, you can disable the Force Decode, see that SDImageForceDecodePolicy, set into Or you can set the |
Does the similar stack trace only contains Not something like |
Wait a minute, why It actually should use the Did you change the |
Can you use the real iOS 17 device and debug with that HEIF image url ? Whether that |
Both stack traces are in the issue I above.
We are not doing any configuration to SDWebImage other than this:
Then use it as such:
I'll debug an AVIF download and let you know. |
AVIF ? But your stacktrace shows |
Oh, I see. HEIF standard does not require to use Which means, Apple's HEIF plugin can decode some |
A stupid workaround is to add the open-sourced |
To say, we need a better way to check: What
See the original PR: #3365 |
ok. we'll see if our release timing is compatible with your fix. Otherwise and we'll attempt the |
You can have a try by disable the force decode firstly. See my second comments. Note disable force decode may slightly effect frame rate on huge scroll list (because now image needed to be decoded when rendering, means on main queue) If you have a large list with animated images, you can filter that using context option(which is controlled by per-image-request, not a global option) |
Seems Apple's ImageIO decoder bug, no known way currently to workaround. A quick hack is to use Or maybe need further information to reproduce the crash, for example, can some |
we are falling back to WEBP for now, will let you know if we are able to reproduce this using AVIF so that apple can fix it. |
Can you provide some AVIF/HEIF which can trigger that crash ? Isn't this reproducible ? Because iPhone has HEVC hardware codec (and on iPhone 15 has AV1 hardware codec), maybe this also related to some specified iPhone Model ? Need further information to report to Apple |
Can now conclude in a bug, normal HEIF loaded UIImage rendering on UIImageView may still cause crash. |
New Issue Checklist
Issue Info
Issue Description and Steps
We are seeing two new issues that are very similar, since we have updated from
5.16.0.
to5.18.0.
. In addition to.jpg
and.png
we also have recently added support for.webp
(iOS 14 and iOS 15) and.avif
(iOS 16 and above)Any clues on what might be causing this?
Would you advise to downgrade to 5.16.0 before the issues started to happen? Or perhaps, if this is iOS 17, SDWebImage needs to catchup?
The text was updated successfully, but these errors were encountered: