-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix memory leak #43
Comments
我用 LeakCanary 试了一下,并没有复现你所说的这个问题,倒是遇见了 square/leakcanary#696 这个问题。 不知你是怎么确定我这里有内存泄漏的? |
这个地方确实有内存泄露的情况,比较严重 |
的确 我Redmi Note 3也遇到了 |
抱歉各位,我近期没什么精力排查这边的问题,希望有朋友能帮忙排查解决,提交 pr :) |
的确有问题,内存泄漏 |
以上问题是通过glide初始化导致,换成fresco初始化就好了 |
10-11 17:07:15.004 7406-7406/com.binbin.university E/AndroidRuntime: FATAL EXCEPTION: main |
多图浏览,达到一定数量时,出现OOM,不知该问题该怎么解决? |
多图浏览是怎么实现的?可以分析一下为什么有内存没有释放,进而思考如何解决。 |
Please try |
GlideProgressSupport.DispatchingProgressListener.LISTENERS静态变量,即使调用forget方法,还是会导致承载BigImageView的activity不能释放,造成内存泄漏.
我是用eventbus来解决的,如下:
https://github.com/hss01248/ImageLoader/blob/master/image/src/main/java/com/github/piasy/biv/view/BigImageView.java
https://github.com/hss01248/ImageLoader/blob/master/glideloader/src/main/java/com/hss01248/glideloader/big/GlideProgressSupport.java
用jdk里的订阅者也可以,就是有点繁琐.
The text was updated successfully, but these errors were encountered: