{"action":"created","issue":{"url":"https://api.github.com/repos/ibireme/YYImage/issues/49","repository_url":"https://api.github.com/repos/ibireme/YYImage","labels_url":"https://api.github.com/repos/ibireme/YYImage/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/ibireme/YYImage/issues/49/comments","events_url":"https://api.github.com/repos/ibireme/YYImage/issues/49/events","html_url":"https://github.com/ibireme/YYImage/issues/49","id":168009109,"number":49,"title":"YYImageCoder crash in iOS 10 beta3","user":{"login":"phoenixxyang","id":1391222,"avatar_url":"https://avatars.githubusercontent.com/u/1391222?v=3","gravatar_id":"","url":"https://api.github.com/users/phoenixxyang","html_url":"https://github.com/phoenixxyang","followers_url":"https://api.github.com/users/phoenixxyang/followers","following_url":"https://api.github.com/users/phoenixxyang/following{/other_user}","gists_url":"https://api.github.com/users/phoenixxyang/gists{/gist_id}","starred_url":"https://api.github.com/users/phoenixxyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phoenixxyang/subscriptions","organizations_url":"https://api.github.com/users/phoenixxyang/orgs","repos_url":"https://api.github.com/users/phoenixxyang/repos","events_url":"https://api.github.com/users/phoenixxyang/events{/privacy}","received_events_url":"https://api.github.com/users/phoenixxyang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-28T03:57:54Z","updated_at":"2016-07-28T08:41:11Z","closed_at":null,"body":"We've encountered frequent crash while using YYWebImage in **iOS 10 beta3.**\r\n\r\n**Reproduce background:**\r\n1. We have a UICollectionView to present lots of images(include jpeg and gif), and it is able to load more images in pages.\r\n2. All the presented images are loaded with URLs.\r\n**Reproduce procedure:**\r\nJust swipe the UICollectionView rapidly to load more images. \r\n\r\n\r\nHere are two stack frame of crashed thread:\r\n\r\n**Stack Frame One:** \r\n// the relevant image is http://img04.sogoucdn.com/app/a/200678/146711412524012.gif\r\n\r\nThread 10 name:  com.ibireme.webimage.request\r\nThread 10 Crashed:\r\n0   vImage                        \t0x0000000182b10dc0 0x182b07000 + 40384\r\n1   vImage                        \t0x0000000182b095a0 0x182b07000 + 9632\r\n2   CoreGraphics                  \t0x0000000182ea12e8 0x182e6e000 + 209640\r\n3   CoreGraphics                  \t0x00000001830816c4 0x182e6e000 + 2176708\r\n4   CoreGraphics                  \t0x000000018310d484 0x182e6e000 + 2749572\r\n5   CoreGraphics                  \t0x000000018310a094 0x182e6e000 + 2736276\r\n6   CoreGraphics                  \t0x000000018306ace4 0x182e6e000 + 2084068\r\n7   CoreGraphics                  \t0x000000018305ac74 0x182e6e000 + 2018420\r\n8   MyApp                    \t0x00000001003072e8 YYCGImageCreateDecodedCopy (YYImageCoder.m:890)\r\n9   MyApp                    \t0x000000010030a7f0 -[YYImageDecoder _newUnblendedImageAtIndex:extendToCanvas:decoded:] (YYImageCoder.m:2059)\r\n10  MyApp                    \t0x0000000100308fcc -[YYImageDecoder _frameAtIndex:decodeForDisplay:] (YYImageCoder.m:1640)\r\n11  MyApp                    \t0x0000000100308bb4 -[YYImageDecoder frameAtIndex:decodeForDisplay:] (YYImageCoder.m:1574)\r\n12  MyApp                    \t0x000000010031d6b8 -[YYWebImageOperation connection:didReceiveData:] (YYWebImageOperation.m:568)\r\n13  CFNetwork                     \t0x00000001822e33e0 0x1820d5000 + 2155488\r\n14  CFNetwork                     \t0x00000001822e3370 0x1820d5000 + 2155376\r\n15  CFNetwork                     \t0x00000001822e34e4 0x1820d5000 + 2155748\r\n16  CFNetwork                     \t0x00000001822a2c5c 0x1820d5000 + 1891420\r\n17  CFNetwork                     \t0x000000018220b4c4 0x1820d5000 + 1270980\r\n18  CFNetwork                     \t0x000000018220a638 0x1820d5000 + 1267256\r\n19  libdispatch.dylib             \t0x0000000181529784 0x181528000 + 6020\r\n20  libdispatch.dylib             \t0x0000000181534f80 0x181528000 + 53120\r\n21  CFNetwork                     \t0x00000001822c154c 0x1820d5000 + 2016588\r\n22  CoreFoundation                \t0x00000001819bb238 0x1819b3000 + 33336\r\n23  CFNetwork                     \t0x00000001822c1430 0x1820d5000 + 2016304\r\n24  CFNetwork                     \t0x00000001822c2758 0x1820d5000 + 2021208\r\n25  CFNetwork                     \t0x00000001822c24c4 0x1820d5000 + 2020548\r\n26  CoreFoundation                \t0x0000000181a8e418 0x1819b3000 + 898072\r\n27  CoreFoundation                \t0x0000000181a8dd60 0x1819b3000 + 896352\r\n28  CoreFoundation                \t0x0000000181a8b960 0x1819b3000 + 887136\r\n29  CoreFoundation                \t0x00000001819bb8d8 0x1819b3000 + 35032\r\n30  Foundation                    \t0x0000000182458e3c 0x18244c000 + 52796\r\n31  Foundation                    \t0x00000001824ad584 0x18244c000 + 398724\r\n32  MyApp                    \t0x000000010031b290 +[YYWebImageOperation _networkThreadMain:] (YYWebImageOperation.m:197)\r\n33  Foundation                    \t0x00000001825553ac 0x18244c000 + 1086380\r\n34  libsystem_pthread.dylib       \t0x00000001817339ec 0x181730000 + 14828\r\n35  libsystem_pthread.dylib       \t0x00000001817338fc 0x181730000 + 14588\r\n36  libsystem_pthread.dylib       \t0x0000000181730ef8 0x181730000 + 3832\r\n\r\n\r\n**Stack Frame Two:**\r\n\r\n<NSThread: 0x17447bc00>{number = 9, name = com.ibireme.webimage.request}\r\n<_NSCallStackArray 0x1704493c0>( \r\n0   ???                                 0x000000010d048a74 0x0 + 4513368692,\r\n1   MyApp                          0x0000000100479d44 main + 0,\r\n2   ImageIO                             0x000000018379b174 <redacted> + 32,\r\n3   ImageIO                             0x00000001838d2d1c <redacted> + 1252,\r\n4   ImageIO                             0x00000001838d4fe4 <redacted> + 88,\r\n5   ImageIO                             0x00000001836e0aec <redacted> + 1084,\r\n6   ImageIO                             0x00000001836e1c38 <redacted> + 68,\r\n7   ImageIO                             0x00000001836e1bb8 <redacted> + 100,\r\n8   ImageIO                             0x00000001836e4764 CGImageSourceCopyPropertiesAtIndex + 188,\r\n9   MyApp                          0x000000010058cf04 -[YYImageDecoder _updateSourceImageIO] + 1320,\r\n10  MyApp                          0x000000010058b8a8 -[YYImageDecoder _updateSource] + 160,\r\n11  MyApp                          0x000000010058ac80 -[YYImageDecoder _updateData:final:] + 524,\r\n12  MyApp                          0x000000010058a6c4 -[YYImageDecoder updateData:final:] + 128,\r\n13  MyApp                          0x00000001005aff20 -[YYWebImageOperation connection:didReceiveData:] + 1284,\r\n14  CFNetwork                           0x00000001822e33e0 <redacted> + 80,\r\n15  CFNetwork                           0x00000001822e3370 <redacted> + 200,\r\n16  CFNetwork                           0x00000001822e34e4 <redacted> + 56,\r\n17  CFNetwork                           0x00000001822a2c5c <redacted> + 76,\r\n18  CFNetwork                           0x000000018220b4c4 <redacted> + 272,\r\n19  CFNetwork                           0x000000018220a638 <redacted> + 108,\r\n20  libdispatch.dylib                   0x0000000100e21954 _dispatch_client_callout + 16,\r\n21  libdispatch.dylib                   0x0000000100e2c26c _dispatch_block_invoke_direct + 400,\r\n22  CFNetwork                           0x00000001822c154c <redacted> + 36,\r\n23  CoreFoundation                      0x00000001819bb238 CFArrayApplyFunction + 68,\r\n24  CFNetwork                           0x00000001822c1430 <redacted> + 136,\r\n25  CFNetwork                           0x00000001822c2758 <redacted> + 312,\r\n26  CFNetwork                           0x00000001822c24c4 <redacted> + 64,\r\n27  CoreFoundation                      0x0000000181a8e418 <redacted> + 24,\r\n28  CoreFoundation                      0x0000000181a8dd60 <redacted> + 524,\r\n29  CoreFoundation                      0x0000000181a8b960 <redacted> + 804,\r\n30  CoreFoundation                      0x00000001819bb8d8 CFRunLoopRunSpecific + 444,\r\n31  Foundation                          0x0000000182458e3c <redacted> + 304,\r\n32  Foundation                          0x00000001824ad584 <redacted> + 88,\r\n33  MyApp                          0x00000001005ac3f8 +[YYWebImageOperation _networkThreadMain:] + 308,\r\n34  Foundation                          0x00000001825553ac <redacted> + 1024,\r\n35  libsystem_pthread.dylib             0x00000001817339ec <redacted> + 240,\r\n36  libsystem_pthread.dylib             0x00000001817338fc <redacted> + 0,\r\n37  libsystem_pthread.dylib             0x0000000181730ef8 thread_start + 4\r\n)"},"comment":{"url":"https://api.github.com/repos/ibireme/YYImage/issues/comments/235835087","html_url":"https://github.com/ibireme/YYImage/issues/49#issuecomment-235835087","issue_url":"https://api.github.com/repos/ibireme/YYImage/issues/49","id":235835087,"user":{"login":"phoenixxyang","id":1391222,"avatar_url":"https://avatars.githubusercontent.com/u/1391222?v=3","gravatar_id":"","url":"https://api.github.com/users/phoenixxyang","html_url":"https://github.com/phoenixxyang","followers_url":"https://api.github.com/users/phoenixxyang/followers","following_url":"https://api.github.com/users/phoenixxyang/following{/other_user}","gists_url":"https://api.github.com/users/phoenixxyang/gists{/gist_id}","starred_url":"https://api.github.com/users/phoenixxyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phoenixxyang/subscriptions","organizations_url":"https://api.github.com/users/phoenixxyang/orgs","repos_url":"https://api.github.com/users/phoenixxyang/repos","events_url":"https://api.github.com/users/phoenixxyang/events{/privacy}","received_events_url":"https://api.github.com/users/phoenixxyang/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T08:41:11Z","updated_at":"2016-07-28T08:41:11Z","body":"Workaround: Replace YYWebImageOptionProgressive with other available option while setImageWithURL, however this might delay your images displaying."}}
{"actor":{"display_login":"phoenixxyang"}}