crashes after clicking manage account

Bug #567223 reported by arjun
70
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Status tracked in Trunk
Stable-1-2
Fix Released
Critical
dobey
Trunk
Fix Released
Critical
dobey
ubuntuone-client (Ubuntu)
Fix Released
Critical
dobey
Lucid
Fix Released
Critical
dobey

Bug Description

ubuntu one client crashes after clicking on manage account (on 10.04_64)
terminal output:

/usr/bin/ubuntuone-preferences:1143: GtkWarning: Error parsing gtk-icon-sizes string:
 'panel-menu=24,24
panel=20,20
gtk-button=18,18
gtk-large-toolbar=24,24'
  prefs_dialog.show()
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/bin/ubuntuone-preferences", line 162, in do_rest_request
    callback(result)
  File "/usr/bin/ubuntuone-preferences", line 348, in parse_devices
    self.error(error)
  File "/usr/bin/ubuntuone-preferences", line 304, in error
    gtk.DIALOG_DESTROY_WITH_PARENT | gtk.MODAL,
AttributeError: 'module' object has no attribute 'MODAL'

and this is what i got when i ran it again after some time

arjun@arjun-desktop:/$ ubuntuone-preferences
/usr/bin/ubuntuone-preferences:1143: GtkWarning: Error parsing gtk-icon-sizes string:
 'panel-menu=24,24
panel=20,20
gtk-button=18,18
gtk-large-toolbar=24,24'
  prefs_dialog.show()
Apache CouchDB has started, time to relax.
Browse your desktop CouchDB at file:///home/arjun/.local/share/desktop-couch/couchdb.html
ERROR:ubuntuone-preferences:[Failure instance: Traceback (failure with no frames): <class 'dbus.exceptions.DBusException'>: org.freedesktop.DBus.Python.KeyError: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/dbus_interface.py", line 1307, in get_info
    mdobj = self.fs.get_by_path(path.encode('utf-8'))
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/filesystem_manager.py", line 549, in get_by_path
    mdid = self._idx_path[path]
KeyError: '/home/arjun/.ubuntuone/Purchased from Ubuntu One'

]
ERROR:ubuntuone-preferences:Got empty result for devices list.
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/bin/ubuntuone-preferences", line 162, in do_rest_request
    callback(result)
  File "/usr/bin/ubuntuone-preferences", line 348, in parse_devices
    self.error(error)
  File "/usr/bin/ubuntuone-preferences", line 304, in error
    gtk.DIALOG_DESTROY_WITH_PARENT | gtk.MODAL,
AttributeError: 'module' object has no attribute 'MODAL'

--------------------------------

STEPS TO REPRODUCE:
I was unable to get this error in testing so here is how I reproduced the bug:

1. Edit /etc/hosts and add:
127.0.0.1 one.ubuntu.com
2. $ ubuntuone-preferences

Expected result: Error messaage pops up: [Errno 111] Connection refused

Related branches

arjun (arjunak01)
description: updated
Revision history for this message
Yiannis Petevis (y-petevis) wrote :

Had the same problem here. For a workaround open a terminal and do the following:
gksu gedit /usr/bin/ubuntuone-preferences

find line 304 and change gtk.MODAL to gtk.DIALOG_MODAL

Save the file. Kill the hanging ubuntuone-prefererences process and restart. This time you will get a popup dialog with the error. Note that the dialog does not close if you click the close button; you have to close the popup from the window close button.

dobey (dobey)
Changed in ubuntuone-client:
assignee: nobody → Rodney Dawes (dobey)
importance: Undecided → Critical
status: New → In Progress
Changed in ubuntuone-client (Ubuntu):
assignee: nobody → Rodney Dawes (dobey)
importance: Undecided → Critical
milestone: none → ubuntu-10.04
status: New → In Progress
tags: added: desktop+ u1-lucid
dobey (dobey)
Changed in ubuntuone-client:
status: In Progress → Fix Committed
dobey (dobey)
Changed in ubuntuone-client (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Paul Leger (pleger) wrote :

I have the same problem here in ubuntu 10.04 rc. Is the fix in the repository of ubuntu?

Revision history for this message
Fabio Bossi (fabio-bossi-deactivatedaccount) wrote :

PLEASE release this fix on time for the final release.

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted ubuntuone-client into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in ubuntuone-client (Ubuntu):
milestone: ubuntu-10.04 → lucid-updates
tags: added: verification-needed
description: updated
Revision history for this message
Joshua Hoover (joshuahoover) wrote :

Test passed. Tested proposed update (ubuntuone-client 1.2.1-0ubuntu2) following the steps to reproduce. Ubuntu One Preferences opened properly and then showed the expected error message (rather than the prefs not opening and throwing the "AttributeError: 'module' object has no attribute 'MODAL'" exception).

description: updated
Revision history for this message
Mitch Towner (kermiac) wrote :

I can confirm this bug after adding "127.0.0.1 one.ubuntu.com" to /etc/hosts

$ apt-cache policy ubuntuone-client
ubuntuone-client:
  Installed: 1.2.1-0ubuntu1
  Candidate: 1.2.1-0ubuntu1
  Version table:
 *** 1.2.1-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

Terminal Output:
================
$ ubuntuone-preferences
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/bin/ubuntuone-preferences", line 162, in do_rest_request
    callback(result)
  File "/usr/bin/ubuntuone-preferences", line 348, in parse_devices
    self.error(error)
  File "/usr/bin/ubuntuone-preferences", line 304, in error
    gtk.DIALOG_DESTROY_WITH_PARENT | gtk.MODAL,
AttributeError: 'module' object has no attribute 'MODAL'

ubuntuone-preferences hangs & the only way to kill it is with "killall ubuntuone-preferences"

-----------------------------------------------

I applied the updated package from -proposed

$ apt-cache policy ubuntuone-client
ubuntuone-client:
  Installed: 1.2.1-0ubuntu2
  Candidate: 1.2.1-0ubuntu2
  Version table:
 *** 1.2.1-0ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ lucid-proposed/main Packages
        100 /var/lib/dpkg/status
     1.2.1-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ lucid/main Packages

I can now confirm that ubuntuone-preferences displays the expected error message (see http://imgbin.org/images/1540.png) & I am able to close ubuntuone-preferences sanely (without requiring killall ubuntuone-preferences).

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntuone-client - 1.2.1-0ubuntu2

---------------
ubuntuone-client (1.2.1-0ubuntu2) lucid-proposed; urgency=low

  * Add fix-567223.patch.
    - Fixes gtk.MODAL usage and dialog closure. (LP: #567223)
 -- Rodney Dawes <email address hidden> Wed, 21 Apr 2010 16:38:34 -0400

Changed in ubuntuone-client (Ubuntu Lucid):
status: Fix Committed → Fix Released
Revision history for this message
dobey (dobey) wrote :

Sorry LP, but I'm pretty sure -proposed doesn't really count as "fix released" here. :)

This needs to be pushed to -updates.

Changed in ubuntuone-client (Ubuntu Lucid):
status: Fix Released → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Right, lucid-proposed was copied to maverick, not lucid-updates yet.

Changed in ubuntuone-client (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntuone-client - 1.2.1-0ubuntu2

---------------
ubuntuone-client (1.2.1-0ubuntu2) lucid-proposed; urgency=low

  * Add fix-567223.patch.
    - Fixes gtk.MODAL usage and dialog closure. (LP: #567223)
 -- Rodney Dawes <email address hidden> Wed, 21 Apr 2010 16:38:34 -0400

Changed in ubuntuone-client (Ubuntu Lucid):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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