leakcanary icon indicating copy to clipboard operation
leakcanary copied to clipboard

Plumber fix for InputMethodManager.mNextServedView on Android 8 / API 26

Open pyricau opened this issue 4 years ago • 2 comments

Report:

┬───
│ GC Root: System class
│
├─ android.view.inputmethod.InputMethodManager class
│    Leaking: NO (InputMethodManager↓ is not leaking and a class is never leaking)
│    ↓ static InputMethodManager.sInstance
├─ android.view.inputmethod.InputMethodManager instance
│    Leaking: NO (InputMethodManager is a singleton)
│    Library leak match: instance field android.view.inputmethod.InputMethodManager#mNextServedView
│    ↓ InputMethodManager.mNextServedView
│                         ~~~~~~~~~~~~~~~
╰→ android.widget.LinearLayout instance
​     Leaking: YES (View.mContext references a destroyed activity)

Hprof: repro_lib_leak.hprof.zip

mServedView and mNextServedView point to the same view.

pyricau avatar Jan 04 '22 08:01 pyricau

Will be adressed in #2339

pyricau avatar Apr 15 '22 23:04 pyricau

PR was closed, lack of time to focus on this, but it's still very much something we can try to fix.

pyricau avatar May 18 '23 05:05 pyricau