multiple errors on startup

Bug #863329 reported by Erno Kuusela
50
This bug affects 9 people
Affects Status Importance Assigned to Milestone
gnome-tweak-tool (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I get all these worrying sounding failures on startup:

WARNING : Error detecting shell
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gtweak/tweaks/tweak_shell_extensions.py", line 145, in __init__
    shell = GnomeShellFactory().get_shell()
  File "/usr/lib/python2.7/dist-packages/gtweak/utils.py", line 38, in getinstance
    instances[cls] = cls()
  File "/usr/lib/python2.7/dist-packages/gtweak/gshellwrapper.py", line 123, in __init__
    v = map(int,proxy.version.split("."))
  File "/usr/lib/python2.7/dist-packages/gtweak/gshellwrapper.py", line 46, in version
    return json.loads(self.execute_js('const Config = imports.misc.config; Config.PACKAGE_VERSION'))
  File "/usr/lib/python2.7/dist-packages/gtweak/gshellwrapper.py", line 39, in execute_js
    result, output = self.proxy.Eval('(s)', js)
  File "/usr/lib/python2.7/dist-packages/gi/overrides/Gio.py", line 148, in __call__
    kwargs.get('flags', 0), kwargs.get('timeout', -1), None)
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
GError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.Shell was not provided by any .service files
WARNING : Shell not running
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gtweak/tweaks/tweak_shell.py", line 57, in __init__
    self._shell = GnomeShellFactory().get_shell()
  File "/usr/lib/python2.7/dist-packages/gtweak/utils.py", line 38, in getinstance
    instances[cls] = cls()
  File "/usr/lib/python2.7/dist-packages/gtweak/gshellwrapper.py", line 123, in __init__
    v = map(int,proxy.version.split("."))
  File "/usr/lib/python2.7/dist-packages/gtweak/gshellwrapper.py", line 46, in version
    return json.loads(self.execute_js('const Config = imports.misc.config; Config.PACKAGE_VERSION'))
  File "/usr/lib/python2.7/dist-packages/gtweak/gshellwrapper.py", line 39, in execute_js
    result, output = self.proxy.Eval('(s)', js)
  File "/usr/lib/python2.7/dist-packages/gi/overrides/Gio.py", line 148, in __call__
    kwargs.get('flags', 0), kwargs.get('timeout', -1), None)
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
GError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.Shell was not provided by any .service files
WARNING : Could not list shell extensions
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gtweak/tweaks/tweak_shell.py", line 62, in __init__
    extensions = self._shell.list_extensions()
AttributeError: ShellThemeTweak instance has no attribute '_shell'

(gnome-tweak-tool:4017): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

(gnome-tweak-tool:4017): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

(gnome-tweak-tool:4017): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

(gnome-tweak-tool:4017): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

(gnome-tweak-tool:4017): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

(gnome-tweak-tool:4017): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

(gnome-tweak-tool:4017): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

(gnome-tweak-tool:4017): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

(gnome-tweak-tool:4017): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

(gnome-tweak-tool:4017): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

(gnome-tweak-tool:4017): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

(gnome-tweak-tool:4017): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

(gnome-tweak-tool:4017): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

(gnome-tweak-tool:4017): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

(gnome-tweak-tool:4017): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: gnome-tweak-tool 3.1.90-0ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-12.19-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu2
Architecture: amd64
Date: Fri Sep 30 17:17:10 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
SourcePackage: gnome-tweak-tool
UpgradeStatus: Upgraded to oneiric on 2011-09-30 (0 days ago)

Revision history for this message
Erno Kuusela (erno-iki) wrote :
Changed in gnome-tweak-tool (Ubuntu):
status: New → Confirmed
Revision history for this message
Kyle Pearson (demos-taiwan) wrote :

In addition to these errors, Gnome-tweak-tool is not displaying any shell themes, even though i have a great load of GTK3 themes installed under /usr/share/themes

Revision history for this message
janosimas (janosimas) wrote :

I had a similar error but with gnome-shell extensions.

gnome-shell stopped working too.
had to remove the extensions and reinstall the shell to make it work again.

no log, sorry.

Revision history for this message
Victor Passapera (vpassapera) wrote :
Download full text (3.7 KiB)

All my extensions and my themes seem to still be working, but gnome-tweak-tool displays the following for me:

==================================================================================

WARNING : Could not list shell extensions
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gtweak/tweaks/tweak_shell.py", line 62, in __init__
    extensions = self._shell.list_extensions()
  File "/usr/lib/python2.7/dist-packages/gtweak/gshellwrapper.py", line 107, in list_extensions
    return self._proxy.proxy.ListExtensions()
  File "/usr/lib/python2.7/dist-packages/gi/overrides/Gio.py", line 148, in __call__
    kwargs.get('flags', 0), kwargs.get('timeout', -1), None)
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
GError: GDBus.Error:org.gnome.gjs.JSError.TypeError: out is undefined
No schema known for `/desktop/gnome/shell/windows/button_layout'
No schema known for `/desktop/gnome/shell/windows/button_layout'
WARNING : Error listing extensions
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gtweak/tweaks/tweak_shell_extensions.py", line 153, in __init__
    for extension in shell.list_extensions().values():
  File "/usr/lib/python2.7/dist-packages/gtweak/gshellwrapper.py", line 107, in list_extensions
    return self._proxy.proxy.ListExtensions()
  File "/usr/lib/python2.7/dist-packages/gi/overrides/Gio.py", line 148, in __call__
    kwargs.get('flags', 0), kwargs.get('timeout', -1), None)
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
GError: GDBus.Error:org.gnome.gjs.JSError.TypeError: out is undefined
No schema known for `/desktop/gnome/shell/windows/theme'
No schema known for `/desktop/gnome/shell/windows/theme'

Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

...

Read more...

Revision history for this message
Victor Passapera (vpassapera) wrote :

Faulty code is in gshellwrapper.py class GnomeShell32. If you copy the GnomeShell30 version you can see that they all get listed (although not working completely properly). Seems like the method for Listing extensions contains errors.

Revision history for this message
Victor Passapera (vpassapera) wrote :

Changing the function in Line 106 to

    def list_extensions(self):
# return self._proxy.proxy.ListExtensions()
        out = self._proxy.execute_js('const ExtensionSystem = imports.ui.extensionSystem; ExtensionSystem.extensionMeta')
        return json.loads(out)

Seems to fix most of the problems (although i still see some of the problems showing up). I'll keep looking into it

Revision history for this message
Mike Gibson (megibson) wrote :

Victor's tweak does not fix anything for me. I still cannot list extensions.

Revision history for this message
Mike Gibson (megibson) wrote :
Download full text (4.6 KiB)

I get this when using Victor's tweak:

CRITICAL: Error parsing schema org.gnome.shell (/usr/share/glib-2.0/schemas/org.gnome.shell.gschema.xml)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gtweak/gsettings.py", line 45, in __init__
    summary = key.getElementsByTagName("summary")[0].childNodes[0].data
IndexError: list index out of range
WARNING : Error detecting shell
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gtweak/tweaks/tweak_shell_extensions.py", line 145, in __init__
    shell = GnomeShellFactory().get_shell()
  File "/usr/lib/python2.7/dist-packages/gtweak/utils.py", line 38, in getinstance
    instances[cls] = cls()
  File "/usr/lib/python2.7/dist-packages/gtweak/gshellwrapper.py", line 125, in __init__
    v = map(int,proxy.version.split("."))
  File "/usr/lib/python2.7/dist-packages/gtweak/gshellwrapper.py", line 46, in version
    return json.loads(self.execute_js('const Config = imports.misc.config; Config.PACKAGE_VERSION'))
  File "/usr/lib/python2.7/dist-packages/gtweak/gshellwrapper.py", line 39, in execute_js
    result, output = self.proxy.Eval('(s)', js)
  File "/usr/lib/python2.7/dist-packages/gi/overrides/Gio.py", line 148, in __call__
    kwargs.get('flags', 0), kwargs.get('timeout', -1), None)
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
GError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.Shell was not provided by any .service files
WARNING : Shell not running
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gtweak/tweaks/tweak_shell.py", line 57, in __init__
    self._shell = GnomeShellFactory().get_shell()
  File "/usr/lib/python2.7/dist-packages/gtweak/utils.py", line 38, in getinstance
    instances[cls] = cls()
  File "/usr/lib/python2.7/dist-packages/gtweak/gshellwrapper.py", line 125, in __init__
    v = map(int,proxy.version.split("."))
  File "/usr/lib/python2.7/dist-packages/gtweak/gshellwrapper.py", line 46, in version
    return json.loads(self.execute_js('const Config = imports.misc.config; Config.PACKAGE_VERSION'))
  File "/usr/lib/python2.7/dist-packages/gtweak/gshellwrapper.py", line 39, in execute_js
    result, output = self.proxy.Eval('(s)', js)
  File "/usr/lib/python2.7/dist-packages/gi/overrides/Gio.py", line 148, in __call__
    kwargs.get('flags', 0), kwargs.get('timeout', -1), None)
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
GError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.Shell was not provided by any .service files
WARNING : Could not list shell extensions
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gtweak/tweaks/tweak_shell.py", line 62, in __init__
    extensions = self._shell.list_extensions()
AttributeError: ShellThemeTweak instance has no attribute '_shell'

(gnome-tweak-tool:11028): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: assertion `width >= 0' failed

(gnome-tweak-tool:11028): Gtk-CRITICAL **: gtk_widget_get_preferred_height_for_width: asserti...

Read more...

Revision history for this message
Jeremy Bícha (jbicha) wrote :

Thank you for reporting this bug to Ubuntu. I apologize that we are not always to respond to bug reports promptly. Ubuntu 11.10 reached End of Life in 2013. See this document for currently supported Ubuntu releases: https://wiki.ubuntu.com/Releases

Please upgrade to Ubuntu 16.04 LTS and re-test.

Do feel free to report any other bugs you may find.

Changed in gnome-tweak-tool (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.