clone 421489 -1 reassign -1 python-urwid retitle -1 python-urwid: 0-size screens lead to urwid crashes block 421489 with -1 thanks
This looks like a problem with urwid more generally; I'm passing this along to the urwid maintainer. On 4/29/07, Eddy Petrişor <[EMAIL PROTECTED]> wrote:
Package: reportbug Version: 3.31 Severity: important I use tilda as an "always available console". When tilda is hidden/rolled, the actual size of the window is 0. Reportbug assumes that the window size is never 0 and crashes when I roll/hide tilda and it is running in its dialog based interface. reportbug 3.31 Your version (3.31) of reportbug appears to be out of date. The following newer release(s) are available in the Debian archive: unstable: 3.37 Do you still want to file a report < Yes > < No > Traceback (most recent call last): File "/usr/bin/reportbug", line 1747, in ? main() File "/usr/bin/reportbug", line 779, in main return iface.user_interface() File "/usr/bin/reportbug", line 1239, in user_interface 'Exit without filing a report.', False, nowrap=True): File "/usr/share/reportbug/reportbug_ui_urwid.py", line 340, in yes_no result = box.main(ui) File "/usr/share/reportbug/reportbug_ui_urwid.py", line 196, in main return self.ui.run_wrapper(self.run) File "/var/lib/python-support/python2.4/urwid/raw_display.py", line 186, in run_wrapper return fn() File "/usr/share/reportbug/reportbug_ui_urwid.py", line 147, in run canvas = self.view.render( size, focus=True ) File "/var/lib/python-support/python2.4/urwid/widget.py", line 1863, in render r = self.w.render( size, focus=focus ) File "/var/lib/python-support/python2.4/urwid/widget.py", line 1267, in render c = self.body.render( (maxcol,maxrow-top-bottom),focus) File "/var/lib/python-support/python2.4/urwid/widget.py", line 1105, in render c = self.w.render( (maxcol,)+size[1:], focus ) File "/var/lib/python-support/python2.4/urwid/widget.py", line 1765, in render focus and self.focus_part == 'body') File "/var/lib/python-support/python2.4/urwid/widget.py", line 2376, in render focus = focus and self.focus_col == i) ) File "/var/lib/python-support/python2.4/urwid/widget.py", line 1765, in render focus and self.focus_part == 'body') File "/var/lib/python-support/python2.4/urwid/widget.py", line 1863, in render r = self.w.render( size, focus=focus ) File "/var/lib/python-support/python2.4/urwid/widget.py", line 1267, in render c = self.body.render( (maxcol,maxrow-top-bottom),focus) File "/var/lib/python-support/python2.4/urwid/widget.py", line 1105, in render c = self.w.render( (maxcol,)+size[1:], focus ) File "/var/lib/python-support/python2.4/urwid/widget.py", line 1746, in render focus and self.focus_part == 'footer') File "/var/lib/python-support/python2.4/urwid/widget.py", line 1272, in render c.trim(cy-maxrow+1,maxrow-top-bottom) File "/var/lib/python-support/python2.4/urwid/canvas.py", line 113, in trim assert top < self.rows(), "cannot trim %d lines from %d!"%( AssertionError: cannot trim 3 lines from 2! -- Package-specific info: ** Environment settings: EDITOR="vim" DEBEMAIL="[EMAIL PROTECTED]" EMAIL="[EMAIL PROTECTED]" DEBFULLNAME="Eddy Petrișor" INTERFACE="urwid" ** /home/eddy/.reportbugrc: reportbug_version "3.31" mode advanced ui urwid realname "Eddy Petrişor" email "[EMAIL PROTECTED]" no-cc header "X-Debbugs-CC: [EMAIL PROTECTED]" smtphost bugs.debian.org -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (900, 'stable') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-4-amd64 Locale: LANG=ro_RO.UTF-8, LC_CTYPE=ro_RO.UTF-8 (charmap=UTF-8) Versions of packages reportbug depends on: ii python 2.4.4-2 An interactive high-level object-o ii python-central 0.5.12 register and build utility for Pyt Versions of packages reportbug recommends: pn python-cjkcodecs | python-ico <none> (no description available) -- no debconf information