-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
After enabling ANR detection for the main process, all Electron processes are spawned twice #784
Comments
The ANR monitoring was a feature we eagerly want to have. Thanks, |
Thanks for reporting this. We will take a look! |
How are you starting other child processes? I looked at the demo repo and couldn't find anything obvious. Ah ok, looking at the screenshot, there are multiple Electron processes? |
Yes, there are two electron instance. Then there are duplicate network/gpu/crashpad process. |
@timfish After adding this environment variable, the icon on the macOS dock no longer flashes. This code(#777) can be removed. |
There are issues with using a node process for ANR, rather than another electron main process:
I'll be back from vacation shortly and I'll be able to look into this further. |
|
This was closed by #810 and will be in the next release. |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Electron SDK Version
4.14.0
Electron Version
27.0.3
What platform are you using?
Windows
Link to Sentry event
No response
Steps to Reproduce
After enabling ANR detection for the main process, all Electron processes are being repeatedly created.
This ANR detection relies on the sentry/node ANR module, which checks and spawns a child process during application startup. However, this approach is causing other child processes to be duplicated in Electron.
Below is my code. Could you please help me check whether the issue is with my code or if this feature itself has a problem?
https://github.com/beyondkmp/Sentry-electron-anr
Expected Result
Only one additional ANR detection process is spawned
Actual Result
All processes are spawned twice
The text was updated successfully, but these errors were encountered: