Package: pypanel
Version: 2.3-1
Severity: normal
Tags: patch

for starters, here's the traceback:

Traceback (most recent call last):
  File "/usr/bin/pypanel.orig", line 923, in ?
    PyPanel(display.Display())
  File "/usr/bin/pypanel.orig", line 98, in __init__
    self.loop(self.display, self.root, self.window, self.panel)
  File "/usr/bin/pypanel.orig", line 797, in loop
    self.updateTasks(dsp, root, win, panel)
  File "/usr/bin/pypanel.orig", line 762, in updateTasks
    self.updatePanel(root, win, panel)
  File "/usr/bin/pypanel.orig", line 655, in updatePanel
    if self.getIcon(t, curr_x):
  File "/usr/bin/pypanel.orig", line 317, in getIcon
    name = task.tclass[0]
IndexError: list index out of range

the problem is that for some windows task.tclass = [].  so, of course
task.tclass[0] throws an IndexError.

this occurs for any opengl window (glxgears, xmms OpenGL Spectrum
analyzer) & xnest (including nx client, which uses a modified xnest).

my attached patch is just a workaround, but as task.tclass[0] is only
used in an error message, i consider it sufficient (though there may be
a larger issue here).

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.4.27-k7+6+new
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages pypanel depends on:
ii  libc6                    2.3.2.ds1-22    GNU C Library: Shared
libraries an ii  libfreetype6             2.1.7-2.4       FreeType 2
font engine, shared lib ii  libimlib2                1.2.0-2.2
powerful image loading and renderi ii  libx11-6
4.3.0.dfsg.1-14 X Window System protocol client li ii
libxext6                 4.3.0.dfsg.1-14 X Window System miscellaneous
exte ii  libxft2                  2.1.7-1         FreeType-based font
drawing librar ii  python                   2.3.5-3         An
interactive high-level object-o ii  python-xlib
0.12-4          Interface for Python to the X11 Pr ii
xlibs                    4.3.0.dfsg.1-14 X Keyboard Extension (XKB)
configu ii  zlib1g                   1:1.2.2-4       compression
library - runtime

pypanel recommends no packages.

-- no debconf information

Attachment: pypanel-geticon_indexerror.patch
Description: Binary data

Reply via email to