migrate_favorites.py crashed with GError in __main__: Bad key or directory name: "/desktop/unity/launcher/favorites//type": Can't have two slashes '/' in a row

Bug #716382 reported by Jude Cooks
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unity
Fix Released
Medium
Didier Roche-Tolomelli
unity (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: unity

Upgrade from 10.10 to 11.04 resulting in this script crashing on first boot after upgrade completed.

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: unity-common 3.4.0-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-2.29-generic 2.6.38-rc3
Uname: Linux 2.6.38-2-generic i686
Architecture: i386
CheckboxSubmission: 382fc2d94a87e02c6127f5f4800c2f6c
CheckboxSystem: b62ae224500b03a9fc2c9b6caf3feb14
CompizPlugins: [core,bailer,detection,composite,opengl,decor,mousepoll,vpswitch,regex,animation,snap,expo,move,compiztoolbox,place,grid,gnomecompat,wall,ezoom,workarounds,staticswitcher,resize,fade,scale,session,unityshell]
Date: Thu Feb 10 07:04:47 2011
ExecutablePath: /usr/lib/unity/migrate_favorites.py
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/lib/unity/migrate_favorites.py
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 LC_MESSAGES=en_US.utf8
 SHELL=/bin/bash
PythonArgs: ['/usr/lib/unity/migrate_favorites.py']
SourcePackage: unity
Title: migrate_favorites.py crashed with GError in __main__: Bad key or directory name: "/desktop/unity/launcher/favorites//type": Can't have two slashes '/' in a row
Traceback:
 Traceback (most recent call last):
   File "/usr/lib/unity/migrate_favorites.py", line 174, in <module>
     if (client.get_string('%s/type' % candidate_path) == 'application'):
 GError: Bad key or directory name: "/desktop/unity/launcher/favorites//type": Can't have two slashes '/' in a row
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Related branches

Revision history for this message
Jude Cooks (judecooks) wrote :
visibility: private → public
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Thanks for your bug report and help to make ubuntu better.
oh, interesting, can you please paste ~/.local/share/unity/migration_script.log if you have one?

also gconftool-2 -R /desktop/unity/launcher can be of help :)

Changed in unity (Ubuntu):
status: New → Confirmed
Changed in unity:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Didier Roche (didrocks)
Changed in unity (Ubuntu):
importance: Undecided → Medium
Changed in unity:
milestone: none → 3.4.4
Revision history for this message
Jude Cooks (judecooks) wrote :

gconf tool output:

:~/.local/share/unity$ gconftool-2 -R /desktop/unity/launcher
 /desktop/unity/launcher/favorites:
  favorites_list = [cheese,empathy,home,yelp,ubuntu-software-center,rhythmbox,launch-applications,app-thunderbird.desktop,app-gnome-terminal.desktop,app-firefox.desktop,app-cheese.desktop,,app-chromium-browser.desktop]
  /desktop/unity/launcher/favorites/yelp:
   priority = 5.0001001358032227
  /desktop/unity/launcher/favorites/cheese:
   priority = 2.0001001358032227
  /desktop/unity/launcher/favorites/app-empathy.desktop:
   priority = 1
  /desktop/unity/launcher/favorites/ubuntu-software-center:
   priority = 3.0001001358032227
  /desktop/unity/launcher/favorites/app-evolution.desktop:
   priority = 15
  /desktop/unity/launcher/favorites/app-cheese.desktop:
   priority = 1
   desktop_file = /usr/share/applications/cheese.desktop
   type = application
  /desktop/unity/launcher/favorites/app-update-manager.desktop:
   priority = 12
  /desktop/unity/launcher/favorites/app-ubuntu-software-center.desktop:
   priority = 7
  /desktop/unity/launcher/favorites/app-chromium-browser.desktop:
   priority = 5
   desktop_file = /usr/share/applications/chromium-browser.desktop
   type = application
  /desktop/unity/launcher/favorites/app-time.desktop:
   priority = 11
  /desktop/unity/launcher/favorites/app-firefox.desktop:
   priority = 4
   desktop_file = /usr/share/applications/firefox.desktop
   type = application
  /desktop/unity/launcher/favorites/app-gnome-terminal.desktop:
   priority = 3
   desktop_file = /usr/share/applications/gnome-terminal.desktop
   type = application
  /desktop/unity/launcher/favorites/launch-applications:
   priority = 8.0001001358032227
  /desktop/unity/launcher/favorites/app-apport-gtk-mime.desktop:
   priority = 10
  /desktop/unity/launcher/favorites/app-yelp.desktop:
   priority = 3
  /desktop/unity/launcher/favorites/app-openoffice.org-writer.desktop:
   priority = 11
  /desktop/unity/launcher/favorites/app-rhythmbox.desktop:
   priority = 5
  /desktop/unity/launcher/favorites/app-gedit.desktop:
   priority = 11
  /desktop/unity/launcher/favorites/home:
   priority = 7.0001001358032227
  /desktop/unity/launcher/favorites/app-launch-applications.desktop:
   priority = 6
  /desktop/unity/launcher/favorites/rhythmbox:
   priority = 1.0001000165939331
  /desktop/unity/launcher/favorites/app-thunderbird.desktop:
   priority = 2
   desktop_file = /usr/share/applications/thunderbird.desktop
   type = application
  /desktop/unity/launcher/favorites/empathy:
   priority = 6.0001001358032227
  /desktop/unity/launcher/favorites/app-gnome-system-monitor.desktop:
   priority = 14
  /desktop/unity/launcher/favorites/app-nautilus.desktop:
   priority = 6
  /desktop/unity/launcher/favorites/app-synaptic-kde.desktop:
   priority = 12
  /desktop/unity/launcher/favorites/app-evince.desktop:
   priority = 14

tags: removed: need-duplicate-check
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Thanks a lot!
Waow, that's surprising that unity mutter can have some "empty" launcher. The errors comes from:
favorites_list = [cheese,empathy,home,yelp,ubuntu-software-center,rhythmbox,launch-applications,app-thunderbird.desktop,app-gnome-terminal.desktop,app-firefox.desktop,app-cheese.desktop,,app-chromium-browser.desktop]

(see the ,,)

Ok, I've added some security for that in the migration tools (for unity mutter, netbook-launcher and gnome-panel). That will be part of next release.
Thanks a lot for your report :)

Changed in unity:
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity - 3.4.4-0ubuntu1

---------------
unity (3.4.4-0ubuntu1) natty; urgency=low

  * New upstream release:
    - add systray support (LP: #655140, #596879)
    - Dragging and holding a selection over an entry in the Launcher should
      spread out windows belonging to that application (LP: #607796)
    - Unity shouldn't allow to Quit itself (LP: #705536)
    - Launcher should not be locked in place until the pointer is actually in
      the corner (LP: #706146)
    - Top Panel does not respect GTK theme (LP: #663524)
    - Update Unity-Panel Style implementation (LP: #685830)
    - Add keyboard shortcut for the panel (LP: #701663)
    - clicking on the ubuntu logo doesn't close the dash dialog (LP: #708762)
    - "Escape" doesn't close the dash screen (LP: #711195)
    - migrate_favorites.py crashed with GError in __main__: Bad key or
       directory name: "/desktop/unity/launcher/favorites//type": Can't have
       two slashes '/' in a row (LP: #716382)
    - Icon state does not revert when remote libunity user closes (LP: #716863)
    - transparency in places window a bit too high (LP: #718357)
    - Navigating between menus briefly gives focus back to applications
      (LP: #690714)
    - pace on cursor navigation mode should act like middle click (LP: #717213)
    - Do not switch to fallback menu on mouse-over (LP: #703555)
    - Fix the panel service and menus atk object hierarchy (LP: #704350)
    - Expose home panel button via ATK (LP: #715295)
  * debian/source_unity.py: enhanced apport hook for incoming compiz hook
  * debian/control:
    - bump nux and libunity-misc dep
 -- Didier Roche <email address hidden> Thu, 17 Feb 2011 20:37:42 +0100

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