AndPermission icon indicating copy to clipboard operation
AndPermission copied to clipboard

内存泄露

Open mosentest opened this issue 4 years ago • 4 comments

.org/2020-04-18_17-25-34_422.hprof, createdAtTimeMillis=1587201969006, analysisDurationMillis=22565, applicationLeaks=[ApplicationLeak(className=mo.wall.org.main.MainActivity, leakTrace= ┬ ├─ com.yanzhenjie.permission.bridge.RequestExecutor │ Leaking: UNKNOWN │ Thread name: 'Thread-2' │ GC Root: Local variable in native code │ ↓ thread RequestExecutor.mMessenger │ ~~~~~~~~~~ ├─ com.yanzhenjie.permission.bridge.Messenger │ Leaking: UNKNOWN │ ↓ Messenger.mContext │ ~~~~~~~~ ╰→ mo.wall.org.main.MainActivity ​ Leaking: YES (Activity#mDestroyed is true and ObjectWatcher was watching this) ​ key = e4cfbf44-71b2-4d09-8843-165de3d54283 ​ watchDurationMillis = 12880 ​ retainedDurationMillis = 7879 , retainedHeapByteSize=115315)], libraryLeaks=[])@杭州-贴心老棉袄

mosentest avatar Apr 13 '20 09:04 mosentest

相同内存泄漏,解决了吗?

pj1993 avatar May 22 '20 05:05 pj1993

相同内存泄漏,解决了吗?

放弃吧,自己下代码改吧,作者都不解决

mosentest avatar May 23 '20 08:05 mosentest

我把with()传的参数换成了applicationContext,虽然不报内存泄漏了,但是显然还是有问题的。

pj1993 avatar May 23 '20 08:05 pj1993

有没有在onCallBack将mRequest置为null

lujun525 avatar Jun 04 '20 10:06 lujun525