[Debian-med-packaging] Bug#603022: runPmv crashes on start with index out of range for self.clipPlaneNames[num] in .../DejaVu/Clip.py

debmgltools.5.iridos at recursor.net debmgltools.5.iridos at recursor.net
Wed Nov 10 12:03:54 UTC 2010


Package: mgltools-dejavu
Version: 1.5.4.cvs.20100912-1
Severity: important


Hello,
runPmv exits at start-up with a traceback (see bewlow report)

self.id = self.clipPlaneNames[num] is used with indices from 1 to 7 when 
calling "runPmv", while in 
/usr/lib/python2.6/dist-packages/DejaVu/Clip.py, clipPlaneNames is 
defined as:

     clipPlaneNames = [ GL.GL_CLIP_PLANE0, GL.GL_CLIP_PLANE1,
                        GL.GL_CLIP_PLANE2, GL.GL_CLIP_PLANE3,
                        GL.GL_CLIP_PLANE4, GL.GL_CLIP_PLANE5 ]

The amount of planes is set/determined in 
/usr/lib/python2.6/dist-packages/DejaVu/Viewer.py,
where maxClipP = int(GL.glGetDoublev(GL.GL_MAX_CLIP_PLANES)[0]).

changing this line to:
maxClipP = 5
will make runPmv start.

According to here, this might actually be a bug in the ATI drivers:
http://mgl.scripps.edu/forum/viewtopic.php?f=11&t=584
Please reassign to fglrx-driver or fglrx-glx if that seems more 
appropriate than a workaround in mgltools-dejavu.


Cheers,
Karsten



$ runPmv
Run PMV from  /usr/lib/python2.6/dist-packages/Pmv
Resource file used to customize PMV: /home/k/.mgltools/1.5.4/Pmv/_pmvrc

Warning (from warnings module):
   File "/usr/lib/python2.6/dist-packages/DejaVu/Clip.py", line 98
     self.Ri = glCleanRotMat(self.Ri)
DeprecationWarning: PyArray_FromDims: use PyArray_SimpleNew.
>>>
Warning (from warnings module):
   File "/usr/lib/python2.6/dist-packages/DejaVu/Clip.py", line 98
     self.Ri = glCleanRotMat(self.Ri)
DeprecationWarning: PyArray_FromDimsAndDataAndDescr: use PyArray_NewFromDescr.
>>> Traceback (most recent call last):
   File "/usr/lib/python2.6/dist-packages/Pmv/__init__.py", line 371, in runPmv
     title=title, withShell= not interactive, verbose=False, gui=gui)
   File "/usr/lib/python2.6/dist-packages/Pmv/moleculeViewer.py", line 315, in __init__
     verbose=verbose, trapExceptions=trapExceptions)
   File "/usr/lib/python2.6/dist-packages/ViewerFramework/VF.py", line 345, in __init__
     verbose=verbose)
   File "/usr/lib/python2.6/dist-packages/ViewerFramework/VFGUI.py", line 270, in __init__
     cnf = {"addScenarioButton": False})
   File "/usr/lib/python2.6/dist-packages/DejaVu/Viewer.py", line 675, in __init__
     cp = ClippingPlane(self.rootObject, i, self)
   File "/usr/lib/python2.6/dist-packages/DejaVu/Clip.py", line 42, in __init__
     self.id = self.clipPlaneNames[num]
IndexError: list index out of range




-- System Information:
Debian Release: squeeze/sid
   APT prefers testing
   APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686-bigmem (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages mgltools-dejavu depends on:
ii  mgltools-geomuti 1.5.4.cvs.20090603-1+b1 Python library for geometric analy
ii  mgltools-openglt 1.5.4.cvs.20100912-1    opengltk python extension
ii  mgltools-pyglf   1.5.4.cvs.20100912-1    GLF library Python extension to wr
ii  python           2.6.6-3+squeeze1        interactive high-level object-orie
ii  python-central   0.6.16+nmu1             register and build utility for Pyt

mgltools-dejavu recommends no packages.

Versions of packages mgltools-dejavu suggests:
pn  mgltools-qslimlib             <none>     (no description available)

-- no debconf information






More information about the Debian-med-packaging mailing list