This repository has been archived by the owner on Jan 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 306
Crash on "func delayForImageAtIndex(_ index: Int, source: CGImageSource!) -> Double" #87
Comments
Hello, I have a same problem.
It is crash on 104 line: let gifProperties:CFDictionary = unsafeBitCast(gifPropertiesPointer.pointee, to: CFDictionary.self) Crash work on this gif image (image with one frame): https://redmondeda.ru/media/203c0db5.gif Any idea how fix it? |
@ThePredators @StasanTelnov the same thing was happening to me and it stopped crashing when I changed the capacity to 1 (instead of 0) let gifPropertiesPointer = UnsafeMutablePointer<UnsafeRawPointer?>.allocate(capacity: 1) Please let me know if the same fix worked for you. |
when I changed the capacity to 1 (instead of 0), it started working. Can you explain why? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The library was working good for a while, and today for no reason it crashed while loading the Gif from assets.
The given error is :
Thanks.
The text was updated successfully, but these errors were encountered: