[ pyopengl-Bugs-3577573 ] glEndList gives error on virtual machine.

SourceForge.net <[email protected]> Tue, 16 Oct 2012 23:19:07 -0700
Newsgroups gmane.comp.python.opengl.devel
Message-ID <[email protected]>
Bugs item #3577573, was opened at 2012-10-16 00:43
Message generated for change (Comment added) made by kierun
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=3577573&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: Demo
Group: v2.0.1
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Yann Golanski (kierun)
Assigned to: Mike C. Fletcher (mcfletch)
Summary: glEndList gives error on virtual machine.

Initial Comment:
When I try to run the OpenGL demo GLUT/gears.py, I get the following traceback:


OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x98cb2a8
OpenGL Warning: Retry with 0xd4 returned 1 visuals
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x98cb2a8
OpenGL Warning: Retry with 0xd4 returned 1 visuals
Traceback (most recent call last):
  File "gears.py", line 264, in <module>
      init()
      File "gears.py", line 234, in init
      glEndList()
      File "errorchecker.pyx", line 50, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError (src/errorchecker.c:1050)
      OpenGL.error.GLError: GLError(
             err = 1280,
             description = 'invalid enumerant',
             baseOperation = glEndList,
             cArguments = ()
      )

I get the same error in my own code, but this is probably a better example to track the bug.

Any idea what is causing this?

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

>Comment By: Yann Golanski (kierun)
Date: 2012-10-16 23:19

Message:
However, running my own code with the option LIBGL_ALWAYS_INDIRECT=1 gives
me another error.  If I run my code with OpenGL.ERROR_CHECKING = False, it
appears to do the things I intended it to do.  So, this bug could be
different from the virtual box one.  Sorry. :(

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

Comment By: Yann Golanski (kierun)
Date: 2012-10-16 23:15

Message:
Setting LIBGL_ALWAYS_INDIRECT=1 in the shell does indeed make the code work
no problems. 

I am slightly worried about the error suppressed as my code *appears* to
run fine otherwise.  I wonder if it runs fine by luck rather than design,
then there's something needing fixing. 

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

Comment By: Mike C. Fletcher (mcfletch)
Date: 2012-10-16 09:31

Message:
Hmm, ERROR_CHECKING turned off working likely means we're having an error
suppressed slightly earlier in the code.

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

Comment By: Mike C. Fletcher (mcfletch)
Date: 2012-10-16 09:21

Message:
It *appears* to be VirtualBox error:

  https://www.virtualbox.org/ticket/6848

with the last comment implying using:

  LIBGL_ALWAYS_INDIRECT=1 python gears.py

to test if this is the same issue (if it is, then that should cause it to
work).

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

Comment By: Yann Golanski (kierun)
Date: 2012-10-16 07:07

Message:
Adding: 

  OpenGL.ERROR_CHECKING = False

fixed the problem and the code runs fine.  I suspect a bug in the error
checking code, maybe a type conversion? 

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

Comment By: Yann Golanski (kierun)
Date: 2012-10-16 03:01

Message:
A call to glIsList(gear1) just after line 230 returns GL_FALSE, if that
helps at all.

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

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

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net