Skip to content

eventLoopBlockIntegration doesn't detect main process hangs #1251

@nikitakot

Description

@nikitakot

Is there an existing issue for this?

How do you use Sentry?

Self-hosted/on-premise

Electron SDK Version

7.2.0

Electron Version

36.9.5

What platform are you using?

Windows

Link to Sentry event

No response

Steps to Reproduce

See gist - https://gist.github.com/nikitakot/5f6e7e111ddd77dc74d5166a3e56e4af

  1. $ npm i
  2. $ npx electron-rebuild
  3. $ npm start

The app will get hang as expected because of the blocking sync operation:

setTimeout(() => {
  console.log("Simulating event loop block in main process...");
  execSync("ping -n 5000 -w 1000 localhost > nul");
  console.log("Event loop block completed");
}, 5000);
Image

But the eventLoopBlock is not triggered.

Expected Result

eventLoopBlock is triggered.

Actual Result

eventLoopBlock is not triggered.

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions