glGetError 0x505 -> memory blocks to small?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

glGetError 0x505 -> memory blocks to small?

Vasilij
Hello all,

i run an application on RPi. It load jpegs from SD-Card. Each jpeg is about 91kb. After 15 seconds i delete texture for image and load another jpeg as texture and show it on Display.
With thee command "sudo LD_LIBRARY_PATH=/opt/vc/lib /opt/vc/bin/vcdbg reloc" from url (http://www.forum-raspberrypi.de/Thread-freien-gpu-ram-anzeigen) i can see how GPU-Memory are used.
After ~ 2 Weeks of RPi's uninterrapted work i get glError 0x505.

Is it possible, that it is enough memory in GPU, but it is to much Blocks, so the new texture have not enough place?

Thank you in advance!
Reply | Threaded
Open this post in threaded view
|

Re: glGetError 0x505 -> memory blocks to small?

gouessej
Administrator
Hello

How do you delete the textures?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: glGetError 0x505 -> memory blocks to small?

Vasilij
With methods
gl.glDeleteTextures( 1, new int[] { textureId }, 0 );
gl.glDeleteBuffers(1, new int[] { vboId }, 0);

And then, with sun.misc.Cleaner i delete DirectBuffers:
- ByteBuffer for image data
- FloatBuffer for vertices
Reply | Threaded
Open this post in threaded view
|

Re: glGetError 0x505 -> memory blocks to small?

gouessej
Administrator
There is nothing more you can do.

What do you see with the tools you use on the Raspberry Pi? Is the memory correctly released? Maybe there is a bug in the driver. Please display the last texture identifier(s) generated by glGenTextures.
Julien Gouesse | Personal blog | Website