Sdwebimage: picture decode error,why?

Created on 17 Jan 2017  ·  8Comments  ·  Source: SDWebImage/SDWebImage

New Issue Checklist

Issue Info

Info | Value |
-------------------------|-------------------------------------|
Platform Name | e.g. ios / tvos
Platform Version | e.g. 8.0
SDWebImage Version | e.g. 3.7.6
Integration Method | e.g. carthage / cocoapods / manually
Xcode Version | e.g. Xcode 7.3
Repro rate | e.g. all the time (100%) / sometimes x% / only once
Repro with our demo prj | e.g. does it happen with our demo project?
Demo project link | e.g. link to a demo project that highlights the issue

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.

Most helpful comment

@zhouXiaoR 你是不是使用了 SDWebImageOptions 中设置了 SDWebImageProgressiveDownload 如果是 可以去掉就不报错了 应该是有些图片类型不允许 通过SDWebImageProgressiveDownload 这种渐进式的方式下载。

All 8 comments

please use the latest version of the library. also share the decode error you mention.
or you can try the image url that causes the issue in the sample project and check if the error occurs there as well.

When loading the images, sometimes the images appear black figure, white figure, or the image is not completely, Xcode will show the warning (JPEGDecompressSurface : Picture decode failed:).Whether for thread safety problem ?
48292121ea8dab737d769ad3da701a6a
00314745887051cd5cd6447c0dc21fad

as i have mentioned above please try the images you sent me in the demo project using the latest version of the library. if you still face issues please let us know

I see the log at 3.8.2
JPEGDecompressSurface : Picture decode failed: e00002d1

@huangqiaobo 我也在控制台看到了这样的警告错误(Picture decode failed:),所以我也在怀疑,是我们服务端数据传输的错误,还是SDWebImage的Bug,或者,能不能有一个系统的或者自定义的方法来判断某个解码出来的图片是否有误,这样便于再次请求。

@mythodeia ,thanks your reply, we are looking for the cause of "Picture decode failed".Looking forward to your reply again!Thanks.

can you use the latest release and try again? if the problem still occurs please share the url of some of the images that cause the issue

@zhouXiaoR 你是不是使用了 SDWebImageOptions 中设置了 SDWebImageProgressiveDownload 如果是 可以去掉就不报错了 应该是有些图片类型不允许 通过SDWebImageProgressiveDownload 这种渐进式的方式下载。

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ricardo1980 picture Ricardo1980  ·  6Comments

ToLengSon picture ToLengSon  ·  3Comments

doingy picture doingy  ·  4Comments

devshen picture devshen  ·  6Comments

Binusz picture Binusz  ·  4Comments