Stack trace not available for ANR in google play console

Viewed 914

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. enter image description here

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

1 Answers

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.
Related