sakithb / media-controls

A media indicator for the Gnome shell.
MIT License
228 stars 33 forks source link

some error message about running in 3.36 #28

Closed JadeVane closed 2 years ago

JadeVane commented 2 years ago

I kown it just support 38 and 40 clearly, but from #7, I guess that you are try to learn more about how to run it in 36, I am not sure if you have any plan to develop this extension in 36 which I really hope you to do so, and what I can do is helping to test it in 36 and tell you what you need.

This is what I get from journalctl -f -o cat /usr/bin/gnome-shell after enabling this extension

[MediaControls] Enabling
st_widget_get_theme_node called on the widget [0x55b52f9e8080 StBoxLayout ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52f9e8080 StBoxLayout ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52fa1c900 Gjs_ui_popupMenu_PopupImageMenuItem.popup-menu-item:first-child ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52f9e8080 StBoxLayout ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52fa1c900 Gjs_ui_popupMenu_PopupImageMenuItem.popup-menu-item:first-child ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52fa1d140 StLabel.popup-menu-ornament:first-child ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52f9e8080 StBoxLayout ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52fa1c900 Gjs_ui_popupMenu_PopupImageMenuItem.popup-menu-item:first-child ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52fa1ffc0 StLabel:last-child ("setting")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52f9e8080 StBoxLayout ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52fa22560 Gjs_ui_popupMenu_PopupImageMenuItem.popup-menu-item ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52f9e8080 StBoxLayout ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52fa22560 Gjs_ui_popupMenu_PopupImageMenuItem.popup-menu-item ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52fa22d70 StLabel.popup-menu-ornament:first-child ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52f9e8080 StBoxLayout ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52fa22560 Gjs_ui_popupMenu_PopupImageMenuItem.popup-menu-item ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52fa27210 StLabel:last-child ("locking")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52f9e8080 StBoxLayout ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52fa2b120 Gjs_ui_popupMenu_PopupSubMenuMenuItem.popup-menu-item popup-submenu-menu-item:last-child ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52f9e8080 StBoxLayout ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52fa2b120 Gjs_ui_popupMenu_PopupSubMenuMenuItem.popup-menu-item popup-submenu-menu-item:last-child ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52fa2bb10 StLabel.popup-menu-ornament:first-child ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52f9e8080 StBoxLayout ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52fa2b120 Gjs_ui_popupMenu_PopupSubMenuMenuItem.popup-menu-item popup-submenu-menu-item:last-child ("")] which is not in the stage.
st_widget_get_theme_node called on the widget [0x55b52fa2dd70 StLabel ("shutdown / layout")] which is not in the stage.
JS ERROR: Gio.IOErrorEnum: Open file /home/jadevane/.config/media-controls/cache/ZmlsZTovLy9ob21lL3dlbmppbnl1Ly5jYWNoZS9yaHl0aG1ib3gvYWxidW0tYXJ0Ly4vMmVh error: No such file or directory
_getImage@/home/jadevane/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:597:53
get trackIcon@/home/jadevane/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:735:25
get menuItem@/home/jadevane/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:714:21
_addPlayer@/home/jadevane/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/widget.js:197:36
async*enable/</<@/home/jadevane/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/widget.js:82:56
enable/<@/home/jadevane/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/widget.js:90:31
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13

JS ERROR: Gio.IOErrorEnum: Open file /home/jadevane/.config/media-controls/cache/ZmlsZTovLy9ob21lL3dlbmppbnl1Ly5jYWNoZS9yaHl0aG1ib3gvYWxidW0tYXJ0Ly4vMmVh error: No such file or directory
_getImage@/home/jadevane/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:597:53
get trackIcon@/home/jadevane/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:735:25
_addInfoMenuItems@/home/jadevane/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:406:21
initWidgets@/home/jadevane/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/player.js:210:18
updatePlayer@/home/jadevane/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/widget.js:269:33
enable/</<@/home/jadevane/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/widget.js:86:42
async*enable/<@/home/jadevane/.local/share/gnome-shell/extensions/mediacontrols@cliffniff.github.com/widget.js:90:31
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13

clutter_actor_remove_child: assertion 'child->priv->parent != NULL' failed
JadeVane commented 2 years ago

BTW, the extension works well, but I can't access it from the settings.

image

sakithb commented 2 years ago

Thanks I will analyze the logs and reply. Sorry for the late reply.

MahmoudAFarag commented 2 years ago

The problem still persists on gnome 3.36, any updates?

sakithb commented 2 years ago

Sorry I didn't really have any time to look in to this issue. My work is clearing up now, so hopefully around tomorrow I will update you.

sakithb commented 2 years ago

Hello, I fixed the above errors and created the pre-release for v18, it should support GNOME 3.36. If there are any furthermore issues, please report here.

sakithb commented 2 years ago

I will close this issue now, If there is some issue with 3.36 support, feel free to re-open.

WXZhao7 commented 1 year ago

I met the same error with Ubuntu 20.04.5 + GNOME Shell 3.36.9.

log:

The settings of extension mediacontrols@cliffniff.github.com had an error:

SyntaxError: expected expression, got '?'

Stack trace:

_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:204:33
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:222:19
start@resource:///org/gnome/gjs/modules/script/package.js:206:5
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17