Youtube live chat with filling up memory too fast recently
-
Nordlys last edited by
Recently, watching Youtube streams has been terrible on Opera One.
With chat closed it works fine, but if chat is open Task Manager shows that RAM usage for that tab increases by ~50 MB per second without stopping until the tab crashes (out of memory). After only a few seconds, the stream starts struggling hard. CPU usage also increases 5-10x, but that's normal. Closing the chat (i.e. not the tab) stabilizes the tab, but it does not dump memory usage for a while.
Without chat enabled, the memory usage stays low and stable, correctly flushing video data rapidly from the RAM. So this only applies to chat, and it's probably worse on very active chats (streams with 5k+ live viewers) than slow chats.
Currently on Opera One 109.0.5097.59, but this has been going on for a few recent releases (maybe after 108.x or 109.x). This was not an issue a month or two back, running on the same system as today.
-
-
Nordlys last edited by
@leocg You're saying on a normal video, but did you try a live video with fast chat?
I can say this video does it for me (just a popular streamer for reference, not what I usually watch):
https://www.youtube.com/watch?v=nuImMCnkGIwOpening the video it starts at about ~300 MB, but it quickly creeps up to ~1-2 GB and beyond after some moments in the foreground. While taking screenshots and pasting to a different application, I noticed the memory usage falls down to ~5-600 MB in the background, but it restores its previous usage as I tab back. Closing chat (with the big 'X') stops the tab from accumulating memory, and it will drop to normal levels after a few moments. Reopening the chat starts accumulating memory junk again.
I usually have "dark theme" (top right dots) and "cinema/theatre mode" on (press 't'), as well as "live chat" (not "top chat"). However, the normal "default view" and "top chat" also seemed to be troublesome. It may however take some time to start collecting junk in RAM, and I think I had one instance where I had issues identifying the tab in task manager at all (after which I closed the tab and made a new one, and the new tab was easy to identify again).
I run Windows 10, and I have about 30 other tabs open (mostly news, shops, etc. taking up ~5-30 MB RAM each).
-
Nordlys last edited by
@leocg Did you get around to testing it with the posted video? It seems to start happening after the chat fills up a bit. Maybe a minute or two in.
I have tried it with no extensions, and with browser.js enabled and disabled. I have disabled the "Opening animation on start page" flag and enabled the "Show memory usage in hovercards." flag, but otherwise it's default.
I also tried disabling Aria, but I don't think my custom settings should have much effect on the issue. The main thing is that this was not an issue a few browser versions back on the same machine and browser setup, but has persisted a month or two now without being fixed. It makes it impossible to have chat open for more than a minute.
-
Nordlys last edited by
The issue seems better today, with none of my tabs amassing vast amounts of RAM. No Opera client update (been on 109.0.5097.68 for a while).
Not sure if YouTube changed some code on their end, which may also have been the source of the issue.