-
Notifications
You must be signed in to change notification settings - Fork 36
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 on svg image #43
Comments
Seems SVG use a font which native iOS platform does not embed. Does this a Objective-C exception (or C++ exception) which can be handled by our user level code ? If so, we can add a protect here. To make it |
|
It will be really nice. |
Can we solve such problems for all possible alphabets? |
Did you test this ? |
There is another crash, EXC_BADACCESS on SDCGSVGDocumentWriteToData method. But it happens only at first load, subsequent load attempt won't crash. I also tried with SDWebImageSVGNativeCoder but this time it shows the file as pure black. as text: |
I don't think these two is the same issue. SDWebImage itself should not re-encode SVG image to NSData if you don't specify this (using thumbnail or transformer) Actually, the |
Is this logic bug ? Any demo can reproduce your For normal WebImage loading process, it should not trigger re-encode logic.
|
Try to open this image https://openseauserdata.com/files/b809fe0925eb3629bb1d3edb1fafcc88.svg
SDWebImage crashes because "NSFont can't be nil"
The text was updated successfully, but these errors were encountered: