Repository navigation
Conversation
PR risk: mediumFor commit Main concerns: public contract, host performance, data sent to Sentry. Rules that block low also fired:
This label is a hint for reviewers, not an approval. |
|
📲 Install BuildsAndroid
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit c7b7e2c. Configure here.
| collectors, | ||
| sinceMs, | ||
| nowTimestampMs - (nowMs() - sinceMs), | ||
| options.getLogger()); |
There was a problem hiding this comment.
Unrecorded hang can restart mid-flight
Medium Severity
handleSignalChanged treats activeRecorder != null as “hang in progress,” but HangRecorder.start() returns null when no subscriber wants a record. A later SUSPICIOUS from another signal then looks like a new hang: onHangStarted() runs again, a subscriber added during the hang can join, and recording can start mid-hang with the wrong start time. The previous openInterval always marked the hang open until idle, cancel, or close.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit c7b7e2c. Configure here.


Foundation for Non-Fatal ANRs:
HangManagerand the central loop, including all required interfacesHangRecordersamples the collectors on the manager's 66 ms tick thread, and the manager gives theHangRecordto the subscribers that asked for it.Design
See full spec for more details: Non-Fatal ANR Architecture (JAVA-777)
Example Event: https://sentry-sdks.sentry.io/issues/7865095622/events/6d88b353646b4c2d884a2180f83190d0/
#skip-changelog