Longinus
Longinus copied to clipboard
Crashing on AnimatedImageView
When loading gifs (120 frames, 512x512, per gif), app is crashing on < func cancelPreloadTask() >

and crashing while scrolling collectionView with gifs (120 frames, 512x512, per gif)

I have the same issue.
Crashed: com.apple.main-thread
0 Longinus 0x74c0 $s8Longinus0A9ExtensionVA2A13AnimatedImageCRbzlE17cancelPreloadTaskyyFAE_Tg5 + 288
1 Longinus 0x8974 $s8Longinus13AnimatedImageCfDTo + 40
2 libobjc.A.dylib 0x7b14 AutoreleasePoolPage::releaseUntil(objc_object**) + 196
3 libobjc.A.dylib 0x3e54 objc_autoreleasePoolPop + 212
4 UIKitCore 0x32b1bc -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 2488
5 UIKitCore 0x225308 -[UICollectionView _updateVisibleCellsNow:] + 4372
6 UIKitCore 0x179a84 -[UICollectionView layoutSubviews] + 320
7 UIKitCore 0x18bfb4 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2592
8 QuartzCore 0x40cd0 CA::Layer::layout_if_needed(CA::Transaction*) + 532
9 QuartzCore 0x33134 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 136
10 QuartzCore 0x47a7c CA::Context::commit_transaction(CA::Transaction*, double, double*) + 452
11 QuartzCore 0x50970 CA::Transaction::commit() + 704
12 QuartzCore 0x3288c CA::Transaction::flush_as_runloop_observer(bool) + 88
13 CoreFoundation 0x410c4 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
14 CoreFoundation 0x10080 __CFRunLoopDoObservers + 592
15 CoreFoundation 0xb13c __CFRunLoopRun + 1052
16 CoreFoundation 0x1ebc8 CFRunLoopRunSpecific + 600
17 GraphicsServices 0x1374 GSEventRunModal + 164
18 UIKitCore 0x514648 -[UIApplication _run] + 1100
19 UIKitCore 0x295d90 UIApplicationMain + 364
I have a PR that should fix this issue :) @osmontanov you can check it and maybe use it until a new version will be released?
https://github.com/KittenYang/Longinus/pull/27