华为EUI5.0基于7.0上的GestureBoostManager/InputMethodManager 内存泄露

在查项目中的内存泄露,当然是使用LeakCanary。

LeakCanary使用说明

https://www.liaohuqiu.net/cn/posts/leak-canary-read-me/

build exception

1.集成LC1.5.0时,出现编译报错

编译报错1

解决方案
1.check your gradle.property
2.set your jvmargs higher
like : org.gradle.jvmargs=-Xmx2048m
3.clean project and generate it.

see-> https://github.com/square/leakcanary/issues/821

2.集成LC1.5.2时,编译报错


编译报错2

see->https://github.com/square/leakcanary/issues/815
816,817,819都是一样的问题。

解决方案
downgrade LC version 1.5.2 to 1.5.1

android.gestureboost.GestureBoostManager leaks

测试机型 华为P9,EUI5.0,Android 7.0

EUI5.0出现的bug,应该是huawei自定义增强手势的类
https://github.com/square/leakcanary/issues/696

InputMethodManager

android.view.inputmethod.InputMethodManager$ControlledInputConnectionWrapper.mParentInputMethodManager
references android.view.inputmethod.InputMethodManager.mNextServedView
或者mStrView/mLastSrvView balabala
原生泄露
see->https://github.com/square/leakcanary/issues/750

WechatHelper

使用第三方库Mob 的社交登录出现
WechatHelper leaks

待续....

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • afinalAfinal是一个android的ioc,orm框架 https://github.com/yangf...
    passiontim阅读 15,756评论 2 45
  • 工艺是指具有审美特性,又具有较强的物质特性的造型与空间艺术。 我从事工艺美术创作,将热情投注于上,获得了许多,也知...
    丽丽撒撒阅读 1,724评论 2 2
  • 源更新了——2016.10.30gem sources --add https://gems.ruby-china...
    大灰很阅读 1,783评论 0 0
  • 雨落的朦胧,总是对它有一种微妙的小情感, 是贴于脸上的雨雾抑或是手指尖触到的丝丝凉意,虽在不多雨的北方长大,却总是...
    孑颜的乌托邦阅读 2,939评论 0 2

友情链接更多精彩内容