Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sponsorblock using way too much memory #1917

Open
dimbata23 opened this issue Nov 24, 2023 · 0 comments
Open

Sponsorblock using way too much memory #1917

dimbata23 opened this issue Nov 24, 2023 · 0 comments

Comments

@dimbata23
Copy link

I have one tab opened in Firefox, just YouTube in a private window. I watched videos from a playlist in the evening and when I woke up I noticed > 10GB of memory used by Firefox. I did a memory dump and found over 2000 instances of the following allocations by sponsorblock equating to about 8GB of memory.
Opening a new tab and closing that one YouTube tab fixed the issue for now.

  {
   "process": "webIsolated=https://youtube.com^privateBrowsingId=1 (pid 35980)",
   "path": "explicit/window-objects/top(https:\\\\www.youtube.com\\watch?v=EJGfQ5AgB3g&list=PL0KMhToOzkd5bWk-EHfHRHFay-5G4yKc_&index=80, id=131)/js-zone(0x1a789914800)/strings/string(length=7828987, copies=1, \"<script id=\"sponsorblock-document-script\" version=\"1.1.39\">(()=>{\"use strict\";var e={156:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.YT_DOMAINS=void 0,t.YT_DOMAINS=[\"m.youtube.com\",\"www.youtube.com\",\"www.youtube-nocookie.com\",\"music.youtube.com\",\"www.youtubekids.com\"]},740:function(e,t,n){var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{d(i.next(e))}catch(e){a(e)}}function s(e){try{d(i.throw(e))}catch(e){a(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}d((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,\"__esModule\",{value:!0}),t.init=void 0;const o=n(841),a=n(584),r=n(156),s=n(59),d=n(544),l=n(779);let u,c=\"\";const v=(0,s.getThumbnailElements)(),m=[\"\\youtubei\\v1\\search\",\"\\youtubei\\v1\\guide\",\"\\youtubei\\v1\\browse\",\"\\youtubei\\v1\\next\",\"\\youtubei\\v1\\player\"],w=[\"videoDetails\",\"videoPrimaryInfoRenderer\",\"videoSecondaryInfoRenderer\",\"currentVideoEndpoint\"],f=e=>{window.postMe\" (truncated))/gc-heap/two-byte",
   "kind": 0,
   "units": 0,
   "amount": 24,
   "description": "TwoByte strings. The characters may be inline or on the malloc heap."
  },
  {
   "process": "webIsolated=https://youtube.com^privateBrowsingId=1 (pid 35980)",
   "path": "explicit/window-objects/top(https:\\\\www.youtube.com\\watch?v=EJGfQ5AgB3g&list=PL0KMhToOzkd5bWk-EHfHRHFay-5G4yKc_&index=80, id=131)/js-zone(0x1a789914800)/strings/string(length=7828987, copies=1, \"<script id=\"sponsorblock-document-script\" version=\"1.1.39\">(()=>{\"use strict\";var e={156:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.YT_DOMAINS=void 0,t.YT_DOMAINS=[\"m.youtube.com\",\"www.youtube.com\",\"www.youtube-nocookie.com\",\"music.youtube.com\",\"www.youtubekids.com\"]},740:function(e,t,n){var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{d(i.next(e))}catch(e){a(e)}}function s(e){try{d(i.throw(e))}catch(e){a(e)}}function d(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}d((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,\"__esModule\",{value:!0}),t.init=void 0;const o=n(841),a=n(584),r=n(156),s=n(59),d=n(544),l=n(779);let u,c=\"\";const v=(0,s.getThumbnailElements)(),m=[\"\\youtubei\\v1\\search\",\"\\youtubei\\v1\\guide\",\"\\youtubei\\v1\\browse\",\"\\youtubei\\v1\\next\",\"\\youtubei\\v1\\player\"],w=[\"videoDetails\",\"videoPrimaryInfoRenderer\",\"videoSecondaryInfoRenderer\",\"currentVideoEndpoint\"],f=e=>{window.postMe\" (truncated))/malloc-heap/two-byte",
   "kind": 1,
   "units": 0,
   "amount": 16777216,
   "description": "Non-inline TwoByte string characters. Sometimes over-allocated to simplify string concatenation."
  },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant