sentry-unity icon indicating copy to clipboard operation
sentry-unity copied to clipboard

ANR detection - Capture any type of app being killed

Open Angelodaniel opened this issue 10 months ago • 3 comments
trafficstars

As of today Unity has their own watchdog thread that is checking if ANR's are happening. We've disabled leaning on the Android SDK for the ANR detection but the Android SDK has progressed over time to have more types of ANR detection with their own pros/cons.

So there is another ticket that will be responsible for tagging the Mechanism to a Sentry event which is already great. But we also need to have more precise ANR detection on this, hence the ticket.

@bruno-garcia, @romtsn & @bitsandfoxes have been in conversation about this.

Angelodaniel avatar Jan 11 '25 11:01 Angelodaniel

Hey Team, this is still ongoing or did we improve things over time? @bruno-garcia @romtsn @bitsandfoxes

Angelodaniel avatar May 28 '25 11:05 Angelodaniel

But we also need to have more precise ANR detection on this, hence the ticket.

What would that be?

bruno-garcia avatar May 28 '25 14:05 bruno-garcia

nope we do not capture AppExits as events still

romtsn avatar May 28 '25 15:05 romtsn

Any luck? 🥁 @romtsn

Angelodaniel avatar Sep 02 '25 12:09 Angelodaniel

@Angelodaniel this requires a bigger project, but I don't see it being a high priority item at the moment, so no update here. Maybe next quarter we'll be able to tackle it (or the one after).

romtsn avatar Sep 04 '25 10:09 romtsn

Leaving the Google docs for Debug ANRs here for future reference. Linking to the team issue tracking ANR across gaming SDKs: https://github.com/getsentry/team-gdx/issues/113

bitsandfoxes avatar Nov 13 '25 10:11 bitsandfoxes