-
Notifications
You must be signed in to change notification settings - Fork 672
Memory Leak #197
Comments
Hey @szhupeng, Can you reproduce it with the sample project? |
Having the same issue. Here's a sample stack trace from leak canary:
|
Interesting...I no longer have the leak if I comment out line ~315 of DexterInstance:
With that line on rotation, I can easily reproduce the leak. UPDATE @Serchinastico Please let me know if there's any more information that can be useful to you...it seems this is not isolated to MultiplePermissions, but could be caused by the amount of non-WeakReference listeners in the library. Any advice would be great. All I had to do was add `LeakCanary' to the sample, open a permissions dialog, and watch the logs during screen rotation. |
@Serchinastico any updates on this? We'd love to use your library, but the only PR ever opened that addressed it ended up being closed. |
There is an open PR fixing the issue (#206) but looks like it still has some flaws. However, I understand your concerns and I will try to address the issue by the end of the week. |
Thank you! cc/ @sklinefelter |
I am also facing a similar issue. Is there any progress with this issue? |
Expected behaviour
grant permission but no memory leak
Actual behaviour
cause memory leak by Dexter.instance hold the refrences of activity
Steps to reproduce
use LeakCanary to watch the activity that use dexter to grant permission
Version of the library
4.2.0
The text was updated successfully, but these errors were encountered: