Skip to content

ANR: Emit 'applicationnotresponding' when app freezes #11211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jx853
Copy link

@jx853 jx853 commented Jul 25, 2025

Describe your PR, what does it fix/add?

emits "applicationnotresponding" on sock2 when application becomes unresponsive with the application PID as data. Closes #10611

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

There don’t appear to be existing tests for socket2 events, but I’m happy to add one if needed.

Is it ready for merging, or does it need work?

Ready unless test is required.

Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

incredibly unnecessarily long name. Why not just anr? Also, would be great if there was an event for when an app comes back / is killed, to "dismiss" the previous anr event

@EvilLary
Copy link

would it also be possible add an option to disable the ANR popup but keep the ANR manager running, necessary for custom dialogs. The manager rn returns early on tick if enable_anr_dialog is false

@jx853 jx853 marked this pull request as draft July 25, 2025 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an ANR socket2 event
3 participants