alexiscreuzot / SwiftyGif

High performance GIF engine
MIT License
2.02k stars 212 forks source link

Need help on crash #68

Closed raviteja11b closed 6 years ago

raviteja11b commented 6 years ago

Hi, I am using this library in one project, and I love it But due to some reasons, it's crashing occasionally, there is no proper way to reproduce it. I have attached some screenshots of a crash report, please someone help me on this Thanks for your help screen shot 2018-03-08 at 12 37 04 pm screen shot 2018-03-08 at 12 36 30 pm

alessandro-martin commented 6 years ago

OBJC_ASSOCIATION_ASSIGN is equivalent to Objective-C's unsafe_unretained which means that it doesn't nil out the pointer on deallocation; you should use OBJC_ASSOCIATION_RETAIN_NONATOMIC.

alexiscreuzot commented 6 years ago

I changed those on the main branch, have a try at it!