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

[WIP] Rewriting the internals of how the extension works #120

Merged
merged 65 commits into from
Jan 16, 2024
Merged

Conversation

sakithb
Copy link
Owner

@sakithb sakithb commented Jan 1, 2024

Major changes

  • Ported to typescript
  • Merged source menu and track info menu
  • Removed redundant or over specific setting keys
  • Smoother label scrolling animations
  • Better code structuring that makes sense

Todos

  • Translations

Issues

  • Slider in popup menu is sometimes buggy on startup (when the player initializes Position property after the slider is initialized)
  • Scrolling label in the popup menu is buggy on startup
  • Missing artist in spotify on startup (because somehow a PropertiesChanged signal is not emited when the Metadata property is updated with an artist)

@sakithb
Copy link
Owner Author

sakithb commented Jan 1, 2024

@ChrisLauinger77 If you have some time on your hands to test this, I would love to hear your feedback

@ChrisLauinger77
Copy link
Collaborator

@ChrisLauinger77 If you have some time on your hands to test this, I would love to hear your feedback

I am on vacation. Flying back next Saturday. So earliest Sunday I can have a look.

@sakithb
Copy link
Owner Author

sakithb commented Jan 1, 2024

@ChrisLauinger77 If you have some time on your hands to test this, I would love to hear your feedback

I am on vacation. Flying back next Saturday. So earliest Sunday I can have a look.

Sure

@sakithb sakithb self-assigned this Jan 5, 2024
@sakithb sakithb added the enhancement New feature or request label Jan 5, 2024
@sakithb sakithb mentioned this pull request Jan 5, 2024
@sakithb
Copy link
Owner Author

sakithb commented Jan 15, 2024

@ChrisLauinger77 Hey, I added a small change that might just fix this. Can you try that out?

@sakithb
Copy link
Owner Author

sakithb commented Jan 15, 2024

Btw are you using any unstable version of a program in the GNOME stack? like a beta or testing version

@ChrisLauinger77
Copy link
Collaborator

Btw are you using any unstable version of a program in the GNOME stack? like a beta or testing version

Not really - and I also tested v31 with my current setup. This one works without major issues.
I try the change now ...

@ChrisLauinger77
Copy link
Collaborator

the changes do not really help :(
When I start spotify I get multiple/redundant messages about adding stuff ("Added menu labels", "Added menu slider" etc)
Is this supposed to be like this / same for U ?

Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Adding player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Chosen player: undefined
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Removing panel button
Jan 15 18:52:06 debian gnome-shell[52014]: [Blur my Shell > dash manager] TypeError: actor is null, continuing
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Chosen player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Adding panel button
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added icon
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d81a3cd0 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576df0587d0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc94aea0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d90eb690 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dcf51050 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576da156360 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu controls
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576de5b0fd0 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc7937c0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576decec4c0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e23f0b40 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e05d1fc0 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc94f8a0 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Chosen player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dee50630 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e030f3e0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576de137bd0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d90a5c00 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576decea780 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d96a82f0 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider

@ChrisLauinger77
Copy link
Collaborator

And then when I stop spotify after start with no music ever played I get this:

Jan 15 18:55:38 debian gnome-shell[52014]: [Media Controls] Removing player: org.mpris.MediaPlayer2.spotify
Jan 15 18:55:38 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:55:38 debian gnome-shell[52014]: [Media Controls] Removing panel button
Jan 15 18:55:38 debian gnome-shell[52014]: g_signal_handler_disconnect: assertion 'handler_id > 0' failed
Jan 15 18:55:38 debian gnome-shell[52014]: g_signal_handler_disconnect: assertion 'handler_id > 0' failed
Jan 15 18:55:38 debian gnome-shell[52014]: g_signal_handler_disconnect: assertion 'handler_id > 0' failed
Jan 15 18:55:38 debian gnome-shell[52014]: g_signal_handler_disconnect: assertion 'handler_id > 0' failed
Jan 15 18:55:38 debian gnome-shell[52014]: Object St.BoxLayout (0x5576dd884d30), has been already disposed — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
                                           == Stack trace for context 0x5576d7246070 ==
                                           #0   5576d730e1b0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/helpers/shell/PanelButton.js:893 (4128744dab0 @ 251)
                                           #1   5576d730e120 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:397 (4128744a560 @ 48)
                                           #2   5576d730e058 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:323 (4128744a3d0 @ 70)
                                           #3   5576d730dfc0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:318 (4128744a380 @ 116)
                                           #4   5576d730df08 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:260 (4128744a240 @ 342)
                                           #5   7fff0e270480 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:130 (2a71b75968d0 @ 126)
                                           #6   7fff0e270560 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:119 (2a71b75967e0 @ 286)
                                           #7   7fff0e270640 b   resource:https:///org/gnome/gjs/modules/core/overrides/Gio.js:152 (2a71b758a6a0 @ 39)
                                           #8   5576d730de78 i   resource:https:///org/gnome/shell/ui/init.js:21 (2a71b7570ba0 @ 48)
Jan 15 18:55:38 debian gnome-shell[52014]: Object St.Icon (0x5576de507500), has been already disposed — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
                                           == Stack trace for context 0x5576d7246070 ==
                                           #0   5576d730e1b0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/helpers/shell/PanelButton.js:894 (4128744dab0 @ 299)
                                           #1   5576d730e120 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:397 (4128744a560 @ 48)
                                           #2   5576d730e058 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:323 (4128744a3d0 @ 70)
                                           #3   5576d730dfc0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:318 (4128744a380 @ 116)
                                           #4   5576d730df08 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:260 (4128744a240 @ 342)
                                           #5   7fff0e270480 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:130 (2a71b75968d0 @ 126)
                                           #6   7fff0e270560 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:119 (2a71b75967e0 @ 286)
                                           #7   7fff0e270640 b   resource:https:///org/gnome/gjs/modules/core/overrides/Gio.js:152 (2a71b758a6a0 @ 39)
                                           #8   5576d730de78 i   resource:https:///org/gnome/shell/ui/init.js:21 (2a71b7570ba0 @ 48)
Jan 15 18:55:38 debian gnome-shell[52014]: Object St.BoxLayout (0x5576dfd5c6a0), has been already disposed — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
                                           == Stack trace for context 0x5576d7246070 ==
                                           #0   5576d730e1b0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/helpers/shell/PanelButton.js:895 (4128744dab0 @ 347)
                                           #1   5576d730e120 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:397 (4128744a560 @ 48)
                                           #2   5576d730e058 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:323 (4128744a3d0 @ 70)
                                           #3   5576d730dfc0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:318 (4128744a380 @ 116)
                                           #4   5576d730df08 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:260 (4128744a240 @ 342)
                                           #5   7fff0e270480 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:130 (2a71b75968d0 @ 126)
                                           #6   7fff0e270560 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:119 (2a71b75967e0 @ 286)
                                           #7   7fff0e270640 b   resource:https:///org/gnome/gjs/modules/core/overrides/Gio.js:152 (2a71b758a6a0 @ 39)
                                           #8   5576d730de78 i   resource:https:///org/gnome/shell/ui/init.js:21 (2a71b7570ba0 @ 48)
Jan 15 18:55:38 debian gnome-shell[52014]: Object .MenuSlider (0x5576dee1f720), has been already disposed — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
                                           == Stack trace for context 0x5576d7246070 ==
                                           #0   5576d730e1b0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/helpers/shell/PanelButton.js:896 (4128744dab0 @ 395)
                                           #1   5576d730e120 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:397 (4128744a560 @ 48)
                                           #2   5576d730e058 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:323 (4128744a3d0 @ 70)
                                           #3   5576d730dfc0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:318 (4128744a380 @ 116)
                                           #4   5576d730df08 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:260 (4128744a240 @ 342)
                                           #5   7fff0e270480 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:130 (2a71b75968d0 @ 126)
                                           #6   7fff0e270560 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:119 (2a71b75967e0 @ 286)
                                           #7   7fff0e270640 b   resource:https:///org/gnome/gjs/modules/core/overrides/Gio.js:152 (2a71b758a6a0 @ 39)
                                           #8   5576d730de78 i   resource:https:///org/gnome/shell/ui/init.js:21 (2a71b7570ba0 @ 48)
Jan 15 18:55:38 debian gnome-shell[52014]: Object St.BoxLayout (0x5576de075c80), has been already disposed — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
                                           == Stack trace for context 0x5576d7246070 ==
                                           #0   5576d730e1b0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/helpers/shell/PanelButton.js:897 (4128744dab0 @ 443)
                                           #1   5576d730e120 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:397 (4128744a560 @ 48)
                                           #2   5576d730e058 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:323 (4128744a3d0 @ 70)
                                           #3   5576d730dfc0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:318 (4128744a380 @ 116)
                                           #4   5576d730df08 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:260 (4128744a240 @ 342)
                                           #5   7fff0e270480 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:130 (2a71b75968d0 @ 126)
                                           #6   7fff0e270560 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:119 (2a71b75967e0 @ 286)
                                           #7   7fff0e270640 b   resource:https:///org/gnome/gjs/modules/core/overrides/Gio.js:152 (2a71b758a6a0 @ 39)
                                           #8   5576d730de78 i   resource:https:///org/gnome/shell/ui/init.js:21 (2a71b7570ba0 @ 48)
Jan 15 18:55:38 debian gnome-shell[52014]: Object .Gjs_ui_popupMenu_PopupBaseMenuItem (0x5576dfa54de0), has been already disposed — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
                                           == Stack trace for context 0x5576d7246070 ==
                                           #0   5576d730e1b0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/helpers/shell/PanelButton.js:898 (4128744dab0 @ 491)
                                           #1   5576d730e120 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:397 (4128744a560 @ 48)
                                           #2   5576d730e058 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:323 (4128744a3d0 @ 70)
                                           #3   5576d730dfc0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:318 (4128744a380 @ 116)
                                           #4   5576d730df08 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:260 (4128744a240 @ 342)
                                           #5   7fff0e270480 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:130 (2a71b75968d0 @ 126)
                                           #6   7fff0e270560 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:119 (2a71b75967e0 @ 286)
                                           #7   7fff0e270640 b   resource:https:///org/gnome/gjs/modules/core/overrides/Gio.js:152 (2a71b758a6a0 @ 39)
                                           #8   5576d730de78 i   resource:https:///org/gnome/shell/ui/init.js:21 (2a71b7570ba0 @ 48)

It is also unexpected - is this also happening for U ?

@sakithb
Copy link
Owner Author

sakithb commented Jan 16, 2024

the changes do not really help :( When I start spotify I get multiple/redundant messages about adding stuff ("Added menu labels", "Added menu slider" etc) Is this supposed to be like this / same for U ?

Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Adding player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Chosen player: undefined
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Removing panel button
Jan 15 18:52:06 debian gnome-shell[52014]: [Blur my Shell > dash manager] TypeError: actor is null, continuing
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Chosen player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Adding panel button
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added icon
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d81a3cd0 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576df0587d0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc94aea0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d90eb690 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dcf51050 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576da156360 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu controls
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576de5b0fd0 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc7937c0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576decec4c0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e23f0b40 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e05d1fc0 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc94f8a0 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Chosen player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dee50630 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e030f3e0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576de137bd0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d90a5c00 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576decea780 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d96a82f0 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider

Yes it is supposed to be like that, those messages will only log in debug mode

@ChrisLauinger77
Copy link
Collaborator

the changes do not really help :( When I start spotify I get multiple/redundant messages about adding stuff ("Added menu labels", "Added menu slider" etc) Is this supposed to be like this / same for U ?

Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Adding player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Chosen player: undefined
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Removing panel button
Jan 15 18:52:06 debian gnome-shell[52014]: [Blur my Shell > dash manager] TypeError: actor is null, continuing
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Chosen player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Adding panel button
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added icon
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d81a3cd0 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576df0587d0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc94aea0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d90eb690 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dcf51050 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576da156360 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu controls
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576de5b0fd0 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc7937c0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576decec4c0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e23f0b40 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e05d1fc0 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc94f8a0 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Chosen player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dee50630 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e030f3e0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576de137bd0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d90a5c00 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576decea780 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d96a82f0 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider

Yes it is supposed to be like that, those messages will only log in debug mode

Really ? This is showing up in log when I just start spotify.
"Adding panel button" / "Added icon" / "Added label" is logged once. Which is fine.
But why is Added menu labels" / "Added menu players" / "Added menu slider" logged multiple times ?
And what are those "st_widget_get_theme_node called on the widget" messages ? - they are not there in v31 !

@sakithb
Copy link
Owner Author

sakithb commented Jan 16, 2024

the changes do not really help :( When I start spotify I get multiple/redundant messages about adding stuff ("Added menu labels", "Added menu slider" etc) Is this supposed to be like this / same for U ?

Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Adding player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Chosen player: undefined
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Removing panel button
Jan 15 18:52:06 debian gnome-shell[52014]: [Blur my Shell > dash manager] TypeError: actor is null, continuing
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Chosen player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Adding panel button
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added icon
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d81a3cd0 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576df0587d0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc94aea0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d90eb690 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dcf51050 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576da156360 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu controls
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576de5b0fd0 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc7937c0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576decec4c0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e23f0b40 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e05d1fc0 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc94f8a0 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Chosen player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dee50630 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e030f3e0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576de137bd0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d90a5c00 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576decea780 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d96a82f0 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider

Yes it is supposed to be like that, those messages will only log in debug mode

Really ? This is showing up in log when I just start spotify. "Adding panel button" / "Added icon" / "Added label" is logged once. Which is fine. But why is Added menu labels" / "Added menu players" / "Added menu slider" logged multiple times ? And what are those "st_widget_get_theme_node called on the widget" messages ? - they are not there in v31 !

Most of those won't be logged in release mode. st_widget_get_theme_node called on the widget are some warnings you can ignore

@sakithb
Copy link
Owner Author

sakithb commented Jan 16, 2024

And then when I stop spotify after start with no music ever played I get this:

Jan 15 18:55:38 debian gnome-shell[52014]: [Media Controls] Removing player: org.mpris.MediaPlayer2.spotify
Jan 15 18:55:38 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:55:38 debian gnome-shell[52014]: [Media Controls] Removing panel button
Jan 15 18:55:38 debian gnome-shell[52014]: g_signal_handler_disconnect: assertion 'handler_id > 0' failed
Jan 15 18:55:38 debian gnome-shell[52014]: g_signal_handler_disconnect: assertion 'handler_id > 0' failed
Jan 15 18:55:38 debian gnome-shell[52014]: g_signal_handler_disconnect: assertion 'handler_id > 0' failed
Jan 15 18:55:38 debian gnome-shell[52014]: g_signal_handler_disconnect: assertion 'handler_id > 0' failed
Jan 15 18:55:38 debian gnome-shell[52014]: Object St.BoxLayout (0x5576dd884d30), has been already disposed — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
                                           == Stack trace for context 0x5576d7246070 ==
                                           #0   5576d730e1b0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/helpers/shell/PanelButton.js:893 (4128744dab0 @ 251)
                                           #1   5576d730e120 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:397 (4128744a560 @ 48)
                                           #2   5576d730e058 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:323 (4128744a3d0 @ 70)
                                           #3   5576d730dfc0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:318 (4128744a380 @ 116)
                                           #4   5576d730df08 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:260 (4128744a240 @ 342)
                                           #5   7fff0e270480 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:130 (2a71b75968d0 @ 126)
                                           #6   7fff0e270560 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:119 (2a71b75967e0 @ 286)
                                           #7   7fff0e270640 b   resource:https:///org/gnome/gjs/modules/core/overrides/Gio.js:152 (2a71b758a6a0 @ 39)
                                           #8   5576d730de78 i   resource:https:///org/gnome/shell/ui/init.js:21 (2a71b7570ba0 @ 48)
Jan 15 18:55:38 debian gnome-shell[52014]: Object St.Icon (0x5576de507500), has been already disposed — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
                                           == Stack trace for context 0x5576d7246070 ==
                                           #0   5576d730e1b0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/helpers/shell/PanelButton.js:894 (4128744dab0 @ 299)
                                           #1   5576d730e120 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:397 (4128744a560 @ 48)
                                           #2   5576d730e058 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:323 (4128744a3d0 @ 70)
                                           #3   5576d730dfc0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:318 (4128744a380 @ 116)
                                           #4   5576d730df08 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:260 (4128744a240 @ 342)
                                           #5   7fff0e270480 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:130 (2a71b75968d0 @ 126)
                                           #6   7fff0e270560 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:119 (2a71b75967e0 @ 286)
                                           #7   7fff0e270640 b   resource:https:///org/gnome/gjs/modules/core/overrides/Gio.js:152 (2a71b758a6a0 @ 39)
                                           #8   5576d730de78 i   resource:https:///org/gnome/shell/ui/init.js:21 (2a71b7570ba0 @ 48)
Jan 15 18:55:38 debian gnome-shell[52014]: Object St.BoxLayout (0x5576dfd5c6a0), has been already disposed — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
                                           == Stack trace for context 0x5576d7246070 ==
                                           #0   5576d730e1b0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/helpers/shell/PanelButton.js:895 (4128744dab0 @ 347)
                                           #1   5576d730e120 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:397 (4128744a560 @ 48)
                                           #2   5576d730e058 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:323 (4128744a3d0 @ 70)
                                           #3   5576d730dfc0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:318 (4128744a380 @ 116)
                                           #4   5576d730df08 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:260 (4128744a240 @ 342)
                                           #5   7fff0e270480 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:130 (2a71b75968d0 @ 126)
                                           #6   7fff0e270560 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:119 (2a71b75967e0 @ 286)
                                           #7   7fff0e270640 b   resource:https:///org/gnome/gjs/modules/core/overrides/Gio.js:152 (2a71b758a6a0 @ 39)
                                           #8   5576d730de78 i   resource:https:///org/gnome/shell/ui/init.js:21 (2a71b7570ba0 @ 48)
Jan 15 18:55:38 debian gnome-shell[52014]: Object .MenuSlider (0x5576dee1f720), has been already disposed — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
                                           == Stack trace for context 0x5576d7246070 ==
                                           #0   5576d730e1b0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/helpers/shell/PanelButton.js:896 (4128744dab0 @ 395)
                                           #1   5576d730e120 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:397 (4128744a560 @ 48)
                                           #2   5576d730e058 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:323 (4128744a3d0 @ 70)
                                           #3   5576d730dfc0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:318 (4128744a380 @ 116)
                                           #4   5576d730df08 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:260 (4128744a240 @ 342)
                                           #5   7fff0e270480 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:130 (2a71b75968d0 @ 126)
                                           #6   7fff0e270560 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:119 (2a71b75967e0 @ 286)
                                           #7   7fff0e270640 b   resource:https:///org/gnome/gjs/modules/core/overrides/Gio.js:152 (2a71b758a6a0 @ 39)
                                           #8   5576d730de78 i   resource:https:///org/gnome/shell/ui/init.js:21 (2a71b7570ba0 @ 48)
Jan 15 18:55:38 debian gnome-shell[52014]: Object St.BoxLayout (0x5576de075c80), has been already disposed — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
                                           == Stack trace for context 0x5576d7246070 ==
                                           #0   5576d730e1b0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/helpers/shell/PanelButton.js:897 (4128744dab0 @ 443)
                                           #1   5576d730e120 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:397 (4128744a560 @ 48)
                                           #2   5576d730e058 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:323 (4128744a3d0 @ 70)
                                           #3   5576d730dfc0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:318 (4128744a380 @ 116)
                                           #4   5576d730df08 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:260 (4128744a240 @ 342)
                                           #5   7fff0e270480 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:130 (2a71b75968d0 @ 126)
                                           #6   7fff0e270560 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:119 (2a71b75967e0 @ 286)
                                           #7   7fff0e270640 b   resource:https:///org/gnome/gjs/modules/core/overrides/Gio.js:152 (2a71b758a6a0 @ 39)
                                           #8   5576d730de78 i   resource:https:///org/gnome/shell/ui/init.js:21 (2a71b7570ba0 @ 48)
Jan 15 18:55:38 debian gnome-shell[52014]: Object .Gjs_ui_popupMenu_PopupBaseMenuItem (0x5576dfa54de0), has been already disposed — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
                                           == Stack trace for context 0x5576d7246070 ==
                                           #0   5576d730e1b0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/helpers/shell/PanelButton.js:898 (4128744dab0 @ 491)
                                           #1   5576d730e120 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:397 (4128744a560 @ 48)
                                           #2   5576d730e058 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:323 (4128744a3d0 @ 70)
                                           #3   5576d730dfc0 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:318 (4128744a380 @ 116)
                                           #4   5576d730df08 i   file:https:///home/christian/.local/share/gnome-shell/extensions/[email protected]/extension.js:260 (4128744a240 @ 342)
                                           #5   7fff0e270480 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:130 (2a71b75968d0 @ 126)
                                           #6   7fff0e270560 b   resource:https:///org/gnome/gjs/modules/core/_signals.js:119 (2a71b75967e0 @ 286)
                                           #7   7fff0e270640 b   resource:https:///org/gnome/gjs/modules/core/overrides/Gio.js:152 (2a71b758a6a0 @ 39)
                                           #8   5576d730de78 i   resource:https:///org/gnome/shell/ui/init.js:21 (2a71b7570ba0 @ 48)

It is also unexpected - is this also happening for U ?

I will look into this in a bit, this might be caused by the last commit.

@sakithb
Copy link
Owner Author

sakithb commented Jan 16, 2024

Btw, how did you compile these files? No matter how I build, the PanelButton.js file does not have 893 lines. It's strange

@ChrisLauinger77
Copy link
Collaborator

the changes do not really help :( When I start spotify I get multiple/redundant messages about adding stuff ("Added menu labels", "Added menu slider" etc) Is this supposed to be like this / same for U ?

Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Adding player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Chosen player: undefined
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Removing panel button
Jan 15 18:52:06 debian gnome-shell[52014]: [Blur my Shell > dash manager] TypeError: actor is null, continuing
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Chosen player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Adding panel button
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added icon
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d81a3cd0 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576df0587d0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc94aea0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d90eb690 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dcf51050 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576da156360 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu controls
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576de5b0fd0 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc7937c0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576decec4c0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e23f0b40 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e05d1fc0 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc94f8a0 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Chosen player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dee50630 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e030f3e0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576de137bd0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d90a5c00 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576decea780 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d96a82f0 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider

Yes it is supposed to be like that, those messages will only log in debug mode

Really ? This is showing up in log when I just start spotify. "Adding panel button" / "Added icon" / "Added label" is logged once. Which is fine. But why is Added menu labels" / "Added menu players" / "Added menu slider" logged multiple times ? And what are those "st_widget_get_theme_node called on the widget" messages ? - they are not there in v31 !

Most of those won't be logged in release mode. st_widget_get_theme_node called on the widget are some warnings you can ignore

"Added menu slider" is logged multiple times - but only 1 slider is added. Confusing.
Log messages are good - but should make sense

@sakithb
Copy link
Owner Author

sakithb commented Jan 16, 2024

the changes do not really help :( When I start spotify I get multiple/redundant messages about adding stuff ("Added menu labels", "Added menu slider" etc) Is this supposed to be like this / same for U ?

Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Adding player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Chosen player: undefined
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Removing panel button
Jan 15 18:52:06 debian gnome-shell[52014]: [Blur my Shell > dash manager] TypeError: actor is null, continuing
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Chosen player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Adding panel button
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added icon
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d81a3cd0 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576df0587d0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc94aea0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d90eb690 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dcf51050 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576da156360 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu controls
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576de5b0fd0 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc7937c0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576decec4c0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e23f0b40 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e05d1fc0 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc94f8a0 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Chosen player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dee50630 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e030f3e0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576de137bd0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d90a5c00 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576decea780 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d96a82f0 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider

Yes it is supposed to be like that, those messages will only log in debug mode

Really ? This is showing up in log when I just start spotify. "Adding panel button" / "Added icon" / "Added label" is logged once. Which is fine. But why is Added menu labels" / "Added menu players" / "Added menu slider" logged multiple times ? And what are those "st_widget_get_theme_node called on the widget" messages ? - they are not there in v31 !

Most of those won't be logged in release mode. st_widget_get_theme_node called on the widget are some warnings you can ignore

"Added menu slider" is logged multiple times - but only 1 slider is added. Confusing. Log messages are good - but should make sense

It's because the existing sliders are being replaced

@sakithb
Copy link
Owner Author

sakithb commented Jan 16, 2024

When ever metadata, position/length of the media get's updated the slider gets replaced.

@ChrisLauinger77
Copy link
Collaborator

ChrisLauinger77 commented Jan 16, 2024

Btw, how did you compile these files? No matter how I build, the PanelButton.js file does not have 893 lines. It's strange

I edited the .js in the deployment folder for testing / debugging. And prettier reformatted

@ChrisLauinger77
Copy link
Collaborator

ChrisLauinger77 commented Jan 16, 2024

the changes do not really help :( When I start spotify I get multiple/redundant messages about adding stuff ("Added menu labels", "Added menu slider" etc) Is this supposed to be like this / same for U ?

Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Adding player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Chosen player: undefined
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Removing panel button
Jan 15 18:52:06 debian gnome-shell[52014]: [Blur my Shell > dash manager] TypeError: actor is null, continuing
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Chosen player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Adding panel button
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added icon
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d81a3cd0 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576df0587d0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc94aea0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d90eb690 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dcf51050 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576da156360 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu controls
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576de5b0fd0 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc7937c0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576decec4c0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e23f0b40 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e05d1fc0 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc94f8a0 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Chosen player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dee50630 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e030f3e0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576de137bd0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d90a5c00 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576decea780 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d96a82f0 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider

Yes it is supposed to be like that, those messages will only log in debug mode

Really ? This is showing up in log when I just start spotify. "Adding panel button" / "Added icon" / "Added label" is logged once. Which is fine. But why is Added menu labels" / "Added menu players" / "Added menu slider" logged multiple times ? And what are those "st_widget_get_theme_node called on the widget" messages ? - they are not there in v31 !

Most of those won't be logged in release mode. st_widget_get_theme_node called on the widget are some warnings you can ignore

"Added menu slider" is logged multiple times - but only 1 slider is added. Confusing. Log messages are good - but should make sense

It's because the existing sliders are being replaced

In v31 the slider is not replaced, right ? Why is it replaced ? Can we just use 1 slider and update it ?

@sakithb
Copy link
Owner Author

sakithb commented Jan 16, 2024

the changes do not really help :( When I start spotify I get multiple/redundant messages about adding stuff ("Added menu labels", "Added menu slider" etc) Is this supposed to be like this / same for U ?

Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Adding player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Chosen player: undefined
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Removing panel button
Jan 15 18:52:06 debian gnome-shell[52014]: [Blur my Shell > dash manager] TypeError: actor is null, continuing
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Chosen player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Adding panel button
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added icon
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d81a3cd0 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576df0587d0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc94aea0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d90eb690 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dcf51050 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576da156360 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu controls
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576de5b0fd0 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc7937c0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576decec4c0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e23f0b40 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e05d1fc0 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc94f8a0 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Chosen player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dee50630 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e030f3e0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576de137bd0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d90a5c00 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576decea780 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d96a82f0 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider

Yes it is supposed to be like that, those messages will only log in debug mode

Really ? This is showing up in log when I just start spotify. "Adding panel button" / "Added icon" / "Added label" is logged once. Which is fine. But why is Added menu labels" / "Added menu players" / "Added menu slider" logged multiple times ? And what are those "st_widget_get_theme_node called on the widget" messages ? - they are not there in v31 !

Most of those won't be logged in release mode. st_widget_get_theme_node called on the widget are some warnings you can ignore

"Added menu slider" is logged multiple times - but only 1 slider is added. Confusing. Log messages are good - but should make sense

It's because the existing sliders are being replaced

In v31 the slider is not replaced right. Why is it replaced ? Can we just use 1 slider and update it ?

It is implemented differently here, in v31 the slider queries the current position from the mpris object every one second, and updates the value, which is a really bad method, the new version query the position at the start of the song and animates the slider for the duration of the song, which is a way cleaner and performant approach.

@sakithb
Copy link
Owner Author

sakithb commented Jan 16, 2024

Can you send your edited PanelButton.js file?

@sakithb
Copy link
Owner Author

sakithb commented Jan 16, 2024

I just let Spotify play on its own for 30 minutes and checked the logs, there was nothing unexpected like spam or logs. I think we should release the new version now and if other poeple are also experiencing the same issue, we can work towards a fix.

@sakithb sakithb marked this pull request as ready for review January 16, 2024 10:35
@ChrisLauinger77
Copy link
Collaborator

Can you send your edited PanelButton.js file?

I downgraded to v31 and lost my changes. They where not working anyways

@ChrisLauinger77
Copy link
Collaborator

the changes do not really help :( When I start spotify I get multiple/redundant messages about adding stuff ("Added menu labels", "Added menu slider" etc) Is this supposed to be like this / same for U ?

Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Adding player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Chosen player: undefined
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Removing panel button
Jan 15 18:52:06 debian gnome-shell[52014]: [Blur my Shell > dash manager] TypeError: actor is null, continuing
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Chosen player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Adding panel button
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added icon
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d81a3cd0 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576df0587d0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc94aea0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d90eb690 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dcf51050 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576da156360 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu controls
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576de5b0fd0 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc7937c0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576decec4c0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e23f0b40 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e05d1fc0 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dc94f8a0 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:06 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Chosen player: org.mpris.MediaPlayer2.spotify
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu players
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576dee50630 StBoxLayout:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576e030f3e0 StLabel:insensitive ("Who Do You Love? - YG - My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added label
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576de137bd0 StBoxLayout:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d90a5c00 StLabel:insensitive ("Who Do You Love?")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576decea780 StBoxLayout:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: st_widget_get_theme_node called on the widget [0x5576d96a82f0 StLabel:insensitive ("YG / My Krazy Life")] which is not in the stage.
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu labels
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu image
Jan 15 18:52:07 debian gnome-shell[52014]: [Media Controls] Added menu slider

Yes it is supposed to be like that, those messages will only log in debug mode

Really ? This is showing up in log when I just start spotify. "Adding panel button" / "Added icon" / "Added label" is logged once. Which is fine. But why is Added menu labels" / "Added menu players" / "Added menu slider" logged multiple times ? And what are those "st_widget_get_theme_node called on the widget" messages ? - they are not there in v31 !

Most of those won't be logged in release mode. st_widget_get_theme_node called on the widget are some warnings you can ignore

"Added menu slider" is logged multiple times - but only 1 slider is added. Confusing. Log messages are good - but should make sense

It's because the existing sliders are being replaced

In v31 the slider is not replaced right. Why is it replaced ? Can we just use 1 slider and update it ?

It is implemented differently here, in v31 the slider queries the current position from the mpris object every one second, and updates the value, which is a really bad method, the new version query the position at the start of the song and animates the slider for the duration of the song, which is a way cleaner and performant approach.

I still see sometimes spotify stopped but the slider animates.

@ChrisLauinger77
Copy link
Collaborator

I just let Spotify play on its own for 30 minutes and checked the logs, there was nothing unexpected like spam or logs. I think we should release the new version now and if other poeple are also experiencing the same issue, we can work towards a fix.

Fine lets see what EGO review has as result. If the release is not working for me I still can downgrade to v31 which does and have a working version.

@ChrisLauinger77 ChrisLauinger77 linked an issue Jan 16, 2024 that may be closed by this pull request
@sakithb sakithb merged commit 6263699 into main Jan 16, 2024
2 checks passed
@sakithb sakithb deleted the rewrite branch January 16, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants