SVGAGlidePlugin icon indicating copy to clipboard operation
SVGAGlidePlugin copied to clipboard

关于内存泄露的问题

Open chengzijian opened this issue 4 years ago • 1 comments

QQ截图20200415180453 我的调用方式 GlideApp.with(this) .asSVGA() .load(bean.getAnimationUrl()) .into(new SVGATarget(svgaImageView, dynamicEntity) { ... }); 发现内存会飙升并且无法gc回收,我替换为官方的SVGAParser方式去加载svga的话内存曲线正常。是我哪里使用的问题吗,求大神解疑

chengzijian avatar Apr 15 '20 10:04 chengzijian

有可能是泄漏,也有可能是Glide缓存着,试试Glide.clearMemory能不能降下来

YvesCheung avatar Apr 17 '20 10:04 YvesCheung