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

Merged
merged 1 commit into from
Feb 20, 2025
Merged

fix: Renderer ANR detection #1083

merged 1 commit into from
Feb 20, 2025

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
@timfish timfish requested a review from AbhiPrasad February 20, 2025 09:31
@timfish timfish merged commit 0589e8d into master Feb 20, 2025
34 checks passed
@timfish timfish deleted the fix/renderer-anr branch February 20, 2025 14:17
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
2 participants