Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IdleHandlerLagTracer 存在 fd 泄漏 #876

Open
iMeiji opened this issue Dec 14, 2023 · 0 comments
Open

IdleHandlerLagTracer 存在 fd 泄漏 #876

iMeiji opened this issue Dec 14, 2023 · 0 comments

Comments

@iMeiji
Copy link

iMeiji commented Dec 14, 2023

异常类型:IdleHandlerLagTracer 存在 fd 泄漏

手机型号:任意

手机系统版本:任意

matrix版本:2.0.8、2.1.0

gradle版本:任意

问题描述:App 进入 ActivityA 后,会调用 Tracer.onStartTrace 开启监控,退出 ActivityA 会调用 Tracer.onCloseTrace。StartTrace 后 IdleHandlerLagTracer 会初始化 idleHandlerLagHandlerThread,关键问题是 idleHandlerLagHandlerThread 在 onDead 没有调用 quit,HandlerThread 的线程将继续运行,导致 fd 泄漏。

Screenshot

这里贴一下线上使用 koom 收集到 fd 泄漏的情况,IdleHandlerLagThread 泄漏高达 92 次,建议尽快修复

Snipaste_2023-12-14_14-36-38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant