getActivity / Toaster

Android 吐司框架,专治 Toast 各种疑难杂症
Apache License 2.0
3.25k stars 406 forks source link

LeakCanary报内存泄露,该咋办呀? #68

Closed liyqxtu closed 3 years ago

liyqxtu commented 3 years ago

==================================== HEAP ANALYSIS RESULT

1 APPLICATION LEAKS

References underlined with "~~~" are likely causes. Learn more at https://squ.re/leaks.

1763 bytes retained by leaking objects Signature: d3a6ff3996ea66f68a7b4f3fe264ad07ba63417 ┬─── │ GC Root: System class │ ├─ com.hjq.toast.ToastUtils class │ Leaking: NO (a class is never leaking) │ ↓ static ToastUtils.sToast │ ~~ ├─ com.hjq.toast.NormalToast instance │ Leaking: YES (This toast is done showing (Toast.mTN.mWM != null && Toast.mTN.mView == null)) │ Retaining 1.8 kB in 28 objects │ mContext instance of com.xx.xx.activity.d │ ↓ NormalToast.mMessageView ╰→ android.widget.TextView instance Leaking: YES (ObjectWatcher was watching this because android.widget.TextView received View#onDetachedFromWindow() callback) Retaining 1.7 kB in 27 objects key = 50c561a4-d216-4e47-a684-7a7a1329a333 watchDurationMillis = 13473 retainedDurationMillis = 8460 View not part of a window view hierarchy View.mAttachInfo is null (view detached) View.mID = R.id.null View.mWindowAttachCount = 1 mContext instance of com.xx.xx.activity.d

getActivity commented 3 years ago

toast-9.0.aar.zip

getActivity commented 3 years ago

小伙子,你试试看这个包会不会

liyqxtu commented 3 years ago

新版本啥时候发布呀?

getActivity commented 3 years ago

小伙子,框架最新代码已经发布,你可以更新一下版本。

getActivity commented 3 years ago

小伙子,还有其他问题不,没有的话我就关闭 issue 了