[ pyopengl-Bugs-3526361 ] GL.glGenLists not returning int on OSX 64 bit

SourceForge.net <[email protected]> Thu, 11 Apr 2013 20:13:33 -0700
Newsgroups gmane.comp.python.opengl.devel
Message-ID <[email protected]>
Bugs item #3526361, was opened at 2012-05-13 11:38
Message generated for change (Comment added) made by balintseeber
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=3526361&group_id=5988

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: v3.0.0
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: GL.glGenLists not returning int on OSX 64 bit

Initial Comment:
I'm using py27-opengl 3.0.1_0 and py27-opengl-accelerate 3.0.1_0 on MacOS 10.7.3 64 bit via macports.  I'm also using wxWidgets-devel 2.9.3_0+sdl if that's relevant.
I've installed the wxgui component of gnuradio and am getting the following error when I try and use an openGL widget:

Traceback (most recent call last):
File "/opt/local/lib/python2.7/site-packages/gnuradio/wxgui/plotter/plotter_base.py", line 187, in _on_paint
  for fcn in self._draw_fcns: fcn[1]()
File "/opt/local/lib/python2.7/site-packages/gnuradio/wxgui/plotter/plotter_base.py", line 58, in draw
  GL.glNewList(self._grid_compiled_list_id, GL.GL_COMPILE)
ctypes.ArgumentError: argument 1: <type 'exceptions.TypeError'>: wrong type

The code is at http://pastebin.com/ezLmgYv2


Please make sure GL.glGenLists is returning what you expect it to return (namely an unsigned int). On some platforms I've seen PyOpenGL bindings not returning the generated value but rather expecting to assign it to the second parameter in a similar fashion than that of the C API.

Hope this helps!
Alejandro.-

Hi Alejandro,

		self._grid_compiled_list_id = GL.glGenLists(1)
		print self._grid_compiled_list_id
returns

'None'

----------------------------------------------------------------------

Comment By: Balint Seeber (balintseeber)
Date: 2013-04-11 20:13

Message:
I found an issue with the (lack of) implicit OpenGL context in gr-wxgui's
plotter_base. This bug has been fixed here:
https://github.com/balint256/gnuradio/commit/5f0aaf3d5397675d6f87acd7ab20526ac1fb0d4e

----------------------------------------------------------------------

Comment By: Boolean (b001ean)
Date: 2013-03-28 09:23

Message:
I am running a 32 bit OS (Leopard 10.5.8) and I have this exact same
problem, so it is not a 64 bit only issue.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=3526361&group_id=5988

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net