-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
RegEx stack parsing 1s+ main thread block #20052
Copy link
Copy link
Open
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
10.43.0
Framework Version
No response
Link to Sentry event
No response
Reproduction Example/SDK Setup
No response
Steps to Reproduce
I have overwritten the global error handler and this seems to be the error that is thrown that produces massive main thread work:
[
"ResizeObserver loop completed with undelivered notifications.",
"https://example.com/example/url",
0,
0,
null
]The root cause according to the performance tab analysis seems to be the RegEx \S*Error: trying to parse the stack frame. Maybe the problem is that the thrown error is not in an expected format?
Expected Result
Unexpected / unparseable errors should not stall the browser to a halt.
Actual Result
Additional Context
If any more info is needed, I am happy to assist.
Priority
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Waiting for: Product Owner