High RAM usage with short videos
Describe the bug When Media Controls is enabled, the RAM usage of gnome-shell goes up as I'm scrolling through YouTube shorts, TikTok or whatever, while another source of media is opened as well. This behavior no longer occurs when I restart my PC and do the same with the extension disabled.
To Reproduce
- Enable the extension
- Open any source of media (in my case Spotify)
- Go on a site that has short videos
- Start scrolling
Expected behavior Memory usage should stay around the same, or at least not go that high.
Screenshots
- Normal RAM usage
- RAM usage after scrolling for about 2 minutes
Environment:
- Distro: Fedora 39
- GNOME version 45.4
- Extension Version 2.0.0
Edit: Still an issue in July on Fedora 40.
Can you see if the same happens when using another browser for watching short videos.
I just did a test with Firefox, Brave and Chromium, and it seems to be an issue with chromium based browsers only.
That's interesting, might be related to the broken chromium mpris implementation. I'll have to check it out. Does the extension behave correctly with chromium browsers? Like does the extension keep showing the video as playing even after you close the tab?
Well, in this scenario if I close the tab it's going to show Spotify.
Did this happen again or are you able to recreate this issue?
Yes, I'm still able to reproduce it.
There is definitely a memory leak somewhere, as I had my gnome-shell killed due to OOM. It seems that the more you seek\play\skip the more memory is leaking. I know that it's hard to chase memory leaks, but it seems that some objects are being created in the background without any destruction once they are used and useless.
In my case i had a day long session with some lengthy youtube videos (2-3 hours stream recordings), Spotify music (a few dozen of songs) and when i started to play a video in instagram, it immediately froze.
Here are some related logs just before the crash.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58ea1e4790 StBoxLayout:insensitive ("Лови момент")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58e8811510 StLabel:insensitive ("Лови момент")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58ea9ea820 StBoxLayout:insensitive ("КИССКОЛД / Крестики Нолики")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a59007f19f0 StLabel:insensitive ("КИССКОЛД / Крестики Нолики")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58e879e190 StBoxLayout:insensitive ("Лови момент")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58e97d3df0 StLabel:insensitive ("Лови момент")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a57434a5710 StBoxLayout:insensitive ("КИССКОЛД / Крестики Нолики")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58e996ad90 StLabel:insensitive ("КИССКОЛД / Крестики Нолики")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58e9f40600 StBoxLayout:insensitive ("Лови момент")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58ea8955c0 StLabel:insensitive ("Лови момент")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a579f50ba50 StBoxLayout:insensitive ("КИССКОЛД / Крестики Нолики")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58e9cc9d10 StLabel:insensitive ("КИССКОЛД / Крестики Нолики")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58ea0849c0 StBoxLayout:insensitive ("Лови момент")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a5693ca5d80 StLabel:insensitive ("Лови момент")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a5900db85a0 StBoxLayout:insensitive ("КИССКОЛД / Крестики Нолики")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a5721fb4410 StLabel:insensitive ("КИССКОЛД / Крестики Нолики")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a57367128c0 StBoxLayout:insensitive ("Лови момент")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58a91bc6e0 StLabel:insensitive ("Лови момент")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a589579a720 StBoxLayout:insensitive ("КИССКОЛД / Крестики Нолики")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58e88c9b90 StLabel:insensitive ("КИССКОЛД / Крестики Нолики")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a581ec9fb80 StBoxLayout:insensitive ("Лови момент")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58ea966500 StLabel:insensitive ("Лови момент")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58e83242d0 StBoxLayout:insensitive ("КИССКОЛД / Крестики Нолики")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58e8734100 StLabel:insensitive ("КИССКОЛД / Крестики Нолики")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a57bc80ab20 StBoxLayout:insensitive ("Лови момент")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a5895770f40 StLabel:insensitive ("Лови момент")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58ea8aa540 StBoxLayout:insensitive ("КИССКОЛД / Крестики Нолики")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58e971fc70 StLabel:insensitive ("КИССКОЛД / Крестики Нолики")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a5742d3b320 StBoxLayout:insensitive ("Лови момент")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58ea811f70 StLabel:insensitive ("Лови момент")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a56a15b0cd0 StBoxLayout:insensitive ("КИССКОЛД / Крестики Нолики")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58a0060830 StLabel:insensitive ("КИССКОЛД / Крестики Нолики")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58e8c17b00 StBoxLayout:insensitive ("Instagram")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a556c5f6ac0 StLabel:insensitive ("Instagram")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58e95d9170 StBoxLayout:insensitive ("Unknown artist")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58e9f96a60 StLabel:insensitive ("Unknown artist")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a589fe8e9c0 StBoxLayout:insensitive ("Instagram")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58e8c738b0 StLabel:insensitive ("Instagram")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a56fe307f30 StBoxLayout:insensitive ("Unknown artist")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58e962aab0 StLabel:insensitive ("Unknown artist")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a581ec69720 StBoxLayout:insensitive ("Instagram")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a584f096680 StLabel:insensitive ("Instagram")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a57ebe7f970 StBoxLayout:insensitive ("Unknown artist")] which is not in the stage.
Mar 26 04:07:28 spurlos-ThinkPad-T16-Gen-2 gnome-shell[62337]: st_widget_get_theme_node called on the widget [0x5a58a0091f70 StLabel:insensitive ("Unknown artist")] which is not in the stage.
Mar 26 04:09:24 spurlos-ThinkPad-T16-Gen-2 kernel: Out of memory: Killed process 62337 (gnome-shell) total-vm:22951616kB, anon-rss:9005892kB, file-rss:640kB, shmem-rss:10284kB, UID:1000 pgtables:35856kB oom_score_adj:100
I have the same problem, my system crashed after memory overload
+, I have the same issue
@sakithb Any updates on this one?
def a media controls issue, memory jumps up when switching video (<- edit: not sure if this is too important) whilst not when extension disabled, caught it eating a whopping 29 gb after good amount of time
def a media controls issue, memory jumps up when switching video (<- edit: not sure if this is too important) whilst not when extension disabled, caught it eating a whopping 29 gb after good amount of time
Seems not to affect everybody - I wonder If you have more then 1 screen. Some sideeffects seem to not happen on single screen setups (gone after 1 switched from 2 monitors to 1 dual wide) And I suspect gnome-shell / mutter is the issue not the extension. What version of gnome-shell is used would be intresting from everybody who is affected
mutter (46.2-1ubuntu0.24.04.1) gnome-shell (46.0-0ubuntu6~24.04.4)
Have dual monitor setup (laptop + external), mostly docked, but i think it also happens when use laptop on its own.
There should be some fixes in gnome-shell 46.4 / 47.
mutter: 46.2-1ubuntu0.24.04.1 gnome-shell: 46.0-0ubuntu6~24.04.4
Dual monitor to pc, fairly stock system, only started using extensions a bit after the latest ubuntu lts released.
Seems not to affect everybody - I wonder If you have more then 1 screen. Some sideeffects seem to not happen on single screen setups (gone after 1 switched from 2 monitors to 1 dual wide) And I suspect gnome-shell / mutter is the issue not the extension.
Technically I do have a dual monitor setup as well, however my secondary monitor is disabled in the settings (I wonder if that changes anything).
What version of gnome-shell is used would be intresting from everybody who is affected
mutter 46.4 & bash 5.2.26
This is happening to me as well. Two-monitor setup on Wayland EndeavourOS, mutter 46.4, Gnome Shell 46.4, everytime a new song is loaded the ram usage for gnome-shell goes up by a few megabytes until eventually it is killed / crashes.