Tagged: out_of_memory gl_out_
- December 27, 2012 at 12:16 am #31090
I’m having trouble with GL_OUT_OF_MEMORY errors on a PowerVR SGX 430. I have a fairly complex program that emits an out of memory error after a call to glDrawElements (why would glDrawElements produce GL_OUT_OF_MEMORY in general?), and I can’t seem to figure out why. I thought the PowerVR SGX 430 was using the system memory to store textures, buffers etc. (maybe with a GPU cache), so I should only get GL_OUT_OF_MEMORY when my system RAM is low. This isn’t the case, however. I get this error with more than 250MiB of free system RAM. I have written a small test program where I just uploaded a bunch of textures and buffers with random data to the GPU and waited for it to produce GL_OUT_OF_MEMORY. With only textures being uploaded, the error pops out only when I have nearly no RAM left (even seems to use swap space, but not always). When I do the same with only buffers, it’s thrown when I have still about 240MiB left (the buffers already uploaded are 111MiB in size when glBufferData throws the error). When I upload a lot of textures first and then the buffers, the error still pops out when exactly the same number of buffers are already uploaded as without the textures.
So, why does this happen? Is there some kind of limit other than the available system memory?
The source code for my test program along with the output it generates can be found here: http://alemariusnexus.mooo.com/glestest
Thanks in advance!January 2, 2013 at 3:32 pm #36451January 6, 2013 at 11:55 am #36452
I’m using a TI DM3730 (OpenPandora) with Slackware Linux (Kernel 3.2.30).
cat /proc/pvr/version says:
Version 22.214.171.1244 (release)
System Version String: SGX revision: 1.2.5January 7, 2013 at 11:09 am #36453
Unfortunately, the 1.4 driver is very old and we no longer have platforms available in our office that I’d be able to replicate the issue on (we focus our support on platforms with 1.8/1.9 drivers now).
You should contact TI to see if you can install a newer, more robust driver on your platform. If TI cannot help you update the driver, they may be aware of the problem and able to suggest a workaround for you.