Hi,
I have an application in opengl in which I create lots of framebuffer objects (more then 600 fbos)
When I try to delete them in my deconstructor the application crashes with this error message:
*** glibc detected *** free(): invalid pointer: 0x087df9e8 ***
deletion code:
glDeleteFramebuffersEXT(1, &m_fb);
The crash happens after I already deleted a couple of hundred of the fbos (always 226 to be precise).
But that’s not all, when I run the program a couple of times, I get this message:
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 128 (GLX)
Minor opcode of failed request: 27 ()
Serial number of failed request: 29
Current serial number in output stream: 30
Is this because some fbos are still locked on the GPU because they wheren’t properly deleted?
Restarting X fixes the problem, but when I run the program 3 times it returns.
Does anyone know what is happening here?
I’m using the 1.0-7664 drivers on a GeForce 6800
Thanks in advance