Unity-tweak crashes at start

Bug #1258536 reported by moma
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Unity Tweak Tool
Fix Released
Medium
Unassigned

Bug Description

I installed some extra (GTK) themes and wanted to change the theme in UTT. The program crashes at start. I do not know if this has something to do with the themes. Propably not!

$ unity-tweak-tool

Traceback (most recent call last):
  File "/usr/bin/unity-tweak-tool", line 72, in <module>
    UnityTweakTool.Application()
  File "/usr/lib/python3/dist-packages/UnityTweakTool/__init__.py", line 79, in __init__
    executable_name=cmd_old.split('\x00')[1]
IndexError: list index out of range
----------

$ apt-cache show unity-tweak-tool

Package: unity-tweak-tool
Priority: optional
Section: universe/gnome
Installed-Size: 2549
Maintainer: Barneedhar Vigneshwar <email address hidden>
Architecture: all
Version: 0.0.6
Filename: pool/universe/u/unity-tweak-tool/unity-tweak-tool_0.0.6_all.deb

Revision history for this message
Torrent (bizzshack) wrote :

Same thing happened to me. I did apt-get remove and purge and reinstalled but still got the same error.
Mine also happened after I had played around with some gtk themes as well as a fresh install of Ubuntu tweak. don't know if they're related.

Revision history for this message
Torrent (bizzshack) wrote :

I managed to "fix" the bug, at least on my end. I went into the __init__.py file and fooled with it. here's what i did, I commented out the code from line 79 through to 89 and bam, Unity Tweak Tool is working once again. You should try it..

Revision history for this message
moma (osmoma) wrote :

Ok, thanks.
I will try it.

Let's hope they fix the bug for next version.

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

This has nothing to do with your themes, that I can be sure of.

I'll push a fix in a day or two. I still don't know why this happens, it shouldn't, but i'll take care of the edge case anyway.

Changed in unity-tweak-tool:
importance: Undecided → Low
importance: Low → Medium
Revision history for this message
Andy Underhill (andy-jjcftv6wldnzq84cskyg) wrote :

This problem appears to occur when the tweak tool is checking to see if another instance is running.

If you are sure that another one isn't running (e.g. your system crashed whilst tweak tool was running) check for the file

~./cache/unity-tweak-tool/pid.lockfile

If it exists and you are certain that no other unity tweak tool is running then delete that file.

Revision history for this message
lpan (antovar) wrote :

This is not a solution because the program keeps trying to use index 1 in an array thin only an element.

I have replace [1] by [0] in the offending line and now it works.

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

No, if the pid in that other file belongs to UTT, then that array will have a second element and that is what needs to be checked. But it is possible that the pid is stale and now a different program is running with that pid, so that file just has to be deleted on error and UTT has to be started normally.

Just fixed in repo. PPA will update in few hours.

Changed in unity-tweak-tool:
status: New → Fix Committed
Changed in unity-tweak-tool:
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.