【发布时间】:2019-08-16 15:37:18
【问题描述】:
您好,我正在为我的应用程序进行内存分析。为此,我正在尝试识别我的应用程序的内存泄漏。我遇到以下类型的内存泄漏。
com.sample.activityname has leaked:
* static WindowManagerGlobal.sDefaultWindowManager
* ↳ WindowManagerGlobal.mRoots
* ↳ ArrayList.elementData
* ↳ array Object[].[4]
* ↳ **ViewRootImpl.!(mContext)!**
* ↳ **ContextThemeWrapper.!(mBase)!**
* ↳ activityname
ViewRootImpl.mContext 泄漏的可能原因是什么。我正在使用leakcanary 来识别我的泄漏。我也已经通过 https://github.com/square/leakcanary/issues/94 。但无法得到任何提示。
【问题讨论】:
标签: android memory-leaks leakcanary