Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#200 crash inside glGetBoolean(GL_TEXTURE_2D)

closed-works-for-me
nobody
None
5
2009-07-19
2008-11-16
Andre Klapper
No

http://bugzilla.gnome.org/show_bug.cgi?id=552981 is receiving lots of duplicates, and it seems to be a PyOpenGL issue.
Kindly asking for investigating here:

----------- .xsession-errors ---------------------
self.chessSet.drawPiece(self.name, state, self.scene)
File "/var/lib/python-support/python2.5/glchess/scene/opengl/new_models.py",
line 110, in drawPiece
if glGetBoolean(GL_TEXTURE_2D):
File
"/usr/lib/python2.5/site-packages/PyOpenGL-3.0.0b6-py2.5.egg/OpenGL/wrapper.py",
line 1631, in __call__
return self.finalise()( *args, **named )
File
"/usr/lib/python2.5/site-packages/PyOpenGL-3.0.0b6-py2.5.egg/OpenGL/wrapper.py",
line 683, in wrapperCall
converter( pyArgs, index, self )
File
"/usr/lib/python2.5/site-packages/PyOpenGL-3.0.0b6-py2.5.egg/OpenGL/converters.py",
line 195, in __call__
return self.arrayType.zeros( self.getSize(pyArgs) )
File
"/usr/lib/python2.5/site-packages/PyOpenGL-3.0.0b6-py2.5.egg/OpenGL/arrays/arraydatatype.py",
line 98, in zeros
return cls.returnHandler().zeros( dims, typeCode or cls.typeConstant )
File
"/usr/lib/python2.5/site-packages/PyOpenGL-3.0.0b6-py2.5.egg/OpenGL/arrays/nones.py",
line 32, in zeros
raise TypeError( """Can't create NULL pointer filled with values""" )
TypeError: ("Can't create NULL pointer filled with values", 'Failure in
cConverter <OpenGL.converters.SizedOutput object at 0x84904fc>',
[GL_TEXTURE_2D], 1, <OpenGL.wrapper.glGetIntegerv object at 0x8
--------------------------------------------------
Traceback (most recent call last):
File "/var/lib/python-support/python2.5/glchess/gtkui/chessview.py", line
166, in __expose
self.view.feedback.renderGL()
File "/var/lib/python-support/python2.5/glchess/display.py", line 467, in
renderGL
self.scene.controller.render()
File "/var/lib/python-support/python2.5/glchess/scene/opengl/opengl.py", line
326, in render
self.drawPieces()
File "/var/lib/python-support/python2.5/glchess/scene/opengl/opengl.py", line
728, in drawPieces
piece.draw()
File "/var/lib/python-support/python2.5/glchess/scene/opengl/opengl.py", line
104, in draw
self.chessSet.drawPiece(self.name, state, self.scene)
File "/var/lib/python-support/python2.5/glchess/scene/opengl/new_models.py",
line 110, in drawPiece
if glGetBoolean(GL_TEXTURE_2D):
File
"/usr/lib/python2.5/site-packages/PyOpenGL-3.0.0b6-py2.5.egg/OpenGL/wrapper.py",
line 1631, in __call__
return self.finalise()( *args, **named )
File
"/usr/lib/python2.5/site-packages/PyOpenGL-3.0.0b6-py2.5.egg/OpenGL/wrapper.py",
line 683, in wrapperCall
converter( pyArgs, index, self )
File
"/usr/lib/python2.5/site-packages/PyOpenGL-3.0.0b6-py2.5.egg/OpenGL/converters.py",
line 195, in __call__
return self.arrayType.zeros( self.getSize(pyArgs) )
File
"/usr/lib/python2.5/site-packages/PyOpenGL-3.0.0b6-py2.5.egg/OpenGL/arrays/arraydatatype.py",
line 98, in zeros
return cls.returnHandler().zeros( dims, typeCode or cls.typeConstant )
File
"/usr/lib/python2.5/site-packages/PyOpenGL-3.0.0b6-py2.5.egg/OpenGL/arrays/nones.py",
line 32, in zeros
raise TypeError( """Can't create NULL pointer filled with values""" )
TypeError: ("Can't create NULL pointer filled with values", 'Failure in
cConverter <OpenGL.converters.SizedOutput object at 0x84904fc>',
[GL_TEXTURE_2D], 1, <OpenGL.wrapper.glGetIntegerv object at 0x849f28c>)

Discussion

  • I have the very same problem, but with glGetInteger(GL_DEPTH_BITS). This only happens with b6, going back to b5 makes the error disappear.

     
  • Same for me on debian lenny with 3.0.0~b6-3, going back to b3-1 resolves the problem.

     
  • Same for me with glGetDoublev(GL_VIEWPORT)

    OpenGL.__version__ = '3.0.0b6'

    This is on Ubuntu 9.04

     
  • A workaround is to install python-numpy (tested on Ubuntu 9.04).

     
  • thanks for the work around

     
    • status: open --> closed-works-for-me
     
  • Sorry this bug didn't get addressed last year. I can't reproduce the behaviour on Ubuntu amd64, the traceback suggests that the NonesHandler was registered as being a return-type handler, which should not be possible on current bzr head (at least, I don't see how it could happen).