Skip to content
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

SDImageIOAnimatedCoder createFrameAtIndex crash Still exist in SDWebimage 5.15.1 #3596

Open
lzttxs opened this issue Sep 7, 2023 · 3 comments

Comments

@lzttxs
Copy link

lzttxs commented Sep 7, 2023

SDAnimatedImagePlayer crash

Platform Name ios
Platform Version 16.6
SDWebImage Version 5.15.1
Integration Method cocoapods
Xcode Version Xcode 14.1
Repro rate 10%

Found a lot of this problem, found before, but has not been solved, hoping to solve this problem,
thanks

SIGABRT
libsystem_kernel.dylib ___pthread_kill

Issue Description and Steps

crash stack

0 libsystem_kernel.dylib
___pthread_kill + 8
1 libsystem_pthread.dylib
_pthread_kill + 268
2 libsystem_c.dylib
_abort + 180
3 libsystem_c.dylib
_err
4 CoreFoundation
_CFDataGetBytes.cold.4
5 CoreFoundation
_CFDataGetBytes + 332
6 ImageIO
_CGImageGetImageSource + 156
7 UIKitCore
-[_UIImageCGImageContent initWithCGImage:scale:] + 40
8 UIKitCore
-[UIImage initWithCGImage:scale:orientation:] + 68
9 SDWebImage
+[SDImageIOAnimatedCoder createFrameAtIndex:source:scale:preserveAspectRatio:thumbnailSize:options:] + 884
10 SDWebImage
-[SDImageIOAnimatedCoder animatedImageFrameAtIndex:] + 240
11 SDWebImage
-[SDAnimatedImage animatedImageFrameAtIndex:] + 152
12 SDWebImage
__43-[SDAnimatedImagePlayer displayDidRefresh:]_block_invoke + 52
13 Foundation
_NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK + 24
14 Foundation
-[NSBlockOperation main] + 104
15 Foundation
_NSOPERATION_IS_INVOKING_MAIN + 16
16 Foundation
-[NSOperation start] + 708
17 Foundation
_NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION + 16
18 Foundation
___NSOQSchedule_f + 172
19 libdispatch.dylib
__dispatch_block_async_invoke2 + 148

@lzttxs
Copy link
Author

lzttxs commented Sep 7, 2023

How to fix it?

@dreampiggy
Copy link
Contributor

dreampiggy commented Sep 8, 2023

Pass the AvoidLazyDecoding = @(YES) from the context options SDWebImageContextDecodeOptions for your animated image loading

@hnny09
Copy link

hnny09 commented Nov 17, 2023

How to fix it?

fixed bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants