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

android 8.0 前台服务出现anr检测不出来 #127

Open
626838956 opened this issue Mar 31, 2019 · 1 comment
Open

android 8.0 前台服务出现anr检测不出来 #127

626838956 opened this issue Mar 31, 2019 · 1 comment

Comments

@626838956
Copy link

log信息如下:
ActivityManager: ANR in XX
Reason: Context.startForegroundService() did not then call Service.startForeground():ServiceRecord{XX}

在5s之内没有及时调用startForeground()

@popman135
Copy link

出现ANR的应该都不能检测出吧。
这个实现原理是判断Looper循环一次的时间超过限定值。
如果Looper的一次循环被卡死,超过ANR时间,应该会直接报出ANR,而不是通过BlockCanary报出吧?

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

2 participants