Open xucongyinq opened 2 years ago
modify private var animatable: Animatable? = null to private var animatable: WeakReference
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "bug" or "enhancement" and I will leave it open. Thank you for your contributions.
We use GitHub Issues for bugs.
If you have a non-bug question, please ask on Stack Overflow: http://stackoverflow.com/questions/tagged/fresco
--- Please use this template, and delete everything above this line before submitting your issue ---
Description
I use fresco to load an animated webp with CACHING_STRATEGY_FRESCO_CACHE, then OOM happened
Reproduction
initialize fresco with ImagePipelineConfigInterface.getCloseableReferenceLeakTracker = { func isSet(): Boolean = true } , and build an DraweeController with new DrawableFactory with CACHING_STRATEGY_FRESCO_CACHE, like this:
look FrescoFrameCache with reuse
Solution
what lead to OOM is function clone in class DefaultCloseableReference: mStacktrace != null ? new Throwable(mStacktrace), so many Throwable would be created. use mStacktrace != null ? mStacktrace instead of it
Additional Information