SDWebImage / SDWebImageSwiftUI

SwiftUI Image loading and Animation framework powered by SDWebImage
https://sdwebimage.github.io/SDWebImageSwiftUI
MIT License
2.18k stars 224 forks source link

[Crash] SDImageIOAnimatedCoder createFrameAtIndex:source:scale:preserveAspectRatio:thumbnailSize:lazyDecode:animatedImage:] (SDImageIOAnimatedCoder.m:477) #305

Open Patczuk opened 6 months ago

Patczuk commented 6 months ago

SIGSEGV : Crash due to signal: SIGSEGV(SEGV_MAPERR) at 00000000 (Could not access memory: Attempted to reference a deallocated object at 00000000) +[SDImageIOAnimatedCoder createFrameAtIndex:source:scale:preserveAspectRatio:thumbnailSize:lazyDecode:animatedImage:] (SDImageIOAnimatedCoder.m:477 )

0 | libsystem_platform.dylib | _platform_memmove + 76 1 | ImageIO | std::1::shared_ptr_emplace<GIFBufferInfo, std::1::allocator >::shared_ptr_emplace<unsigned char&, bool, unsigned int&, unsigned int&, unsigned int>(std::__1::allocator, unsigned char&, bool&&, unsigned int&, unsigned int&, unsigned int&&) + 75 2 | ImageIO | std::1::shared_ptr std::__1::allocate_shared<GIFBufferInfo, std::1::allocator, unsigned char&, bool, unsigned int&, unsigned int&, unsigned int, void>(std::__1::allocator const&, unsigned char&, bool&&, unsigned int&, unsigned int&, unsigned int&&) + 87 3 | ImageIO | GIFReadPlugin::copyImageBlockSet(InfoRec, CGImageProvider, CGRect, CGSize, CFDictionary const) + 799 4 | ImageIO | IIO_Reader::CopyImageBlockSetProc(void, CGImageProvider, CGRect, CGSize, __CFDictionary const) + 279 5 | ImageIO | IIOImageProviderInfo::copyImageBlockSetWithOptions(CGImageProvider, CGRect, CGSize, __CFDictionary const) + 743 6 | ImageIO | IIOImageProviderInfo::CopyImageBlockSetWithOptions(void, CGImageProvider, CGRect, CGSize, CFDictionary const) + 827 7 | CoreGraphics | imageProvider_retain_data + 91 8 | CoreGraphics | CGDataProviderRetainData + 79 9 | CoreGraphics | provider_for_destination_retain_data + 27 10 | CoreGraphics | CGDataProviderRetainData + 79 11 | CoreGraphics | CGAccessSessionCreate + 107 12 | CoreGraphics | get_access_session + 51 13 | CoreGraphics | img_raw_read + 947 14 | CoreGraphics | img_interpolate_read + 671 15 | CoreGraphics | img_data_lock + 7963 16 | CoreGraphics | CGSImageDataLock + 1319 17 | CoreGraphics | ripc_AcquireRIPImageData + 727 18 | CoreGraphics | ripc_DrawImage + 803 19 | CoreGraphics | CGContextDrawImageWithOptions + 1379 20 | ImageIO | CGImageCreateCopyWithParametersNew(CGImage, CGColor, CGAffineTransform, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, CGColorSpace, unsigned int, bool, CGColorRenderingIntent, CGInterpolationQuality, bool) + 1655 21 | ImageIO | IIOImageSource::createThumbnailAtIndex(unsigned long, IIODictionary*) + 2727 22 | ImageIO | CGImageSourceCreateThumbnailAtIndex + 379 23 | +[SDImageIOAnimatedCoder createFrameAtIndex:source:scale:preserveAspectRatio:thumbnailSize:lazyDecode:animatedImage:] (SDImageIOAnimatedCoder.m:477) 24 | -[SDImageIOAnimatedCoder safeAnimatedImageFrameAtIndex:] (SDImageIOAnimatedCoder.m:1081) 25 | -[SDImageIOAnimatedCoder animatedImageFrameAtIndex:] (SDImageIOAnimatedCoder.m:1075) 26 | -[SDAnimatedImage animatedImageFrameAtIndex:] (SDAnimatedImage.m:295) 27 | 41-[SDImageFramePool prefetchFrameAtIndex:]_block_invoke (SDImageFramePool.m:118) 28 | Foundation | NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK + 23 29 | Foundation | -[NSBlockOperation main] + 103 30 | Foundation | __NSOPERATION_IS_INVOKING_MAIN + 15 31 | Foundation | -[NSOperation start] + 707 32 | Foundation | NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION + 15 33 | Foundation | __NSOQSchedule_f + 171 34 | libdispatch.dylib | _dispatch_block_async_invoke2 + 147 35 | libdispatch.dylib | _dispatch_client_callout + 19 36 | libdispatch.dylib | _dispatch_continuation_pop + 503 37 | libdispatch.dylib | _dispatch_async_redirect_invoke + 735 38 | libdispatch.dylib | _dispatch_root_queue_drain + 395 39 | libdispatch.dylib | _dispatch_worker_thread2 + 163 40 | libsystem_pthread.dylib | _pthread_wqthread + 227 41 | libsystem_pthread.dylib | start_wqthread + 7