Opened 15 years ago

Closed 11 years ago

Last modified 11 years ago

#203 closed defect (fixed)

traceback on accepting invitation

Reported by: sascha_silbe Owned by: marcopg
Priority: minor Milestone:
Component: Sugar Version: 0.82.x
Severity: Minor Keywords:
Cc: Distribution/OS: Debian
Bug Status: New


Priority set to minor because there's no apparent effect except for the traceback itself.
Also filed as Debian bug #511894 [1].


Upon accepting an invitation, the following traceback will occur (on the machine accepting the invitation):

Traceback (most recent call last):

File "/usr/lib/python2.5/site-packages/sugar/graphics/", line 66, in _next_frame_cb

animation.do_frame(current_time, self._duration, self._easing)

File "/usr/lib/python2.5/site-packages/sugar/graphics/", line 92, in do_frame


File "/usr/lib/python2.5/site-packages/sugar/graphics/", line 728, in next_frame


File "/usr/lib/python2.5/site-packages/sugar/graphics/", line 564, in _hide

AttributeError: 'NoneType' object has no attribute 'set_active'

This seems to be due to calling _hide again after destroy_cb. Custom debugging output, filtered on the instance the traceback occured on:

init: self = <ActivityInvitePalette object at 0x9c296e4 (SugarPalette at 0xa01c2e0)>, = <_Menu object at 0x9c29acc (SugarPaletteMenu at 0xa027210)>
_hide: self = <ActivityInvitePalette object at 0x9c296e4 (SugarPalette at 0xa01c2e0)>, = <_Menu object at 0x9c29acc (SugarPaletteMenu at 0xa027210)>
destroy_cb: self = <ActivityInvitePalette object at 0x9c296e4 (SugarPalette at 0xa01c2e0)>, = None
_hide: self = <ActivityInvitePalette object at 0x9c296e4 (SugarPalette at 0xa01c2e0)>, = None

Stack trace from the destroy_cb call:

File "/usr/bin/sugar-shell", line 32, in <module>


File "/usr/share/sugar/shell/", line 151, in main


File "/usr/share/sugar/shell/view/frame/", line 364, in invite_clicked_cb


File "/usr/share/sugar/shell/model/", line 103, in remove_invite

self.emit('invite-removed', invite)

File "/usr/share/sugar/shell/view/frame/", line 372, in invite_removed_cb


File "/usr/share/sugar/shell/view/frame/", line 392, in _remove_invite


File "/usr/lib/python2.5/site-packages/sugar/graphics/", line 75, in destroy_cb


File "/usr/lib/python2.5/site-packages/sugar/graphics/", line 975, in detach


File "/usr/lib/python2.5/site-packages/sugar/graphics/", line 772, in detach


File "/usr/lib/python2.5/site-packages/sugar/graphics/", line 284, in destroy_cb


The self._palette._hide() call belongs to _PopdownAnimation:

class _PopdownAnimation(animator.Animation):

def init(self, palette):

animator.Animation.init(self, 0.0, 1.0)
self._palette = palette

def next_frame(self, current):

if current == 1.0:


Looks like this animation object should be destroyed as well when removing the invitation.

Change History (5)

comment:1 Changed 15 years ago by marcopg

  • Bug Status set to Unconfimed
  • Distribution/OS set to Unspecified
  • Milestone set to 0.84
  • Severity set to Minor

comment:2 Changed 15 years ago by garycmartin

  • Bug Status changed from Unconfimed to New
  • Distribution/OS changed from Unspecified to Debian

comment:3 Changed 14 years ago by tomeu

I think Aleksey fixed this one recently, can someone check?

comment:4 Changed 11 years ago by godiard

  • Resolution set to fixed
  • Status changed from new to closed

comment:5 Changed 11 years ago by godiard

  • Milestone 0.84 deleted

Milestone 0.84 deleted

Note: See TracTickets for help on using tickets.