Skip to content

After enabling ANR detection for the main process, all Electron processes are spawned twice #784

@beyondkmp

Description

@beyondkmp

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.

image

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

Metadata

Metadata

Assignees

Labels

No labels
No labels
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions