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

The ANR worker only functions correctly on the first ANR #876

Open
3 tasks done
PayneFuRC opened this issue Apr 10, 2024 · 1 comment
Open
3 tasks done

The ANR worker only functions correctly on the first ANR #876

PayneFuRC opened this issue Apr 10, 2024 · 1 comment

Comments

@PayneFuRC
Copy link

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Electron SDK Version

4.22.0

Electron Version

29.2.0

What platform are you using?

MacOS

Link to Sentry event

No response

Steps to Reproduce

  1. run the example app: https://gist.github.com/PayneFuRC/52c3ccb46d0a306d84600213c1e09cdb
  2. input some text, then the main process will be freeze.
  3. The anr info will be uploaded to sentry
  4. After resume, then input some text again, the main process will be freeze again
  5. The anr info will be not uploaded

Expected Result

The second ANR info will be uploaded

Actual Result

The second ANR info will not be uploaded

@timfish
Copy link
Collaborator

timfish commented Apr 10, 2024

This is currently the expected behaviour.

Related: getsentry/sentry-javascript#11160

Since the ANR worker does not run a full SDK, there is no event deduplication and we wanted to avoid sending unlimited events and using up quotas when the feature was first released.

I'll look into adding a setting to allow events to be sent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants