Skip to content

RegEx stack parsing 1s+ main thread block #20052

@FabianKoder

Description

@FabianKoder

Is there an existing issue for this?

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

Image Image

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.

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions