GLError: <unprintable GLError object>

Hi all, I am new to programming with Python. My program runs successfully to a point however I am getting an error thrown after a number of iterations:
GLError: <unprintable GLError object>

Traceback (most recent call last):
File “C:\Users\u276181\Documents\Python\”, line 423, in <module>
exp.blocks[0].trials[trial].stimuli[5].preload() -
File “C:\Python26\lib\site-packages\expyriment\stimuli\”, line 546, in preload
File “C:\Python26\lib\site-packages\expyriment\stimuli\”, line 217, in refresh
self._txtr = Visual._load_texture(self._surfTotal)
File “C:\Python26\lib\site-packages\expyriment\stimuli\”, line 112, in _load_texture
ogl.GL_RGBA, ogl.GL_UNSIGNED_BYTE, textureData)
File “C:\Python26\lib\site-packages\OpenGL\”, line 41, in call
return self._finalCall( *args, **named )
File “C:\Python26\lib\site-packages\OpenGL\”, line 791, in wrapperCall
raise err
GLError: <unprintable GLError object>

Can anyone advise please?


Ok, so maybe I havnt provided adequate information, but I really need help with this problem. Since I thought it may be a memory allocation error I tried calling gc.collect() to try and force-free-up some memory but this didnt fix the problem. I also get the error message:

Traceback (most recent call last):
File “C:\Users\u276181\Documents\Python\”, line 436, in <module>
exp.blocks[0].trials[trial].stimuli[5].preload() -
File “C:\Python26\lib\site-packages\expyriment\stimuli\”, line 544, in preload
File “C:\Python26\lib\site-packages\expyriment\stimuli\”, line 180, in init
File “C:\Python26\lib\site-packages\expyriment\stimuli\”, line 189, in clear
(powerOfTwo, powerOfTwo), pygame.SRCALPHA, 32).convert_alpha()
error: Out of memory

on some occasions. Any ideas?


Hard to say, it seems it depends on the wrapper you use ? Is that PyOpenGL ?