ubuntu / gnome-shell-extension-appindicator

Adds KStatusNotifierItem support to the Shell
https://extensions.gnome.org/extension/615/appindicator-support/
GNU General Public License v2.0
1.2k stars 164 forks source link

Warning about invalid DBus Introspection XML #116

Open ptomato opened 6 years ago

ptomato commented 6 years ago

As reported on https://gitlab.gnome.org/GNOME/gjs/issues/40, there seems to be DBus Introspection XML that doesn't fit the required schema:

Jan 26 20:33:47  gnome-session[3142]: Gjs-Message: JS LOG: Device ->
Jan 26 20:33:47  gnome-session[3142]: Gjs-Message: JS LOG: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.588/StatusNotifierItem
Jan 26 20:33:47  gnome-session[3142]: Gjs-Message: JS LOG: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.85/org/ayatana/NotificationItem/software_update_available
Jan 26 20:33:47  gnome-session[3142]: Gjs-Message: JS LOG: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.278/org/ayatana/NotificationItem/remmina_icon
Jan 26 20:33:47  gnome-session[3142]: Gjs-Message: JS LOG: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.262/StatusNotifierItem
Jan 26 20:33:47  gnome-session[3142]: Gjs-Message: JS LOG: [AppIndicatorSupport-DEBUG] Using Brute-force mode for StatusNotifierItem :1.382/StatusNotifierItem
Jan 26 20:33:47  gnome-session[3142]: Gjs-Message: JS LOG: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.382/StatusNotifierItem
Jan 26 20:33:47  gnome-session[3142]: Gjs-Message: JS LOG: [AppIndicatorSupport-DEBUG] Using Brute-force mode for StatusNotifierItem :1.383/StatusNotifierItem
Jan 26 20:33:47  gnome-session[3142]: Gjs-Message: JS LOG: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.383/StatusNotifierItem
Jan 26 20:33:47  gnome-session[3142]: (gnome-shell:6316): Gjs-WARNING **: JS ERROR: GLib.MarkupError: 1:424: Only direction 'out' is allowed for <arg> elements embedded in <signal>
Jan 26 20:33:47  gnome-session[3142]: _newNodeInfo@resource:///org/gnome/gjs/modules/overrides/Gio.js:217
Jan 26 20:33:47  gnome-session[3142]: _wrapFunction/klass[method]@resource:///org/gnome/gjs/modules/overrides/Gio.js:244
Jan 26 20:33:47  gnome-session[3142]: introspectBusObject/<@/home/xx/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com/util.js:106
Jan 26 20:33:48  gnome-session[3142]: Gjs-Message: JS LOG: [AppIndicatorSupport-WARN] while calling AboutToShow: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: No such obje
Jan 26 20:33:48  gnome-session[3142]: Gjs-Message: JS LOG: [AppIndicatorSupport-WARN] while calling AboutToShow: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: No such obje
Jan 26 20:33:48  gnome-session[3142]: Gjs-Message: JS LOG: [AppIndicatorSupport-WARN] While reading menu layout: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: No such obje
Jan 26 20:33:48  gnome-session[3142]: Gjs-Message: JS LOG: [AppIndicatorSupport-WARN] While reading menu layout: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: No such obje

Exception is thrown at this line: https://github.com/Ubuntu/gnome-shell-extension-appindicator/blob/master/util.js#L106

This may be crashing the original poster's gnome-shell, although it's hard to tell because there's another error in their log from a different extension that also may be the problem.

xgdgsc commented 3 years ago

I have logs like

1月 05 09:53:18 hy-sgao gnome-shell[2710]: JS ERROR: GLib.MarkupError: 1:424: Only direction 'out' is allowed for <arg> elements embedded in <signal>
                                            _newNodeInfo@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:276:16
                                            _wrapFunction/klass[method]@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:309:25
                                            introspectBusObject/<@/usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/util.js:180:50
1月 05 09:53:19 hy-sgao gnome-shell[2710]: Window manager warning: last_focus_time (60132054) is greater than comparison timestamp (60124432).  This most likely represents a buggy client sending inaccurate timestamps in messages such as _NET_ACTIVE_WINDOW.  Trying to work around...
1月 05 09:53:19 hy-sgao gnome-shell[2710]: pushModal: invocation of begin_modal failed

Could it be the reason It is very slow to unlock after resume from suspend?