PDA

View Full Version : GLError: <unprintable GLError object>



jtizzle36
04-14-2011, 06:12 AM
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\justin3-AA.py", line 423, in <module>
exp.blocks[0].trials[trial].stimuli[5].preload() -\
File "C:\Python26\lib\site-packages\expyriment\stimuli\base.py", line 546, in preload
self.ogl_screen.refresh()
File "C:\Python26\lib\site-packages\expyriment\stimuli\base.py", line 217, in refresh
self._txtr = Visual._load_texture(self._surfTotal)
File "C:\Python26\lib\site-packages\expyriment\stimuli\base.py", line 112, in _load_texture
ogl.GL_RGBA, ogl.GL_UNSIGNED_BYTE, textureData)
File "C:\Python26\lib\site-packages\OpenGL\latebind.py", line 41, in __call__
return self._finalCall( *args, **named )
File "C:\Python26\lib\site-packages\OpenGL\wrapper.py", line 791, in wrapperCall
raise err
GLError: <unprintable GLError object>

Can anyone advise please?

Thanks,
Justin

jtizzle36
04-17-2011, 07:14 AM
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\justin3-AA.py", line 436, in <module>
exp.blocks[0].trials[trial].stimuli[5].preload() -\
File "C:\Python26\lib\site-packages\expyriment\stimuli\base.py", line 544, in preload
position=self.position)
File "C:\Python26\lib\site-packages\expyriment\stimuli\base.py", line 180, in __init__
self.clear()
File "C:\Python26\lib\site-packages\expyriment\stimuli\base.py", line 189, in clear
(powerOfTwo, powerOfTwo), pygame.SRCALPHA, 32).convert_alpha()
error: Out of memory

on some occasions. Any ideas?

Thanks,
justin

ZbuffeR
04-17-2011, 10:53 AM
Hard to say, it seems it depends on the wrapper you use ? Is that PyOpenGL ?