v0.0.4-0 Won't start in 13.04

Bug #1156337 reported by j s n j
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Unity Tweak Tool
Fix Released
Medium
J Phani Mahesh
unity-tweak-tool (Ubuntu)
Fix Released
Undecided
J Phani Mahesh

Bug Description

This also applies to v0.0.3 on my 13.04. I've been asked to report a bug. Not sure if it's a duplicate. Here's the terminal output when start is attempted.

** (unity-tweak-tool:6577): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist

** (unity-tweak-tool:6577): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
Initialising...
schema com.canonical.notify-osd not installed
schema com.canonical.desktop.interface not installed
Traceback (most recent call last):
  File "/usr/bin/unity-tweak-tool", line 57, in <module>
    UnityTweakTool.init()
  File "/usr/lib/python3/dist-packages/UnityTweakTool/__init__.py", line 119, in init
    connectpages()
  File "/usr/lib/python3/dist-packages/UnityTweakTool/__init__.py", line 56, in connectpages
    from UnityTweakTool.section.unity import Unity
  File "/usr/lib/python3/dist-packages/UnityTweakTool/section/unity.py", line 712, in <module>
    'dependants': []
  File "/usr/lib/python3/dist-packages/UnityTweakTool/elements/radio.py", line 55, in __init__
    key=self.key
AssertionError

Barneedhar (barneedhar)
Changed in unity-tweak-tool:
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → J Phani Mahesh (phanimahesh)
Revision history for this message
Tobias Bannert (toba) wrote :

also in 12.10 with 0.0.4-0~92~quantal1

Revision history for this message
J Phani Mahesh (phanimahesh) wrote :

A fix has been committed to silently disable ('grey-out') the troubling settings if the schemas are not installed.

Can you please verify if 0.0.4-0~97~quantal1 solves this issue? (This package is currently queued for building and should be available via the PPA lp:freyja-dev/unity-tweak-tool-daily in an hour. )

Revision history for this message
Sylvain BROCHAND (sbrochand) wrote :

With 0.0.4-0~97 on 12.10, the error message becomes :

Initialising...
schema com.canonical.notify-osd not installed
schema com.canonical.desktop.interface not installed

(unity-tweak-tool:17880): GLib-GIO-ERROR **: Settings schema 'com.canonical.desktop.interface' is not installed

Trappe pour point d'arrêt et de trace

Corrected by installing overlay-scrollbar package.

Revision history for this message
j s n j (jsnj) wrote :

Yes. Pretty much the same in 97

Gtk-Message: Failed to load module "overlay-scrollbar"

** (unity-tweak-tool:23681): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist

** (unity-tweak-tool:23681): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
Initialising...
schema com.canonical.notify-osd not installed
schema com.canonical.desktop.interface not installed
Traceback (most recent call last):
  File "/usr/bin/unity-tweak-tool", line 57, in <module>
    UnityTweakTool.init()
  File "/usr/lib/python3/dist-packages/UnityTweakTool/__init__.py", line 119, in init
    connectpages()
  File "/usr/lib/python3/dist-packages/UnityTweakTool/__init__.py", line 56, in connectpages
    from UnityTweakTool.section.unity import Unity
  File "/usr/lib/python3/dist-packages/UnityTweakTool/section/unity.py", line 752, in <module>
    Unity.add_page(unitysettings)
  File "/usr/lib/python3/dist-packages/UnityTweakTool/section/skeletonpage.py", line 47, in add_page
    page.refresh()
  File "/usr/lib/python3/dist-packages/UnityTweakTool/elements/option.py", line 62, in refresh
    self.ho.refresh()
  File "/usr/lib/python3/dist-packages/UnityTweakTool/section/sphagetti/unity.py", line 399, in refresh
    if gsettings.notifyosd.get_string('multihead-mode') == 'follow-focus':
AttributeError: 'NoneType' object has no attribute 'get_string'

Revision history for this message
J Phani Mahesh (phanimahesh) wrote :

We have triggered a build without alowing launchpad to update the bzr repository and as a result, the package got built without the fixes. Apologies for the inconvenience.

Please wait a few hours for 0.0.4-0~99 to be available from the PPA.

Status changed to inprogress till a user confirms that the bug is fully fixed.

Changed in unity-tweak-tool:
status: Fix Committed → In Progress
Revision history for this message
j s n j (jsnj) wrote :

v~99 in 13.04:

Gtk-Message: Failed to load module "overlay-scrollbar"

** (unity-tweak-tool:27387): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist

** (unity-tweak-tool:27387): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
Initialising...
schema com.canonical.notify-osd not installed
schema com.canonical.desktop.interface not installed
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gi/overrides/Gtk.py", line 370, in _full_callback
    raise AttributeError('Handler %s not found' % handler_name)
AttributeError: Handler on_radio_active_monitor_toggled not found
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gi/overrides/Gtk.py", line 370, in _full_callback
    raise AttributeError('Handler %s not found' % handler_name)
AttributeError: Handler on_radio_all_monitors_toggled not found

(unity-tweak-tool:27387): GLib-GIO-ERROR **: Settings schema 'com.canonical.desktop.interface' is not installed

Trace/breakpoint trap

Revision history for this message
J Phani Mahesh (phanimahesh) wrote : Re: [Bug 1156337] Re: v0.0.4-0 Won't start in 13.04

This was reported as a seperate bug few hours ago and a fix has been
committed. This was a direct consequence of my patch yesterday which
overlooked certain aspects. Apologies for the inconvenience.
Please wait a few hours for the PPA to update and verify if the bug is
fully resolved with the next update. (v~102)
--
J Phani Mahesh

Revision history for this message
j s n j (jsnj) wrote :

v~102 in 13.04

unity-tweak-tool
Gtk-Message: Failed to load module "overlay-scrollbar"

** (unity-tweak-tool:23894): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist

** (unity-tweak-tool:23894): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
Initialising...
schema com.canonical.notify-osd not installed
schema com.canonical.desktop.interface not installed

(unity-tweak-tool:23894): GLib-GIO-ERROR **: Settings schema 'com.canonical.desktop.interface' is not installed

Trace/breakpoint trap

Revision history for this message
J Phani Mahesh (phanimahesh) wrote :

Can you attach the file "~/.config/unity-tweak-tool/debug.log" ?

It is a work-in-progress of a extremely verbose logging system but in
this case I believe it might hold some information of value.

Open the application, and once it crashes, locate the file and add it
as a bug attachment.

On Friday 22 March 2013 02:24:13 AM IST, j s n j wrote:
> v~102 in 13.04
>
> unity-tweak-tool
> Gtk-Message: Failed to load module "overlay-scrollbar"
>
> ** (unity-tweak-tool:23894): WARNING **: Can't load fallback CSS
> resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-
> fallback.css' does not exist
>
> ** (unity-tweak-tool:23894): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
> Initialising...
> schema com.canonical.notify-osd not installed
> schema com.canonical.desktop.interface not installed
>
> (unity-tweak-tool:23894): GLib-GIO-ERROR **: Settings schema
> 'com.canonical.desktop.interface' is not installed
>
> Trace/breakpoint trap
>

--
J Phani Mahesh
( http://phanimahesh.wordpress.com )

You deserve something amazing and free from restriction, you
deserve free software.(free not as in free beer but as in free speech)

This mail is digitally signed with Open PGP key id 0x62E2A632

Revision history for this message
j s n j (jsnj) wrote :
Download full text (161.5 KiB)

v~103 in 13.04 from debug.log after last attempt:

2013-03-23 03:34:05,367 - DEBUG :: UnityTweakTool.backends.gsettings - is_valid - Checking if schema org.compiz.unityshell with path /org/compiz/profiles/unity/plugins/unityshell/ has key launcher-hide-mode
2013-03-23 03:34:05,397 - DEBUG :: UnityTweakTool.elements.switch - __init__ - Initialised a switch with id sw_launcher_hidemode to control key launcher-hide-mode of type int in schema org.compiz.unityshell with path /org/compiz/profiles/unity/plugins/unityshell/
2013-03-23 03:34:05,399 - DEBUG :: UnityTweakTool.backends.gsettings - is_valid - Checking if schema org.compiz.unityshell with path /org/compiz/profiles/unity/plugins/unityshell/ has key autohide-animation
2013-03-23 03:34:05,399 - DEBUG :: UnityTweakTool.elements.cbox - __init__ - Initialised a ComboBox with id cbox_autohide_animation to control key autohide-animation of type int in schema org.compiz.unityshell with path /org/compiz/profiles/unity/plugins/unityshell/
2013-03-23 03:34:05,403 - DEBUG :: UnityTweakTool.backends.gsettings - is_valid - Checking if schema org.compiz.unityshell with path /org/compiz/profiles/unity/plugins/unityshell has key reveal-trigger
2013-03-23 03:34:05,403 - DEBUG :: UnityTweakTool.elements.radio - __init__ - Initialised a radiobutton with id radio_reveal_left to control key reveal-trigger of type int in schema org.compiz.unityshell with path /org/compiz/profiles/unity/plugins/unityshell
2013-03-23 03:34:05,403 - DEBUG :: UnityTweakTool.backends.gsettings - is_valid - Checking if schema org.compiz.unityshell with path /org/compiz/profiles/unity/plugins/unityshell has key reveal-trigger
2013-03-23 03:34:05,403 - DEBUG :: UnityTweakTool.elements.radio - __init__ - Initialised a radiobutton with id radio_reveal_topleft to control key reveal-trigger of type int in schema org.compiz.unityshell with path /org/compiz/profiles/unity/plugins/unityshell
2013-03-23 03:34:05,403 - DEBUG :: UnityTweakTool.backends.gsettings - is_valid - Checking if schema org.compiz.unityshell with path /org/compiz/profiles/unity/plugins/unityshell/ has key launcher-opacity
2013-03-23 03:34:05,404 - DEBUG :: UnityTweakTool.elements.switch - __init__ - Initialised a switch with id sw_launcher_transparent to control key launcher-opacity of type double in schema org.compiz.unityshell with path /org/compiz/profiles/unity/plugins/unityshell/
2013-03-23 03:34:05,404 - DEBUG :: UnityTweakTool.backends.gsettings - is_valid - Checking if schema org.compiz.unityshell with path /org/compiz/profiles/unity/plugins/unityshell has key num-launchers
2013-03-23 03:34:05,404 - DEBUG :: UnityTweakTool.elements.radio - __init__ - Initialised a radiobutton with id radio_launcher_visibility_all to control key num-launchers of type int in schema org.compiz.unityshell with path /org/compiz/profiles/unity/plugins/unityshell
2013-03-23 03:34:05,404 - DEBUG :: UnityTweakTool.backends.gsettings - is_valid - Checking if schema org.compiz.unityshell with path /org/compiz/profiles/unity/plugins/unityshell has key num-launchers
2013-03-23 03:34:05,404 - DEBUG :: UnityTweakTool.elements.radio - __init__ - Initialised...

Revision history for this message
J Phani Mahesh (phanimahesh) wrote :

Thanks for the debug log. It helped.

Can you
 - download the latest snapshot from
https://github.com/phanimahesh/unity-tweak-tool/archive/rewrite.zip
 - Extract it somewhere, eg : ~/unity-tweak-tool (~ is your Home
directory)
 - open a terminal, and run the following commands
     cd ~/unity-tweak-tool
     python3 develtest.py

If it gives a permission error, run
     chmod +x develtest.py
     chmod +x unity-tweak-tool
and then
     python3 develtest.py

It opens Unity-Tweak-Tool running the snapshot you just downloaded. I
am positively sure that the bug is fixed in my last commit. Please
confirm.

(Ignore if certain icons on the overview tab appear missing. That can
happen if you run the development version without installing utt, and
is not a bug. )

Revision history for this message
j s n j (jsnj) wrote :

Terminal output from the downloaded rewrite. Also, attached is copy of debug info from this attempt.

~/unity-tweak-tool$ python3 develtest.py
Gtk-Message: Failed to load module "overlay-scrollbar"

** (unity-tweak-tool:18819): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist

** (unity-tweak-tool:18819): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
Initialising...
schema com.canonical.notify-osd not installed
schema com.canonical.desktop.interface not installed

(unity-tweak-tool:18819): GLib-GIO-ERROR **: Settings schema 'com.canonical.desktop.interface' is not installed

Trace/breakpoint trap
user@user-DX4860-U13:~/unity-tweak-tool$ chmod +x develtest.py
user@user-DX4860-U13:~/unity-tweak-tool$ chmod +x unity-tweak-tool
user@user-DX4860-U13:~/unity-tweak-tool$ python3 develtest.py
Gtk-Message: Failed to load module "overlay-scrollbar"

** (unity-tweak-tool:18844): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist

** (unity-tweak-tool:18844): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
Initialising...
schema com.canonical.notify-osd not installed
schema com.canonical.desktop.interface not installed

(unity-tweak-tool:18844): GLib-GIO-ERROR **: Settings schema 'com.canonical.desktop.interface' is not installed

Trace/breakpoint trap

Revision history for this message
J Phani Mahesh (phanimahesh) wrote :

That looks unusual to me. I have removed overlay-scrollbar package to
force the application to crash. The application crashes with the version
in the PPA but does not crash with the development snapshot.

It is possible that the installed version is interfering somehow. Please
allow the PPA to update, then update your system, and see if the problem
persists. Alternately, you can uninstall unity-tweak-tool and then try
running the development snapshot.

Thank you for your co-operation and apologies for the inconvenience. If
you would like a quick workaround, installing overlay-scrollbar package
should allow the application to open normally without crashing.

--
J Phani Mahesh
( http://phanimahesh.wordpress.com )

You deserve something amazing and free from restriction, you
deserve free software.(free not as in free beer but as in free speech)

This mail is digitally signed with Open PGP key id 0x62E2A632

Revision history for this message
j s n j (jsnj) wrote :

Appears to be fixed in v~104 in 13.04.

Revision history for this message
J Phani Mahesh (phanimahesh) wrote :

Thanks. Marking this fixreleased for PPA and fix committed for package
in universe

 affects unity-tweak-tool
 status fixreleased

 affects ubuntu/unity-tweak-tool
 status fixcommitted
 assignee phanimahesh

Changed in unity-tweak-tool:
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity-tweak-tool - 0.0.4

---------------
unity-tweak-tool (0.0.4) raring; urgency=medium

  [ Barneedhar Vigneshwar ]
  * New upstream release (LP: #1165141)
  * data/windowmanager.ui
    - Fix missing signal in the auto-raise switch (LP: #1160782)
  * UnityTweakTool/section/sphagetti/theme.py
    - Fix KeyError when fetching window themes (LP: #1146122)
  * UnityTweakTool/section/unity.py
    - Fix show-desktop switch (LP: #1156266)
    - Fix 'switch between workspace' switch (LP: #1156236)

  [ J Phani Mahesh ]
  * debian/source_unity-tweak-tool.py
    - Update Apport hook to file crash bugs against the package by default
  * setup.py
    - Install translated pot files
  * unity-tweak-tool
    - Fixed and renamed -r parameter to --reset-unity in the wrapper
  * UnityTweakTool/__init__.py
    - Prevent multiple instances using dbus
  * UnityTweakTool/elements/radio.py
    - Fix AssertionError in __init__() (LP: #1156201)
    - Fix AssertionError due to missing overlay-scrollbar package (LP: #1156337)
  * UnityTweakTool/section/sphagetti/compiz.py
    - Fix resetting transparency values (LP: #1099067)
  * UnityTweakTool/section/sphagetti/unity.py
    - Fix AttributeError in refresh(): 'NoneType' object has no attribute 'get_boolean' (LP: #1155331)

  [Sam Hewitt]
  * debian/control
    - Added dependency on python3-cairo (LP: #1156789)
  * UnityTweakTool/section/sphagetti/unity.py
    - Fixed unresponsive 'battery-life' switch (LP: #1129262)
 -- Barneedhar Vigneshwar <email address hidden> Fri, 05 Apr 2013 23:05:49 +0530

Changed in unity-tweak-tool (Ubuntu):
status: Fix Committed → Fix Released
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.