Skip to content
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

fix: Renderer ANR detection #1083

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix: Renderer ANR detection #1083

wants to merge 1 commit into from

Conversation

timfish
Copy link
Collaborator

@timfish timfish commented Feb 14, 2025

This PR changes renderer ANR detection to use the Electron blur/focus events rather than the browser visibilitychange events to disable/enable ANR. When the page loses focus, execution can potentially be suspended and the visibilitychange cannot be propigated to main process quickly enough. I also hooked up the power monitor events to disable ANR too.

@timfish timfish requested a review from lforst February 14, 2025 12:04
@timfish timfish enabled auto-merge (squash) February 14, 2025 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ANR Events not correct when cover the screen
1 participant