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

anrDetection integration in renderer is causing an error for console.assert #1018

Open
3 tasks done
tsekiguchi opened this issue Nov 16, 2024 · 1 comment
Open
3 tasks done

Comments

@tsekiguchi
Copy link

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Electron SDK Version

4.24.0

Electron Version

31.7.3

What platform are you using?

MacOS

Link to Sentry event

No response

Steps to Reproduce

Hi! I'm pretty new to development, electron, and sentry, so forgive me if I'm missing something here.

I'm trying to enable anrDetection for my electron application. Per the documentation, I've added it in both the main and renderer process. However when I booted up electron, my console in main process outputs this at start:

[0] [48570:1116/133807.614927:ERROR:CONSOLE(1)] "console.assert", source: devtools://devtools/bundled/core/sdk/sdk.js (1)
[0] [48570:1116/133807.614997:ERROR:CONSOLE(1)] "console.assert", source: devtools://devtools/bundled/core/sdk/sdk.js (1)
[0] [48570:1116/133807.657118:ERROR:CONSOLE(1)] "console.assert", source: devtools://devtools/bundled/core/sdk/sdk.js (1)
[0] [48570:1116/133807.657147:ERROR:CONSOLE(1)] "console.assert", source: devtools://devtools/bundled/core/sdk/sdk.js (1)
[0] [48570:1116/133807.912459:ERROR:CONSOLE(1)] "console.assert", source: devtools://devtools/bundled/core/sdk/sdk.js (1)
[0] [48570:1116/133807.912488:ERROR:CONSOLE(1)] "console.assert", source: devtools://devtools/bundled/core/sdk/sdk.js (1)
[0] [48570:1116/133807.912510:ERROR:CONSOLE(1)] "console.assert", source: devtools://devtools/bundled/core/sdk/sdk.js (1)
[0] [48570:1116/133807.912541:ERROR:CONSOLE(1)] "console.assert", source: devtools://devtools/bundled/core/sdk/sdk.js (1)
[0] [48570:1116/133807.912558:ERROR:CONSOLE(1)] "console.assert", source: devtools://devtools/bundled/core/sdk/sdk.js (1)
[0] [48570:1116/133807.912583:ERROR:CONSOLE(1)] "console.assert", source: devtools://devtools/bundled/core/sdk/sdk.js (1)
[0] [48570:1116/133807.912653:ERROR:CONSOLE(1)] "console.assert", source: devtools://devtools/bundled/core/sdk/sdk.js (1)

I'm including the number of times it was repeated as a possible indication for the workers process which might be causing this.

This message does not appear in DevTools.

When I disable anrDetection in renderer, but keep the integration in main, the errors go away.

Expected Result

No console messages of any kind

Actual Result

Main Configuration
Image

Renderer Configuration
Image

@andreiborza
Copy link
Member

Hello @tsekiguchi, thanks for filing this.

I'm not really spotting anything wrong from your config, would you mind providing a minimal reproduction repo so we can investigate this further?

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