id

47

title
Primitivus crash when we are on a disconnected contact
reporter
Goffi
created
05/07/2013, 09:35
updated
21/09/2013, 23:53
labels
Primitivus
type
bug
status
closed
priority
normal
milestone
0.7
severity
major
body

To reproduce: - on contact panel, show hidden contacts (M-d) - select a disconnected contact - hit M-d again to hide disconnected contact ==> crash Traceback: Traceback (most recent call last): File "./primitivus", line 552, in <module> sat.start() File "./primitivus", line 110, in start self.loop.run() File "/usr/local/lib/python2.7/dist-packages/urwid/main_loop.py", line 272, in run self.screen.run_wrapper(self._run) File "/usr/local/lib/python2.7/dist-packages/urwid/raw_display.py", line 242, in run_wrapper return fn() File "/usr/local/lib/python2.7/dist-packages/urwid/main_loop.py", line 337, in _run self.event_loop.run() File "/usr/local/lib/python2.7/dist-packages/urwid/main_loop.py", line 1014, in wrapper return f(*args,**kargs) File "/usr/local/lib/python2.7/dist-packages/urwid/main_loop.py", line 881, in io_callback callback() File "/usr/local/lib/python2.7/dist-packages/urwid/main_loop.py", line 388, in _update self.process_input(keys) File "/usr/local/lib/python2.7/dist-packages/urwid/main_loop.py", line 488, in process_input k = self._topmost_widget.keypress(self.screen_size, k) File "/home/goffi/lib/urwid_satext/sat_widgets.py", line 972, in keypress ret = urwid.Frame.keypress(self, size, key) File "/usr/local/lib/python2.7/dist-packages/urwid/container.py", line 1103, in keypress return self.body.keypress( (maxcol, remaining), key ) File "/usr/local/lib/python2.7/dist-packages/urwid/container.py", line 2241, in keypress key = w.keypress((mc,) + size[1:], key) File "/home/goffi/sat_principal/lib/sat_frontends/primitivus/contact_list.py", line 65, in keypress self.update() File "/home/goffi/sat_principal/lib/sat_frontends/primitivus/contact_list.py", line 53, in update self.frame.body.set_focus(position) File "/usr/local/lib/python2.7/dist-packages/urwid/listbox.py", line 567, in set_focus self.body.set_focus(position) File "/usr/local/lib/python2.7/dist-packages/urwid/listbox.py", line 178, in set_focus raise IndexError, "No widget at position %s" % (position,) IndexError: No widget at position 85

comments_uri
xmpp:pubsub.goffi.org?;node=urn%3Axmpp%3Amicroblog%3A0%3Acomments%2Forg.salut-a-toi.tickets%3A0_47

Click to reduce…

Changeset f7804c52c754 in sat. http://repos.goffi.org/sat/rev/f7804c52c754 primitivus: disconnected contact crash fix fix IndexError when selecting a contact and hiding disconnected ones fix bug 47

Click to expand… Click to reduce…

You are not logged. You need to log in to comment.