René's URL Explorer Experiment


Title: Sentry in Vue app causes freeze / 100% CPU usage (inf. recursion) [includes minimal example] · Issue #2957 · getsentry/sentry-javascript · GitHub

Open Graph Title: Sentry in Vue app causes freeze / 100% CPU usage (inf. recursion) [includes minimal example] · Issue #2957 · getsentry/sentry-javascript

X Title: Sentry in Vue app causes freeze / 100% CPU usage (inf. recursion) [includes minimal example] · Issue #2957 · getsentry/sentry-javascript

Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues #2611 and #2470 seem similar to this, but are not really the same imho Use the latest release: https://gi...

Open Graph Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues #2611 and #2470 seem similar to this, but are not really the same...

X Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues #2611 and #2470 seem similar to this, but are not really the same...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/2957

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sentry in Vue app causes freeze / 100% CPU usage (inf. recursion) [includes minimal example]","articleBody":"\u003c!-- Requirements: please go through this checklist before opening a new issue -->\r\n\r\n- [x] Review the documentation: https://docs.sentry.io/\r\n- [x] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues\r\n  #2611 and #2470 seem similar to this, but are not really the same imho\r\n- [x] Use the latest release: https://github.com/getsentry/sentry-javascript/releases\r\n- [ ] Provide a link to the affected event from your Sentry account -> Not needed, reproducible with an arbitrary DSN\r\n\r\n## Package + Version\r\n\r\n- [x] `@sentry/browser` 5.25\r\n- [ ] `@sentry/node`\r\n- [ ] `raven-js`\r\n- [ ] `raven-node` _(raven for node)_\r\n- [ ] other:\r\n\r\n### Version:\r\n\r\n```\r\nvue 2.6.12\r\nvue-router 3.4.6\r\nbootstrap-vue 2.17.3\r\nsentry-javscript 5.25\r\n```\r\n\r\n## Description\r\n\r\nWe have a Vue application and we encountered an issue when we added sentry. We can reproduce the situation in Chrome/Chromium/Firefox both Linux,Mac and Windows (sometimes the window just freezes without maxing out cpu usage) so it does not seem to be fully platform dependent. I tried to narrow down the issue and I provide a minimal reproducible example (70 lines of html) along with gif recordings of the problem.\r\n\r\nI am open to providing more information, helping with the investigation or even creating a PR if pointed the right way.\r\n\r\n#### The Setup\r\n\r\nThe Vue application uses these libraries:\r\n- vue-router = standard library for displaying views on specific routes\r\n- bootstrap-vue = library with various components which look good (in our example, we use the scrollspy directive which it provides https://bootstrap-vue.org/docs/directives/scrollspy )\r\n\r\nEsentially what we have is a bunch of blocks below each other (left) and a navigation with fixed position (right) which includes a button for each of the blocks on the page. We want to achieve a standard behaviour which includes:\r\n- when you scroll around the page, the currently visible block is highlighted in the navigation\r\n- when you scroll around, your url hash is dynamically updated to reflect the currently scrolled block\r\n- when you click a block in the right menu, you are taken to that block on the page (standard href behaviour)\r\n\r\nSo essentially, it works and looks like this (note the cpu usage in bottom right, as expected some load is on the windowserver but all seems fine):\r\n\r\n![CleanShot 2020-10-07 at 17 54 07](https://user-images.githubusercontent.com/1835434/95356026-81d99800-08c6-11eb-8faf-2a9f5bb0495a.gif)\r\n\r\n#### The problem\r\n\r\nThe moment we add sentry, with an existing dsn, or with the example text like this:\r\n\r\n```\r\nSentry.init({\r\n  dsn: \"https://examplePublicKey@o0.ingest.sentry.io/0\",\r\n  integrations: [new Sentry.Integrations.Vue({ Vue, attachProps: true })],\r\n})\r\n```\r\n\r\nThis is what happens - after a while, the cpu usage of the browser process jumps to 100% and the page starts to lag:\r\n\r\n![CleanShot 2020-10-07 at 17 52 05](https://user-images.githubusercontent.com/1835434/95356311-d250f580-08c6-11eb-8d7b-06c98b70fcde.gif)\r\n\r\nEventually (depends on the machine, but on my mbp2017 it is about 30 secs), the browser console starts to fill with a bunch of errors (call stack size limit exceeded and 429+400 from sentry). During this, we also get rate limited by sentry (in our sentry project, running into this resulted in about 1000 events over those 30 seconds).\r\n\r\n\u003cimg width=\"332\" alt=\"CleanShot 2020-10-07 at 17 32 53@2x\" src=\"https://user-images.githubusercontent.com/1835434/95355189-8baecb80-08c5-11eb-808e-0b9eb8dcdef9.png\">\r\n\r\n\r\n\u003cimg width=\"307\" alt=\"CleanShot 2020-10-07 at 17 33 04@2x\" src=\"https://user-images.githubusercontent.com/1835434/95355173-8782ae00-08c5-11eb-8f2d-d594546f2e6a.png\">\r\n\r\n#### Reproduction\r\n\r\nI am providing a minimal reproducible example for this here (single html file, 70 lines):\r\nhttps://github.com/Zajozor/reproducible/blob/main/sentry-javascript/index.html\r\n\r\n(Be sure to turn off uBlock or other blocker that might block sentry if you try this 😅 )\r\n\r\nThe problem happens when you open the page, and just do what is depicted on the gif above for a while (may take from 5 secs to 20 secs for it to kick in). When you comment the lines 66-69 then the problem disappears (ie. the site has expected cpu usage).\r\n\r\nIt might be that we are doing something wrong in our code, but there is literally no issue with it until you enable sentry.\r\n\r\nThanks for your time :)","author":{"url":"https://github.com/Zajozor","@type":"Person","name":"Zajozor"},"datePublished":"2020-10-07T16:10:02Z","url":"https://github.com/getsentry/sentry-javascript/issues/2957"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b8d92f8b-9ea3-460b-a155-f45886e6ac14
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDD88:111FC2:141EC:1B799:6B0429AE
html-safe-noncead04ae080f76ec5fbaee3bdb240cd3536ad52fd4111f8d81d86ef972b5246e80
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDg4OjExMUZDMjoxNDFFQzoxQjc5OTo2QjA0MjlBRSIsInZpc2l0b3JfaWQiOiIyMDE2ODI5ODQyNzA3OTgyNzY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0e3e961ca63db8b8b6d437066b4c6e9c68726b404dfa5163aa5f1cab61db743d
hovercard-subject-tagissue:716665672
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/2957/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a40cf17f6b8291091cfdbcaf872fdcb7d7569c544c737aeb5280236aaee088d6/getsentry/sentry-javascript/issues/2957
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a40cf17f6b8291091cfdbcaf872fdcb7d7569c544c737aeb5280236aaee088d6/getsentry/sentry-javascript/issues/2957
og:image:altReview the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues #2611 and #2470 seem similar to this, but are not really the same...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameZajozor
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec3dd496c3da6ea6b77e69c09279d2b81604654f1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/2957#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F2957
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F2957
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/2957
Reloadhttps://github.com/getsentry/sentry-javascript/issues/2957
Reloadhttps://github.com/getsentry/sentry-javascript/issues/2957
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues341 (341)https://github.com/getsentry/sentry-javascript/issues
Pull requests58 (58)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/2957
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/2957
Sentry in Vue app causes freeze / 100% CPU usage (inf. recursion) [includes minimal example]https://github.com/getsentry/sentry-javascript/issues/2957#top
https://github.com/Zajozor
Zajozorhttps://github.com/Zajozor
on Oct 7, 2020https://github.com/getsentry/sentry-javascript/issues/2957#issue-716665672
https://docs.sentry.io/https://docs.sentry.io/
https://github.com/getsentry/sentry-javascript/issueshttps://github.com/getsentry/sentry-javascript/issues
Possible recursion error in Sentry Browser SDK #2611https://github.com/getsentry/sentry-javascript/issues/2611
RangeError: Maximum call stack size exceeded #2470https://github.com/getsentry/sentry-javascript/issues/2470
https://github.com/getsentry/sentry-javascript/releaseshttps://github.com/getsentry/sentry-javascript/releases
https://bootstrap-vue.org/docs/directives/scrollspyhttps://bootstrap-vue.org/docs/directives/scrollspy
https://user-images.githubusercontent.com/1835434/95356026-81d99800-08c6-11eb-8faf-2a9f5bb0495a.gif
https://user-images.githubusercontent.com/1835434/95356311-d250f580-08c6-11eb-8d7b-06c98b70fcde.gif
https://user-images.githubusercontent.com/1835434/95355189-8baecb80-08c5-11eb-808e-0b9eb8dcdef9.png
https://user-images.githubusercontent.com/1835434/95355173-8782ae00-08c5-11eb-8f2d-d594546f2e6a.png
https://github.com/Zajozor/reproducible/blob/main/sentry-javascript/index.htmlhttps://github.com/Zajozor/reproducible/blob/main/sentry-javascript/index.html
Nexthttps://github.com/getsentry/sentry-javascript/issues/2957?timeline_page=1
Zajozorhttps://github.com/Zajozor
Status: Needs Triagehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Needs%20Triage%22
on Oct 7, 2020https://github.com/getsentry/sentry-javascript/issues/2957#event-3851380696
Zajozorhttps://github.com/Zajozor
on Oct 7, 2020https://github.com/getsentry/sentry-javascript/issues/2957#event-3851408003
rodolfoBeehttps://github.com/rodolfoBee
Status: Confirmedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Confirmed%22
Type: Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Bug%22
Status: Needs Triagehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Needs%20Triage%22
on Oct 13, 2020https://github.com/getsentry/sentry-javascript/issues/2957#event-3870240178
https://github.com/xwartz
xwartzhttps://github.com/xwartz
on Oct 20, 2020https://github.com/getsentry/sentry-javascript/issues/2957#issuecomment-712743249
https://github.com/kamilogorek
kamilogorekhttps://github.com/kamilogorek
on Oct 21, 2020https://github.com/getsentry/sentry-javascript/issues/2957#issuecomment-713505111
https://github.com/rchl
rchlhttps://github.com/rchl
on Nov 22, 2020https://github.com/getsentry/sentry-javascript/issues/2957#issuecomment-731825954
https://github.com/gaodeng
gaodenghttps://github.com/gaodeng
on Nov 25, 2020https://github.com/getsentry/sentry-javascript/issues/2957#issuecomment-733408368
https://github.com/RyanMulready
RyanMulreadyhttps://github.com/RyanMulready
on Dec 9, 2020https://github.com/getsentry/sentry-javascript/issues/2957#issuecomment-742036502
https://github.com/martin-haryanto
martin-haryantohttps://github.com/martin-haryanto
on May 31, 2021https://github.com/getsentry/sentry-javascript/issues/2957#issuecomment-851407337
https://github.com/HazAT
HazAThttps://github.com/HazAT
on May 31, 2021https://github.com/getsentry/sentry-javascript/issues/2957#issuecomment-851418094
https://github.com/RyanMulready
RyanMulreadyhttps://github.com/RyanMulready
on Jun 1, 2021https://github.com/getsentry/sentry-javascript/issues/2957#issuecomment-852102376
AbhiPrasadhttps://github.com/AbhiPrasad
Status: Backloghttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Backlog%22
Status: Confirmedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Confirmed%22
on Oct 4, 2021https://github.com/getsentry/sentry-javascript/issues/2957#event-5404805659
https://github.com/joshstrange
joshstrangehttps://github.com/joshstrange
on May 17, 2022https://github.com/getsentry/sentry-javascript/issues/2957#issuecomment-1128929271
https://github.com/flex-jonghyen
flex-jonghyenhttps://github.com/flex-jonghyen
on May 24, 2022https://github.com/getsentry/sentry-javascript/issues/2957#issuecomment-1135410551
@lforsthttps://github.com/lforst
https://github.com/lforst
lforsthttps://github.com/lforst
on May 24, 2022https://github.com/getsentry/sentry-javascript/issues/2957#issuecomment-1135802694
@flex-jonghyenhttps://github.com/flex-jonghyen
https://github.com/lforst
lforsthttps://github.com/lforst
on May 24, 2022https://github.com/getsentry/sentry-javascript/issues/2957#issuecomment-1135803239
#5147https://github.com/getsentry/sentry-javascript/pull/5147
lforsthttps://github.com/lforst
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 24, 2022https://github.com/getsentry/sentry-javascript/issues/2957#event-6668303196
https://github.com/mirko77
mirko77https://github.com/mirko77
on Mar 12, 2024https://github.com/getsentry/sentry-javascript/issues/2957#issuecomment-1991349686
https://github.com/rchl
rchlhttps://github.com/rchl
on Mar 12, 2024https://github.com/getsentry/sentry-javascript/issues/2957#issuecomment-1991494572
https://github.com/mirko77
mirko77https://github.com/mirko77
on Mar 12, 2024https://github.com/getsentry/sentry-javascript/issues/2957#issuecomment-1991523551
https://docs.sentry.io/platforms/javascript/guides/capacitor/ionic/https://docs.sentry.io/platforms/javascript/guides/capacitor/ionic/
https://github.com/jjsessa
jjsessahttps://github.com/jjsessa
on May 14, 2024https://github.com/getsentry/sentry-javascript/issues/2957#issuecomment-2110833751
@lforsthttps://github.com/lforst
https://github.com/lforst
lforsthttps://github.com/lforst
on May 14, 2024https://github.com/getsentry/sentry-javascript/issues/2957#issuecomment-2110852868
@CPTJJhttps://github.com/CPTJJ
https://github.com/jjsessa
jjsessahttps://github.com/jjsessa
on May 14, 2024https://github.com/getsentry/sentry-javascript/issues/2957#issuecomment-2110970268
@lforsthttps://github.com/lforst
TheAlexLichter/nuxt3-sentry-recipe#8 (comment)https://github.com/TheAlexLichter/nuxt3-sentry-recipe/pull/8#issue-2296212585
https://github.com/shaidrv
shaidrvhttps://github.com/shaidrv
on Aug 12, 2024https://github.com/getsentry/sentry-javascript/issues/2957#issuecomment-2284528666
@CPTJJhttps://github.com/CPTJJ
@lforsthttps://github.com/lforst
https://github.com/lforst
lforsthttps://github.com/lforst
on Aug 13, 2024https://github.com/getsentry/sentry-javascript/issues/2957#issuecomment-2285659414
@shaidrvhttps://github.com/shaidrv
@s1gr1dhttps://github.com/s1gr1d
https://github.com/lforst
lforsthttps://github.com/lforst
on Aug 13, 2024https://github.com/getsentry/sentry-javascript/issues/2957#issuecomment-2285661569
getsentryhttps://github.com/getsentry
on Aug 13, 2024https://github.com/getsentry/sentry-javascript/issues/2957#event-13859663967
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/2957
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/2957
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.