inducer/pudb — Issue #22: Crash when running with urwid 1.0.0
Author: gooli
Created: 2011-11-08 17:21:20+00:00
State: open

A recent update to urwid (version 1.0.0) causes a crash in pudb (version 0.9.9.2 works correctly):

Traceback (most recent call last):
File "pudb/__init__.py", line 62, in runscript
dbg._runscript(mainpyfile)
File "pudb/debugger.py", line 276, in _runscript
self.run(statement, globals=globals_, locals=locals_)
File "/usr/local/lib/python2.7/bdb.py", line 383, in run
exec cmd in globals, locals
File "", line 1, in
File "/home/elig/source/investigate/investigate.py", line 2, in
import os, sys
File "/home/elig/source/investigate/investigate.py", line 2, in
import os, sys
File "/usr/local/lib/python2.7/bdb.py", line 48, in trace_dispatch
return self.dispatch_line(frame)
File "/usr/local/lib/python2.7/bdb.py", line 66, in dispatch_line
self.user_line(frame)
File "pudb/debugger.py", line 237, in user_line
self.interaction(frame)
File "pudb/debugger.py", line 206, in interaction
self.ui.call_with_ui(self.ui.interaction, exc_tuple)
File "pudb/debugger.py", line 1224, in call_with_ui
return f(*args, **kwargs)
File "pudb/debugger.py", line 1339, in interaction
self.event_loop()
File "pudb/debugger.py", line 1298, in event_loop
toplevel.keypress(self.size, k)
File "pudb/ui_tools.py", line 87, in keypress
return handler(self, size, key)
File "pudb/debugger.py", line 1070, in do_edit_config
self.run_edit_config()
File "pudb/debugger.py", line 1133, in run_edit_config
edit_config(self, CONFIG)
File "pudb/settings.py", line 293, in edit_config
title="Edit Preferences"):
File "pudb/debugger.py", line 1195, in dialog
return self.event_loop(w)[0]
File "pudb/debugger.py", line 1290, in event_loop
canvas = toplevel.render(self.size, focus=True)
File "/usr/local/lib/python2.7/site-packages/urwid/widget.py", line 132, in cached_render
canv = fn(self, size, focus=focus)
File "/usr/local/lib/python2.7/site-packages/urwid/decoration.py", line 219, in render
canv = self._original_widget.render(size, focus=focus)
File "/usr/local/lib/python2.7/site-packages/urwid/widget.py", line 132, in cached_render
canv = fn(self, size, focus=focus)
File "/usr/local/lib/python2.7/site-packages/urwid/container.py", line 443, in render
self.top_w_size(size, left, right, top, bottom), focus)
File "/usr/local/lib/python2.7/site-packages/urwid/widget.py", line 132, in cached_render
canv = fn(self, size, focus=focus)
File "/usr/local/lib/python2.7/site-packages/urwid/widget.py", line 1318, in render
canv = get_delegate(self).render(size, focus=focus)
File "/usr/local/lib/python2.7/site-packages/urwid/widget.py", line 132, in cached_render
canv = fn(self, size, focus=focus)
File "/usr/local/lib/python2.7/site-packages/urwid/container.py", line 875, in render
focus=focus and item_focus )
File "/usr/local/lib/python2.7/site-packages/urwid/widget.py", line 132, in cached_render
canv = fn(self, size, focus=focus)
File "/usr/local/lib/python2.7/site-packages/urwid/container.py", line 1228, in render
focus = focus and self.focus_col == i)
File "/usr/local/lib/python2.7/site-packages/urwid/widget.py", line 132, in cached_render
canv = fn(self, size, focus=focus)
File "/usr/local/lib/python2.7/site-packages/urwid/widget.py", line 1318, in render
canv = get_delegate(self).render(size, focus=focus)
File "/usr/local/lib/python2.7/site-packages/urwid/widget.py", line 132, in cached_render
canv = fn(self, size, focus=focus)
File "/usr/local/lib/python2.7/site-packages/urwid/container.py", line 875, in render
focus=focus and item_focus )
File "/usr/local/lib/python2.7/site-packages/urwid/widget.py", line 132, in cached_render
canv = fn(self, size, focus=focus)
File "/usr/local/lib/python2.7/site-packages/urwid/container.py", line 1228, in render
focus = focus and self.focus_col == i)
File "/usr/local/lib/python2.7/site-packages/urwid/widget.py", line 132, in cached_render
canv = fn(self, size, focus=focus)
File "/usr/local/lib/python2.7/site-packages/urwid/widget.py", line 1318, in render
canv = get_delegate(self).render(size, focus=focus)
File "/usr/local/lib/python2.7/site-packages/urwid/widget.py", line 170, in finalize_render
canv = fn(self, size, focus=focus)
File "/usr/local/lib/python2.7/site-packages/urwid/listbox.py", line 351, in render
raise ListBoxError, "Focus Widget %r at position %r within listbox calculated cursor coords %r but rendered cursor coords %r!" %(focus_widget,focus_pos,cursor,c_cursor)
ListBoxError: Focus Widget attr_map={None: 'value'}> left=4> at position 13 within listbox calculated cursor coords (3, 0) but rendered cursor coords None!