Title: RegEx stack parsing 1s+ main thread block · Issue #20052 · getsentry/sentry-javascript · GitHub
Open Graph Title: RegEx stack parsing 1s+ main thread block · Issue #20052 · getsentry/sentry-javascript
X Title: RegEx stack parsing 1s+ main thread block · Issue #20052 · getsentry/sentry-javascript
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/...
Open Graph 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 th...
X 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 th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/20052
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RegEx stack parsing 1s+ main thread block","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [ ] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/nextjs\n\n### SDK Version\n\n10.43.0\n\n### Framework Version\n\n_No response_\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\n_No response_\n\n### Steps to Reproduce\n\nI have overwritten the global error handler and this seems to be the error that is thrown that produces massive main thread work:\n\n```ts\n[\n \"ResizeObserver loop completed with undelivered notifications.\",\n \"https://example.com/example/url\",\n 0,\n 0,\n null\n]\n```\n\nThe 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?\n\n### Expected Result\n\nUnexpected / unparseable errors should not stall the browser to a halt.\n\n### Actual Result\n\n\u003cimg width=\"878\" height=\"554\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/c9a91f95-4507-4beb-9d1e-0c71318140ea\" />\n\n\u003cimg width=\"1072\" height=\"546\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/3ef046a6-865d-4bae-87af-9e4beed4ac72\" />\n\n### Additional Context\n\nIf any more info is needed, I am happy to assist.\n\n### Priority\n\n\u003csub>React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it.\u003c/sub>","author":{"url":"https://github.com/FabianKoder","@type":"Person","name":"FabianKoder"},"datePublished":"2026-03-31T10:23:14Z","url":"https://github.com/getsentry/sentry-javascript/issues/20052"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:faa862c0-2269-d69b-13ae-425a0418d9b6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C248:9B75F:506390:6B19DF:6B04C024 |
| html-safe-nonce | 7948d8f21db172472ff6541eedd8068192302cb4bf5626bbfa369deae48a3c64 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjQ4OjlCNzVGOjUwNjM5MDo2QjE5REY6NkIwNEMwMjQiLCJ2aXNpdG9yX2lkIjoiNjMzMjM3Nzg3NDY2NjE0Mzc4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fa21075e7cc388285197cef715e3be5a82be1334ca2b8aa25f031ecfd8892760 |
| hovercard-subject-tag | issue:4177938317 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/20052/issue_layout |
| twitter:image | https://opengraph.githubassets.com/13b4cbe914cd6aac9c2e813a6ed51d89610e1b14a9e6c7ee2f501cc0fa3dc854/getsentry/sentry-javascript/issues/20052 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/13b4cbe914cd6aac9c2e813a6ed51d89610e1b14a9e6c7ee2f501cc0fa3dc854/getsentry/sentry-javascript/issues/20052 |
| og:image:alt | 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 th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | FabianKoder |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width