We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › PGraphicsOpenGL OutOfMemoryError
Page Index Toggle Pages: 1
PGraphicsOpenGL OutOfMemoryError (Read 447 times)
PGraphicsOpenGL OutOfMemoryError
Feb 16th, 2008, 11:26pm
 
when loading a large jpg...

_image = loadImage("a_large_file.jpg");
image(_image, 0, 0);

i get the following error.

java.lang.OutOfMemoryError: Direct buffer memory at processing.opengl.PGraphicsOpenGL.requestDisplay(PGraphicsOpenGL.java:172)

this is only happening using the OPENGL renderer but working ok with default renderer.

does anyone know a work around using the OPENGL renderer?
Re: PGraphicsOpenGL OutOfMemoryError
Reply #1 - Feb 17th, 2008, 6:08am
 
Though there may be a solution, don't feel bad if you have to increase the java memory size. It's too small as default for many basic applications.

If you're running out of eclipse, put "-Xmx512m" in your vm arguments.

If you're in processing IDE, I don't know how you can send vm arguments in... but there is probably a way.
Re: PGraphicsOpenGL OutOfMemoryError
Reply #2 - Feb 17th, 2008, 2:39pm
 
that did the trick nicely, thx very much for the tip!
Page Index Toggle Pages: 1