bugsnag-android icon indicating copy to clipboard operation
bugsnag-android copied to clipboard

Background ANRs are not tracked

Open vibin opened this issue 3 years ago • 2 comments

The SIGQUIT-based ANR tracker that's present in the library doesn't track ANRs that happen in background if user has "Show background ANRs" switched off (which is the default value) in Developer options.

Any workaround for this?

Logs when the ANR occurs (without any dialog):

Thread[4,tid=14199,WaitingInMainSignalCatcherLoop,Thread*=0x712fa7be90,peer=0x12c40cd8,"Signal Catcher"]: reacting to signal 3
I  Wrote stack traces to tombstoned

Process com.my.package (PID: 14189) ended

vibin avatar Sep 16 '21 17:09 vibin

Hi @vibin 👋

At present Bugsnag does not track background ANRs even if the user has the option to 'show background ANRs' disabled. We've passed this onto our product team to consider adding to our roadmap. We'll update you here on any changes in the future.

luke-belton avatar Sep 20 '21 10:09 luke-belton

Heads up: Crashlytics alpha build has started tracking (background + foreground) ANRs with the help of getHistoricalProcessExitReasons on Android 11 and above.

This would be a sweet addition to Bugsnag

vibin avatar Oct 27 '21 14:10 vibin