-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
真机播放Gif崩溃 #440
Comments
请问一个问题,AnimatedImageView这个类是不是只能显示本地GIF,不能显示网络GIF,谢谢 |
@alimysoyang It should be able to display either local and remote GIF file. May I know the url address of your GIF file so I could have a deeper look at it. Thanks! |
我说一下我调用的方法,初始化一个AnimatedImageView,如下: 调用远端GIF |
Should be resolved in #461 and version 3.1.1. Would you like to confirm it in the latest version? Thanks! |
3.0.1,在真机上播放Gif时崩溃,模拟器上不会崩溃,崩溃信息如下:
vPremultipliedAlphaBlendWithPermute_ARGB8888 + 836, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10ada4000) frame #0: 0x0000000184a3627c vImage
vPremultipliedAlphaBlendWithPermute_ARGB8888 + 836frame Replace all 'url' with 'URL'. #1: 0x0000000184a2eb7c vImage
vImagePremultipliedAlphaBlendWithPermute_ARGB8888 + 436 frame #2: 0x0000000184e3b7fc CoreGraphics
CGSBlend8888toARGB8888 + 284frame Fix typo and eliminate confusion. #3: 0x000000018504ef98 CoreGraphics
ARGB32_image + 4088 frame #4: 0x0000000184fdade8 CoreGraphics
ripl_Mark + 32frame A question about dispatch_sync #5: 0x0000000184fd79f0 CoreGraphics
RIPLayerBltImage + 972 frame #6: 0x0000000184f368e4 CoreGraphics
ripc_DrawImage + 768frame CocoaPods update #7: 0x0000000184f27610 CoreGraphics
CGContextDrawImageWithOptions + 456 frame #8: 0x0000000102a37d0c libswiftCoreGraphics.dylib
(extension in CoreGraphics):__ObjC.CGContext.draw (__ObjC.CGImage, in : __C.CGRect, byTiling : Swift.Bool) -> () + 48CGImage.fixed.getter(self=0x000000012762d890) + 240 at Image.swift:712 frame #10: 0x000000010014cc18 BoBo
UIImage.kf_resize(size=(width = 320, height = 230), self=0x000000012764cba0) -> UIImage + 100 at Image.swift:409frame Add not nil judgment for placeholderImage before set it to UIImageView #11: 0x000000010014d100 BoBo
@objc UIImage.kf_resize(to : CGSize) -> UIImage + 84 at Image.swift:0 frame #12: 0x000000010014c830 BoBo
UIImage.kf_resize(size=(width = 320, height = 320), contentMode=scaleAspectFit, self=0x000000012764cba0) -> UIImage + 164 at Image.swift:388frame Feature: Is it possible to get somehow the cache size? #13: 0x000000010014cb94 BoBo
@objc UIImage.kf_resize(to : CGSize, for : UIViewContentMode) -> UIImage + 92 at Image.swift:0 frame #14: 0x0000000100594414 BoBo
Animator.prepareFrame(index=0, self=0x0000000127616fe0) -> AnimatedFrame + 568 at AnimatedImageView.swift:285frame Add total disk cache size method. #15: 0x0000000100593f64 BoBo
Animator.($0=0 values, $1=0, self=0x0000000127616fe0) -> ()).(closure #1) + 80 at AnimatedImageView.swift:254 frame #16: 0x00000001005940d8 BoBo
thunk + 48 at AnimatedImageView.swift:0frame [WIP] 1.1.2 #17: 0x00000001026323f0 libswiftCore.dylib
(extension in Swift):Swift.Sequence.reduce <A> (A1, (A1, A.Iterator.Element) throws -> A1) throws -> A1 + 552 frame #18: 0x0000000100593e60 BoBo
Animator.prepareFrames(self=0x0000000127616fe0) -> () + 2120 at AnimatedImageView.swift:254frame when does the image download start? #19: 0x0000000100591f70 BoBo
AnimatedImageView.reset(self=0x0000000127570d10) -> () + 896 at AnimatedImageView.swift:165 frame #20: 0x0000000100591064 BoBo
AnimatedImageView.image.didset(oldValue=nil, self=0x0000000127570d10) + 148 at AnimatedImageView.swift:97frame Add challenge handler for image downloader #21: 0x0000000100590fb0 BoBo
AnimatedImageView.image.setter(newValue=0x0000000127578bb0, self=0x0000000127570d10) + 248 at AnimatedImageView.swift:0 frame #22: 0x0000000100590ea4 BoBo
@objc AnimatedImageView.image.setter + 68 at AnimatedImageView.swift:0崩溃代码发生在Image.swift中的712行
extension CGImage {
var isARGB8888: Bool {
return bitsPerPixel == 32 && bitsPerComponent == 8 && bitmapInfo.contains(.alphaInfoMask)
}
}
The text was updated successfully, but these errors were encountered: