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.
IndexProcessing DevelopmentCore,  Processing Development Environment (PDE) › heap space error as a result of comments
Page Index Toggle Pages: 1
heap space error as a result of comments (Read 1650 times)
heap space error as a result of comments
Apr 23rd, 2010, 11:56am
 
I found this Bug:

I wrote a code in P1.09 (that works fine!)

This is my code before
Code:

/*
some documentation
*/

import opengl;
import other libs;

code.....

I loaded it into P1.1 and i got this error:

Exception in thread "Thread-35" java.lang.OutOfMemoryError: Java heap space

I figured out why this happends...or better - a workaround.
The problem was the position of the comment in die code or rather the position of the lib import.

New code:
Code:

import opengl;
import other libs;

/*
some documentation
*/

code.....


And it works fine!  Cool
Re: heap space error as a result of comments
Reply #1 - Jun 4th, 2010, 8:37pm
 
That's nifty, but I couldn't reproduce it. Can you post the sketch that causes the error? (Copy for Discourse maybe?)
Page Index Toggle Pages: 1