Title: vue3 render warning loop · Issue #5916 · getsentry/sentry-javascript · GitHub
Open Graph Title: vue3 render warning loop · Issue #5916 · getsentry/sentry-javascript
X Title: vue3 render warning loop · Issue #5916 · 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/5916
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"vue3 render warning loop","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\nSelf-hosted/on-premise\n\n### Which package are you using?\n\n@sentry/vue\n\n### SDK Version\n\n7.12.1\n\n### Framework Version\n\nVue 3.2.23\n\n### Link to Sentry event\n\n_No response_\n\n### Steps to Reproduce\n\n1. add a route to a new page\r\n2. the new page's template add one undeclared var\r\n3. visit the new page. and the warning message from instruments.js will go on and on until the page dead.\r\n\r\n---\r\n\r\nThe reason I found is that, when rendering gets a warning, will call `console.warn` to console the error stack. But the stack includes a Proxy variable. When sentry do `safeJoin` with `String(value)`, will visit the proxy variable, and visit the `get` handler, got undefined, so vue will call `console.warn` again. So the warning loop happends.\r\n\r\n\u003cimg width=\"1275\" alt=\"image\" src=\"https://user-images.githubusercontent.com/13237201/194686787-86ca94d2-0ccd-4119-85b0-3e152b090027.png\">\r\n`checkStored` is my undeclared var\r\n\r\n\u003cimg width=\"937\" alt=\"image\" src=\"https://user-images.githubusercontent.com/13237201/194686918-5065246a-8711-45e7-9100-5aa7299406e5.png\">\r\n\r\n\u003cimg width=\"933\" alt=\"image\" src=\"https://user-images.githubusercontent.com/13237201/194686923-694db841-961b-49a3-8479-2d10d91055e9.png\">\r\n\r\n\u003cimg width=\"936\" alt=\"image\" src=\"https://user-images.githubusercontent.com/13237201/194686925-42e08124-3d0a-4d8d-b5a5-f564d0e4cdce.png\">\r\n\r\n\u003cimg width=\"936\" alt=\"image\" src=\"https://user-images.githubusercontent.com/13237201/194686928-4ed66d96-439d-4bf9-a4d5-edc730b493f2.png\">\r\n\r\n---\r\n\r\nI tried to fix but I can not deal with how to test a var is Proxied. The way I test will trigger the `get` handler, so I just disable the console option of Breadcrumbs to solve the problem temporary.\r\nEven though I should clean my code without undeclared var, I think it is still a bug.\n\n### Expected Result\n\ndo not loop warning\n\n### Actual Result\n\ndo loop waning.","author":{"url":"https://github.com/Rockergmail","@type":"Person","name":"Rockergmail"},"datePublished":"2022-10-08T03:54:42Z","url":"https://github.com/getsentry/sentry-javascript/issues/5916"}
| 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:319fa099-1ff1-088d-784f-fdce7969cb6e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E616:1C14E0:2C76AB:3E7A2B:6B046B56 |
| html-safe-nonce | 3b4dd69183712ff50a3320483ca06058d5541133714da51b37dd64f962477341 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjE2OjFDMTRFMDoyQzc2QUI6M0U3QTJCOjZCMDQ2QjU2IiwidmlzaXRvcl9pZCI6IjY2MzcwNTIwMjcwMzE4MDg4NTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 02fb6f41df8e464264bf5d36baea7c5a34841908018a1c1eb8a993c683eb8fc7 |
| hovercard-subject-tag | issue:1401810833 |
| 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/5916/issue_layout |
| twitter:image | https://opengraph.githubassets.com/000e481c03439a036d1f176a3dbc179346a02d5e7b890d95951b1afb31df4837/getsentry/sentry-javascript/issues/5916 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/000e481c03439a036d1f176a3dbc179346a02d5e7b890d95951b1afb31df4837/getsentry/sentry-javascript/issues/5916 |
| 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 | Rockergmail |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| 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 | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| 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