Accomplishments viewer crashes if you close the U1 sign-up dialog without signing up

Bug #1049300 reported by Matt Fischer on 2012-09-11
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Accomplishments Viewer
High
Matt Fischer

Bug Description

If you start the accomplishments viewer from a "clean" setup per the 0.3 testing wiki page, you get a window asking you to sign up for U1. I closed that window. Then I clicked on "check for u1 account", again a window popped- up asking me to sign-up for (not sign into) U1. I closed that window too and then closed the accomplishments-viewer. Now when I re-open the viewer I get a crash. This is reproducible.

mfisch@caprica:~$ accomplishments-viewer
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `Window' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `EditExtrainfoDialog' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)
Traceback (most recent call last):
  File "/usr/bin/accomplishments-viewer", line 47, in <module>
    accomplishments_viewer.main()
  File "/usr/lib/python2.7/dist-packages/accomplishments_viewer/__init__.py", line 51, in main
    window = AccomplishmentsViewerWindow.AccomplishmentsViewerWindow()
  File "/usr/lib/python2.7/dist-packages/accomplishments_viewer_lib/Window.py", line 48, in __new__
    new_object.finish_initializing(builder)
  File "/usr/lib/python2.7/dist-packages/accomplishments_viewer/AccomplishmentsViewerWindow.py", line 237, in finish_initializing
    self.finalise_daemon_connection()
  File "/usr/lib/python2.7/dist-packages/accomplishments_viewer/AccomplishmentsViewerWindow.py", line 501, in finalise_daemon_connection
    self.check_and_ask_for_info()
  File "/usr/lib/python2.7/dist-packages/accomplishments_viewer/AccomplishmentsViewerWindow.py", line 353, in check_and_ask_for_info
    self.approve_u1_trophies()
  File "/usr/lib/python2.7/dist-packages/accomplishments_viewer/AccomplishmentsViewerWindow.py", line 686, in approve_u1_trophies
    self.u1_button.set_label("Check for Ubuntu One account")
AttributeError: 'AccomplishmentsViewerWindow' object has no attribute 'u1_button'

Jason Robinson (jaywink) wrote :

Confirmed, same error here

Matt Fischer (mfisch) wrote :

Update: A simpler repro case.

1) Kill the daemon and close the viewer.
2) Open U1, remove your local device from U1, this signs you out.
3) Start accomplishments-viewer, close it.
4) Start accomplishments-viewer again.
5) It crashes.

Matt Fischer (mfisch) on 2012-09-13
Changed in ubuntu-accomplishments-viewer:
status: New → In Progress
assignee: nobody → Matt Fischer (mfisch)
Matt Fischer (mfisch) on 2012-09-13
Changed in ubuntu-accomplishments-viewer:
importance: Undecided → High
milestone: none → 0.3
Matt Fischer (mfisch) on 2012-09-13
Changed in ubuntu-accomplishments-viewer:
status: In Progress → Fix Committed
Changed in ubuntu-accomplishments-viewer:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers