Skip to content

iOS 11 FLAnimatedImage object leak. Bug #2377

Closed
@papanton

Description

@papanton
  • ###

New Issue Checklist

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:

screen shot 2018-07-05 at 1 07 06 pm

This is ios 11 iPhone X. See how FLAnimatedImage has not been deallocating. App Crashed.

screen shot 2018-07-05 at 1 16 22 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions