[Nightlies]ubuntuone-preferences crashed with ResourceConflict in _request()

Bug #549920 reported by Duane Hinnen
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Fix Released
Undecided
Unassigned

Bug Description

Clicking System > Preferencces > Ubuntu One while already having a U1 preferences panel open triggered this crash.

To Reproduce:
Click System > Preferences > ubuntu One

optional: lose your preferences window behind your browser so you forget its open.

Click System > Preferences > Ubuntu One (while the first instance is still open)

What I expected to happen. One of three things:
For the first instance to quit.
For a second preferences window to open, so i would have two U1 preferences windows.
Nothing. Trying to open a Ubuntu One preferences while its already open does nothing (maybe bring the application into focus)

Launching the second preferences window in the Terminal:
duanedesign@duanedesign-laptop:~$ ubuntuone-preferences
Traceback (most recent call last):
  File "/usr/bin/ubuntuone-preferences", line 620, in __db_check_toggled
    self.toggle_db_sync(dbname, not checkbutton.get_active())
  File "/usr/bin/ubuntuone-preferences", line 613, in toggle_db_sync
    self.dcouch.replicate(dbname)
  File "/usr/lib/python2.6/dist-packages/desktopcouch/replication_services/ubuntuone.py", line 181, in replicate
    self._update("remove", db_name)
  File "/usr/lib/python2.6/dist-packages/desktopcouch/replication_services/ubuntuone.py", line 173, in _update
    self.management_db.put_record(self.pairing_record)
  File "/usr/lib/python2.6/dist-packages/desktopcouch/records/server_base.py", line 200, in put_record
    self.db[record.record_id] = record._data
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 327, in __setitem__
    resp, data = self.resource.put(id, content=content)
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 989, in put
    **params)
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 1031, in _request
    raise ResourceConflict(error)
couchdb.client.ResourceConflict: ('conflict', 'Document update conflict.')
Traceback (most recent call last):
  File "/usr/bin/ubuntuone-preferences", line 620, in __db_check_toggled
    self.toggle_db_sync(dbname, not checkbutton.get_active())
  File "/usr/bin/ubuntuone-preferences", line 613, in toggle_db_sync
    self.dcouch.replicate(dbname)
  File "/usr/lib/python2.6/dist-packages/desktopcouch/replication_services/ubuntuone.py", line 181, in replicate
    self._update("remove", db_name)
  File "/usr/lib/python2.6/dist-packages/desktopcouch/replication_services/ubuntuone.py", line 173, in _update
    self.management_db.put_record(self.pairing_record)
  File "/usr/lib/python2.6/dist-packages/desktopcouch/records/server_base.py", line 200, in put_record
    self.db[record.record_id] = record._data
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 327, in __setitem__
    resp, data = self.resource.put(id, content=content)
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 989, in put
    **params)
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 1031, in _request
    raise ResourceConflict(error)
couchdb.client.ResourceConflict: ('conflict', 'Document update conflict.')

ProblemType: Crash
.home.duanedesign..config.ubuntuone.ubuntuone.client.conf:
 [ubuntuone]
 connected = True
 connect = 2
 show_applet = 0
 bookmarked = True
Architecture: amd64
CrashDB: ubuntuone
Date: Sat Mar 27 17:33:15 2010
DistroRelease: Ubuntu 10.04
ExecutablePath: /usr/bin/ubuntuone-preferences
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
InterpreterPath: /usr/bin/python2.6
NonfreeKernelModules: nvidia
Package: ubuntuone-client-gnome 1.1.4+r452-0ubuntu2~ppa2~lucid
ProcCmdline: /usr/bin/python /usr/bin/ubuntuone-preferences
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/zsh
ProcVersionSignature: Ubuntu 2.6.32-17.26-generic 2.6.32.10+drm33.1
PythonArgs: ['/usr/bin/ubuntuone-preferences']
SourcePackage: ubuntuone-client
ThirdParty: True
Title: ubuntuone-preferences crashed with ResourceConflict in _request()
Uname: Linux 2.6.32-17-generic x86_64
UserGroups: adm admin audio cdrom dialout lpadmin netdev plugdev pulse pulse-access sambashare vboxusers

Revision history for this message
Duane Hinnen (duanedesign) wrote :
visibility: private → public
Revision history for this message
Joshua Hoover (joshuahoover) wrote :

I just tested this with 1.3+r523-0ubuntu1~ppa1~lucid and it worked as expected: the existing Ubuntu One Preferences window came to the front and no crash occurred. I tested this opening the second instance from both the terminal and from the menu.

Duane, if you're still seeing this issue, let me know. For now I'm marking as "Fix Released".

Thanks,

Joshua

Changed in ubuntuone-client:
status: New → 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.