YYImage
YYImage copied to clipboard
YYImageCoder crash in iOS 10 beta3
We've encountered frequent crash while using YYWebImage in iOS 10 beta3.
Reproduce background:
- We have a UICollectionView to present lots of images(include jpeg and gif), and it is able to load more images in pages.
- All the presented images are loaded with URLs. Reproduce procedure: Just swipe the UICollectionView rapidly to load more images.
Here are two stack frame of crashed thread:
Stack Frame One: // the relevant image is http://img04.sogoucdn.com/app/a/200678/146711412524012.gif
Thread 10 name: com.ibireme.webimage.request Thread 10 Crashed: 0 vImage 0x0000000182b10dc0 0x182b07000 + 40384 1 vImage 0x0000000182b095a0 0x182b07000 + 9632 2 CoreGraphics 0x0000000182ea12e8 0x182e6e000 + 209640 3 CoreGraphics 0x00000001830816c4 0x182e6e000 + 2176708 4 CoreGraphics 0x000000018310d484 0x182e6e000 + 2749572 5 CoreGraphics 0x000000018310a094 0x182e6e000 + 2736276 6 CoreGraphics 0x000000018306ace4 0x182e6e000 + 2084068 7 CoreGraphics 0x000000018305ac74 0x182e6e000 + 2018420 8 MyApp 0x00000001003072e8 YYCGImageCreateDecodedCopy (YYImageCoder.m:890) 9 MyApp 0x000000010030a7f0 -YYImageDecoder _newUnblendedImageAtIndex:extendToCanvas:decoded: 10 MyApp 0x0000000100308fcc -YYImageDecoder _frameAtIndex:decodeForDisplay: 11 MyApp 0x0000000100308bb4 -YYImageDecoder frameAtIndex:decodeForDisplay: 12 MyApp 0x000000010031d6b8 -YYWebImageOperation connection:didReceiveData: 13 CFNetwork 0x00000001822e33e0 0x1820d5000 + 2155488 14 CFNetwork 0x00000001822e3370 0x1820d5000 + 2155376 15 CFNetwork 0x00000001822e34e4 0x1820d5000 + 2155748 16 CFNetwork 0x00000001822a2c5c 0x1820d5000 + 1891420 17 CFNetwork 0x000000018220b4c4 0x1820d5000 + 1270980 18 CFNetwork 0x000000018220a638 0x1820d5000 + 1267256 19 libdispatch.dylib 0x0000000181529784 0x181528000 + 6020 20 libdispatch.dylib 0x0000000181534f80 0x181528000 + 53120 21 CFNetwork 0x00000001822c154c 0x1820d5000 + 2016588 22 CoreFoundation 0x00000001819bb238 0x1819b3000 + 33336 23 CFNetwork 0x00000001822c1430 0x1820d5000 + 2016304 24 CFNetwork 0x00000001822c2758 0x1820d5000 + 2021208 25 CFNetwork 0x00000001822c24c4 0x1820d5000 + 2020548 26 CoreFoundation 0x0000000181a8e418 0x1819b3000 + 898072 27 CoreFoundation 0x0000000181a8dd60 0x1819b3000 + 896352 28 CoreFoundation 0x0000000181a8b960 0x1819b3000 + 887136 29 CoreFoundation 0x00000001819bb8d8 0x1819b3000 + 35032 30 Foundation 0x0000000182458e3c 0x18244c000 + 52796 31 Foundation 0x00000001824ad584 0x18244c000 + 398724 32 MyApp 0x000000010031b290 +YYWebImageOperation _networkThreadMain: 33 Foundation 0x00000001825553ac 0x18244c000 + 1086380 34 libsystem_pthread.dylib 0x00000001817339ec 0x181730000 + 14828 35 libsystem_pthread.dylib 0x00000001817338fc 0x181730000 + 14588 36 libsystem_pthread.dylib 0x0000000181730ef8 0x181730000 + 3832
Stack Frame Two:
<NSThread: 0x17447bc00>{number = 9, name = com.ibireme.webimage.request}
<_NSCallStackArray 0x1704493c0>(
0 ??? 0x000000010d048a74 0x0 + 4513368692,
1 MyApp 0x0000000100479d44 main + 0,
2 ImageIO 0x000000018379b174
Workaround: Replace YYWebImageOptionProgressive with other available option while setImageWithURL, however this might delay your images displaying.
hi! How did you solve this problem later?
How did you solve this problem later?