简体   繁体   中英

Stack trace not available for ANR in google play console

I am facing issue while debugging our ANR's. After fixing few ANR's in the last releases suddenly facing the TOP ANR's not having any stack trace. 在此处输入图像描述

Any idea what is the issue over here. My code having Native code also.

No update from the Google. But you can use github.com/SalomonBrys/ANR-WatchDog as mention by Sabet in the comment section. Very handy tool, easy to integrate and use. I used it with firebase crashlytics. It provide better logs/stacktrace then google.

How it works

The watchdog is a simple thread that does the following in a loop:

  1. Schedules a runnable to be run on the UI thread as soon as possible.
  2. Wait for 5 seconds. (5 seconds is the default, but it can be configured).
  3. See if the runnable has been run. If it has, go back to 1.
  4. If the runnable has not been run, which means that the UI thread has been blocked for at least 5 seconds, it raises an error with all running threads stack traces.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM