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.
Page Index Toggle Pages: 1
Java heap space (Read 543 times)
Java heap space
Oct 20th, 2008, 6:14am
 
I was working on a program all day today and it was working as it should... I added about 5 lines of code and i got this longggg error while trying to decode it.

I tried to change my maximum memory space to 1000 MB but it still gave me the error:


Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
at antlr.ANTLRStringBuffer.append(ANTLRStringBuffer.java:36)
at antlr.CharScanner.append(CharScanner.java:64)
at antlr.CharScanner.consume(CharScanner.java:82)
at antlr.CharScanner.match(CharScanner.java:205)
at processing.app.preproc.PdeLexer.mSTRING_LITERAL(PdeLexer.java:1376)
at processing.app.preproc.PdeLexer.nextToken(PdeLexer.java:198)
at antlr.TokenStreamHiddenTokenFilter.consume(TokenStreamHiddenTokenFilter.java:38)

at antlr.TokenStreamCopyingHiddenTokenFilter.nextToken(TokenStreamCopyingHiddenToke
nFilter.java:167)
at antlr.TokenBuffer.fill(TokenBuffer.java:69)
at antlr.TokenBuffer.LA(TokenBuffer.java:80)
at antlr.LLkParser.LA(LLkParser.java:52)
at processing.app.preproc.PdeRecognizer.identPrimary(PdeRecognizer.java:1177)
at processing.app.preproc.PdeRecognizer.primaryExpression(PdeRecognizer.java:988)
at processing.app.preproc.PdeRecognizer.postfixExpression(PdeRecognizer.java:3762)
at processing.app.preproc.PdeRecognizer.unaryExpressionNotPlusMinus(PdeRecognizer.j
ava:3727)
at processing.app.preproc.PdeRecognizer.unaryExpression(PdeRecognizer.java:3637)
at processing.app.preproc.PdeRecognizer.multiplicativeExpression(PdeRecognizer.java
:3545)
at processing.app.preproc.PdeRecognizer.additiveExpression(PdeRecognizer.java:3502)

at processing.app.preproc.PdeRecognizer.shiftExpression(PdeRecognizer.java:3453)
at processing.app.preproc.PdeRecognizer.relationalExpression(PdeRecognizer.java:338
2)
at processing.app.preproc.PdeRecognizer.equalityExpression(PdeRecognizer.java:3339)

at processing.app.preproc.PdeRecognizer.andExpression(PdeRecognizer.java:3310)
at processing.app.preproc.PdeRecognizer.exclusiveOrExpression(PdeRecognizer.java:32
81)
at processing.app.preproc.PdeRecognizer.inclusiveOrExpression(PdeRecognizer.java:32
52)
at processing.app.preproc.PdeRecognizer.logicalAndExpression(PdeRecognizer.java:322
3)
at processing.app.preproc.PdeRecognizer.logicalOrExpression(PdeRecognizer.java:3194
)
at processing.app.preproc.PdeRecognizer.conditionalExpression(PdeRecognizer.java:31
63)
at processing.app.preproc.PdeRecognizer.assignmentExpression(PdeRecognizer.java:125
0)
at processing.app.preproc.PdeRecognizer.expression(PdeRecognizer.java:854)
at processing.app.preproc.PdeRecognizer.expressionList(PdeRecognizer.java:3100)
at processing.app.preproc.PdeRecognizer.argList(PdeRecognizer.java:933)
at processing.app.preproc.PdeRecognizer.identPrimary(PdeRecognizer.java:1149)
Re: Java heap space
Reply #1 - Oct 20th, 2008, 2:39pm
 
That's probably an odd typo in your code, such as a comment that starts /* but doesn't complete (no */) or a quoted String that starts but isn't closed. Or a semicolon missing on the last line.. Something along those lines.

The preprocessor just chokes on cases like that sometimes.
Re: Java heap space
Reply #2 - Oct 20th, 2008, 11:18pm
 
Ohhhhhhh there was one quote where there was not supposed to be one...
computers are weird.
Page Index Toggle Pages: 1