# GL\_OUT\_OF\_MEMORY

**URL:** <https://forums.imgtec.com/t/gl-out-of-memory/1619>\
**Category:** PowerVR Insider\
**Created:** [December 26, 2012, 11:16pm UTC](https://forums.imgtec.com/t/gl-out-of-memory/1619 "2012-12-26T23:16:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alemarius-nexus](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@alemarius-nexus](https://forums.imgtec.com/u/alemarius-nexus)\
**Post date:** [December 26, 2012, 11:16pm UTC](https://forums.imgtec.com/t/gl-out-of-memory/1619/1 "2012-12-26T23:16:23Z")

</div>

Hi,  
  
  
  
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](http://alemariusnexus.mooo.com/glestest)  
  
  
  
  
  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)\
**Post date:** [January 2, 2013, 2:32pm UTC](https://forums.imgtec.com/t/gl-out-of-memory/1619/2 "2013-01-02T14:32:59Z")

</div>

Hi,  
  
  
  
What platform are you targeting (e.g. OMAP3630)?  
  
What OS is it running?  
  
What version of the GPU driver is running on your platform? (for more info, please see [this page](http://forum.imgtec.com/discussion/comment/7574)).  
  
  
  
Thanks,  
  
Joe

---

<div class="post-metadata">

**Author:** ![alemarius-nexus](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@alemarius-nexus](https://forums.imgtec.com/u/alemarius-nexus)\
**Post date:** [January 6, 2013, 10:55am UTC](https://forums.imgtec.com/t/gl-out-of-memory/1619/3 "2013-01-06T10:55:46Z")

</div>

I’m using a TI DM3730 (OpenPandora) with Slackware Linux (Kernel 3.2.30).  
  
  
  
cat /proc/pvr/version says:  
  
  
  
Version 1.4.14.2514 (release)  
  
System Version String: SGX revision: 1.2.5

---

<div class="post-metadata">

**Author:** ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)\
**Post date:** [January 7, 2013, 10:09am UTC](https://forums.imgtec.com/t/gl-out-of-memory/1619/4 "2013-01-07T10:09:09Z")

</div>

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.  
  
  
  
Thanks,  
  
Joe
