Description
- ###
New Issue Checklist
- I have read and understood the CONTRIBUTING guide
- I have read the Documentation
- I have searched for a similar issue in the project and found none
Issue Info
Info | Value |
---|---|
Platform Name | iOS |
Platform Version | 11.0 |
SDWebImage Version | 4.4.1 |
Integration Method | cocoapods |
Xcode Version | Xcode 9 |
Repro rate | 100% |
Demo project link | https://github.com/papanton/SD_CrashProject |
Memory grows uncontrollably during gif loading. Eventually, the app crashes due to memory issues. Memory warning never triggered. Demo project provided, hooked up to a source of gifs. Scroll on iOS 11 Device real device and it should crash. This issue occurs on iOS 11 Devices but not on iOS 10. On an old iPhone 5 running iOS 10 that I have, there are no issues.
After a bit of poking around with instruments, I realized there is a FLAnimatedImage leak. FLAnimatedImages are initialized but not deallocated.
Please advice, or let me know if you have any further questions.
This is instruments for iOS 10. See how the memory is getting deallocated:
This is ios 11 iPhone X. See how FLAnimatedImage has not been deallocating. App Crashed.