Title: React Navigation routing performance tracking: 'Maximum call stack size exceeded' in the /utils library · Issue #5172 · getsentry/sentry-javascript · GitHub
Open Graph Title: React Navigation routing performance tracking: 'Maximum call stack size exceeded' in the /utils library · Issue #5172 · getsentry/sentry-javascript
X Title: React Navigation routing performance tracking: 'Maximum call stack size exceeded' in the /utils library · Issue #5172 · 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/5172
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"React Navigation routing performance tracking: 'Maximum call stack size exceeded' in the /utils library","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- [X] 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 package are you using?\n\n@sentry/react\n\n### SDK Version\n\n6.19.2\n\n### Framework Version\n\n3.4.2 (react-native)\n\n### Link to Sentry event\n\nhttps://sentry.io/share/issue/12e378b1436545c0828853d15354b7c7/\n\n### Steps to Reproduce\n\nWhen using the Performance tracking in combination with React Native and the automatic instrumentation defined in https://docs.sentry.io/platforms/react-native/performance/instrumentation/automatic-instrumentation/ for the React Navigation routing, if you have \"recursive objects\" passed as route parameter, Sentry will badly crashes with \"Maximum call stack size exceeded\".\r\n\r\n\r\n(NB: was asked to report in a new issue from https://github.com/getsentry/sentry-javascript/issues/2470#issuecomment-1132730854 )\n\n### Expected Result\n\nUnfortunately Sentry logic isn't very protective and not preventing infinite loop in objects. an object that have nested inside some reference of a parent will infinitely make dropUndefinedKeys loop https://github.com/getsentry/sentry-javascript/blob/master/packages/utils/src/object.ts#L197\r\n\r\nThere is nothing \"wrong\" with the user land code actually it's crashing inside Sentry logic (at least for us) as soon as you pass a recursive object in navigation.\r\n\r\nNot exactly sure how to fix this in the utils logic, but one policy could be to have a max depth in the recursion.\n\n### Actual Result\n\nit badly crash the app of our users when the performance monitoring is active for them. see attached event.","author":{"url":"https://github.com/gre","@type":"Person","name":"gre"},"datePublished":"2022-05-27T11:06:00Z","url":"https://github.com/getsentry/sentry-javascript/issues/5172"}
| 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:29bb3c45-2ce4-429e-bd2c-1a71594563fa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 908C:29C09E:9F25BF:DF8C14:6B042F98 |
| html-safe-nonce | d2fd8ace9016272656f188970452d5944b9f9df14f21a2d82a36a83c6640c380 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDhDOjI5QzA5RTo5RjI1QkY6REY4QzE0OjZCMDQyRjk4IiwidmlzaXRvcl9pZCI6IjczOTg0NTY0MTYxNTMxMjA2NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7aa66f3e94f2a61ce07471fa3636016eb766ae91b08bd9a27f20a9fc7cd9b3fe |
| hovercard-subject-tag | issue:1250638991 |
| 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/5172/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ef5e52b09717a5038a8f0e74d25a19a5c45a5919466e8c2abc842dcf55163713/getsentry/sentry-javascript/issues/5172 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ef5e52b09717a5038a8f0e74d25a19a5c45a5919466e8c2abc842dcf55163713/getsentry/sentry-javascript/issues/5172 |
| 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 | gre |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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