uBlockOrigin / uAssets

Resources for uBlock Origin, uMatrix: static filter lists, ready-to-use rulesets, etc.
GNU General Public License v3.0
4.14k stars 774 forks source link

youtube.com: breakage | Livestreams resourse hog crashing player #16918

Closed megaeverything closed 1 year ago

megaeverything commented 1 year ago

Prerequisites

URL address of the web page

https://www.youtube.com/watch?v=57hf0TY8tA4

Category

breakage

Description

When watching youtube livestreams on the Firefox browser over time ublock hogs CPU and RAM from the system causing the video player to lag and constantly buffer. I have seen Firefox take up 12+GB of ram on a high end gaming desktop (Ryzen 5800X, 16GB ram, 3070TI) In task manager when I kill the process using the most resources, RAM usage drops, and the video player plays without buffering but the Ublock origin extension UI stops working, so im pretty sure its Ublock that is the culprit. Issue only shows after a while of watching youtube livestreams for a long period of time (30+ mins). Refreshing does not seem to fix the issue, only closing the entire browser and relaunching it fixes issue. I believe disabling Ublock origin does not cause buffering. After closing the high ram usage process in task manager ads also start showing up on newly opened youtube tabs, also confirming it may be Ublock causing issue.

Screenshot(s)

Screenshot(s)

Configuration

```yaml uBlock Origin: 1.47.0 Firefox: 110 filterset (summary): network: 83656 cosmetic: 38409 scriptlet: 16748 html: 863 listset (total-discarded, last-updated): added: https://www.joinhoney.com/whitelist/honey-smart-shopping.txt: 0-0, 1h.28m default: user-filters: 2-0, never ublock-filters: 32307-40, 3d.1h.9m ublock-badware: 4391-6, 3d.1h.8m ublock-privacy: 319-0, 9d.1h.16m ublock-abuse: 79-0, 9d.1h.15m ublock-unbreak: 1913-2, 3d.1h.7m easylist: 62348-646, 1h.30m easyprivacy: 30963-1753, 1h.29m urlhaus-1: 5931-0, 1h.27m plowe-0: 3675-2, 3d.1h.11m ublock-quick-fixes: 398-29, 1h.25m filterset (user): [array of 2 redacted] trustedset: added: [array of 2 redacted] modifiedUserSettings: [none] modifiedHiddenSettings: [none] supportStats: allReadyAfter: 3572 ms (selfie) maxAssetCacheWait: 1431 ms popupPanel: blocked: 38 blockedDetails: youtube.com: 14 doubleclick.net: 5 google.ca: 1 google.com: 4 googlevideo.com: 3 sentry.io: 11 ```
Daxy7 commented 1 year ago

I'm pretty sure the live chat has some memory leak, even after years later. You can install HyperChat by LiveTL to fix this problem if you wish

MasterKia commented 1 year ago

Duplicate of https://github.com/uBlockOrigin/uAssets/issues/7636

megaeverything commented 1 year ago

This is not a duplicate of #7636, as this is livestreams just buffering after a certain time rather than scrubbing through videos. When the buffering starts, if i open task manager and force close the highest ram instance of Firefox task in task manager the buffering stops, but i begin to see ads and the ublock UI no longer works when i click the extension. Ads also appear in all other windows even though the ublock extension icon is red showing its enabled, meaning that that task is somehow related to ublock and its function.

MasterKia commented 1 year ago

7636 : ALL youtube.com issues

Just copy and paste your issue in that thread.

krystian3w commented 1 year ago

I can only generate a smearing of the audio in relation to the visual track, and it is more likely to be the fault of using Bluetooth (lately, I keep hearing squeaks when I play something and losing sound (for example, from a 6 word sentence, I can't hear most of the words).

To properly blame the chat rather need a HAR log instead of implementing its reading with something else.