alexiscreuzot / SwiftyGif

High performance GIF engine
MIT License
1.99k stars 210 forks source link

Crash in setGifFromURL #167

Closed dheeraj-singh511 closed 1 year ago

dheeraj-singh511 commented 2 years ago

There is crash in setGifFromURL for a specific file. Attaching the file and crash log

9608A67D-60FF-4F6F-8794-98800935D5FE

Crash Stack trace

CrashReporter Key: A0F70DAC-97B0-43DE-A479-E200E6E64FD0 Hardware Model: iPhone10,3 Process: [876] Path: /private/var/containers/Bundle/Application/BD01C460-BCA9-4DBD-AB7A-6C470221FE07/.app/ Identifier: com.App.stage.rewrite Version: 9.7.938 (97938) Code Type: arm64 Parent Process: [1]

Date/Time: 2022-02-23T10:05:16.999Z Launch Time: 2022-02-23T10:05:05Z OS Version: iPhone OS 14.8 (18H17) Report Version: 104

Exception Type: SIGSEGV Exception Codes: SEGV_MAPERR at 0xe000000010b92374 Crashed Thread: 0

Thread 0 Crashed: 0 QuartzCore 0x00000001a50161b8 CA::Layer::retain_parent(CA::Transaction*) const + 56 1 QuartzCore 0x00000001a5026138 CALayerGetSuperlayer + 48 2 UIKitCore 0x00000001a4ba6a1c -[UIView(UIKitManual) superview] + 48 3 UIKitCore 0x00000001a4b88d30 -[UIView(Hierarchy) isDescendantOfView:] + 48 4 UIKitCore 0x00000001a3eb4a78 52-[_UIPointerInteractionAssistant _assistantForView:]_block_invoke + 88 5 CoreFoundation 0x00000001a1d61e94 NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK + 12 6 CoreFoundation 0x00000001a1cde234 -[NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 200 7 UIKitCore 0x00000001a3eb499c -[_UIPointerInteractionAssistant _assistantForView:] + 160 8 UIKitCore 0x00000001a3eb4ad0 -[_UIPointerInteractionAssistant _monitorsView:] + 20 9 CoreFoundation 0x00000001a1e04c80 40-[NSSet objectsWithOptions:passingTest:]_block_invoke + 28 10 CoreFoundation 0x00000001a1d427e8 NSSET_IS_CALLING_OUT_TO_A_BLOCK + 12 11 CoreFoundation 0x00000001a1d42a68 NSSetEnumerate + 628 12 CoreFoundation 0x00000001a1cf4ea4 -[NSSet objectsWithOptions:passingTest:] + 192 13 UIKitCore 0x00000001a46f0418 -[UIWindow subtreeMonitorsForView:] + 120 14 UIKitCore 0x00000001a4b85e68 -[UIView(Hierarchy) removeFromSuperview] + 64 15 SwiftyGif 0x0000000104d00500 partial apply forwarder for closure #1 () -> () in closure #1 (Foundation.Data?, C.NSURLResponse?, Swift.Error?) -> () in (extension in SwiftyGif):C.UIImageView.setGifFromURL(: Foundation.URL, manager: SwiftyGif.SwiftyGifManager, loopCount: Swift.Int, levelOfIntegrity: Swift.Float, session: C.NSURLSession, showLoader: Swift.Bool, customLoader: C.UIView?) -> __C.NSURLSessionDataTask? (UIImageView+SwiftyGif.swift:125) 16 SwiftyGif 0x0000000104cfd828 reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () (:0) 17 libdispatch.dylib 0x00000001a1a2e2b0 _dispatch_call_block_and_release + 20 18 libdispatch.dylib 0x00000001a1a2f298 _dispatch_client_callout + 12 19 libdispatch.dylib 0x00000001a1a11430 _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 868 20 CoreFoundation 0x00000001a1d76998 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 8 21 CoreFoundation 0x00000001a1d70df8 __CFRunLoopRun + 2524 22 CoreFoundation 0x00000001a1d6fed0 CFRunLoopRunSpecific + 568 23 GraphicsServices 0x00000001b84b9570 GSEventRunModal + 156 24 UIKitCore 0x00000001a469d2d0 -[UIApplication _run] + 1048 25 UIKitCore 0x00000001a46a284c UIApplicationMain + 160