Menu

#109 possible feedback out-of-memory bug on win32????

v2.0
closed-out-of-date
None
5
2004-07-19
2004-06-21
Anonymous
No

problem:

code that uses opengl feedback dies with out of memory
errors. though I may just be doing something
stupid??? Also there's no test code for feedback in
the distro.

some details:

python 2.2.3
opengl32.dll version 5.0.2195.6611
PyOpenGL-2.0.0.44.win32-py2.2.exe
win2k with latest patches

trace:

Traceback (most recent call last):
File "s.py", line 23, in on_key
size = glRenderMode (GL_RENDER)
OpenGL.GL.GLerror: [Errno 1285] out of memory

test code:

import sys
from OpenGL.GL import *
from OpenGL.GLUT import *

def draw():
glClear(GL_COLOR_BUFFER_BIT)

glBegin (GL_LINE_STRIP)
glNormal3f (0.0, 0.0, 1.0)
glVertex3f (30.0, 30.0, 0.0)
glVertex3f (50.0, 60.0, 0.0)
glVertex3f (70.0, 40.0, 0.0)
glEnd ()

glutSwapBuffers()
return

def on_key(key, x, y):
glFeedbackBuffer (1024, GL_3D_COLOR)
glRenderMode(GL_FEEDBACK)
draw()
size = glRenderMode (GL_RENDER) # <-- prob here
return

def display():
draw()
return

if __name__ == '__main__':

print "press a key to see the thing fail"

glutInit(sys.argv)
glutInitDisplayMode(GLUT_RGB)

glEnable(GL_LIGHTING)
glEnable(GL_LIGHT0)

glutCreateWindow("feedback test")
glutDisplayFunc(display)
glutKeyboardFunc(on_key)

glMatrixMode (GL_PROJECTION)
glLoadIdentity ()
glOrtho (0.0, 100.0, 0.0, 100.0, 0.0, 1.0)

glClearColor (0.0, 0.0, 0.0, 0.0)
glutMainLoop()

thanks

Discussion

  • Nobody/Anonymous

    Logged In: NO

    works with python2.3 and the PyOpenGL-2.0.1.07.py2.3-
    numpy23.exe (unfortunatley I have another dependency that
    requires python2.2).

     
  • Mike C. Fletcher

    Logged In: YES
    user_id=34901

    I'm marking this closed, as it's about a bug which was fixed
    for PyOpenGL 2.0.1.07+ . If there's still a concern, feel
    free to add a comment that it should be re-opened.

     
  • Mike C. Fletcher

    • milestone: --> v2.0
    • assigned_to: nobody --> mcfletch
    • status: open --> closed-out-of-date
     

Log in to post a comment.