Bug 1511 : Comments with non-ascii characters before import statement -> java.lang.OutOfMemoryError
Last modified: 2010-03-17 13:11




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
bohnacker
Assigned To:
MrFeinberg

Attachment Type Created Size Actions

Description:   Opened: 2010-03-15 07:51
processing version: 1.1
mac os x 10.6.2, macbook pro

example code:
----------
// ß

/**
* a
*/

import processing.pdf.*;
----------

when having two different types of comments before an import statement and
one of the comments contains non-ascii characters the following error occurs:
Exception in thread "Thread-46" 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.mML_COMMENT(PdeLexer.java:538)
at processing.app.preproc.PdeLexer.nextToken(PdeLexer.java:249)
at
antlr.TokenStreamHiddenTokenFilter.consume(TokenStreamHiddenTokenFilter.java:38)
at
antlr.TokenStreamCopyingHiddenTokenFilter.consumeFirst(TokenStreamCopyingHiddenTokenFilter.java:134)
at
antlr.TokenStreamCopyingHiddenTokenFilter.nextToken(TokenStreamCopyingHiddenTokenFilter.java:152)
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.pdeProgram(PdeRecognizer.java:63)
at processing.app.preproc.PdePreprocessor.write(PdePreprocessor.java:337)
at processing.app.Sketch.preprocess(Sketch.java:1271)
at processing.app.Sketch.preprocess(Sketch.java:1204)
at processing.app.Sketch.build(Sketch.java:1590)
at processing.app.Sketch.build(Sketch.java:1575)
at processing.app.Editor$DefaultRunHandler.run(Editor.java:1656)
at java.lang.Thread.run(Thread.java:637)
Additional Comment #1 From bohnacker 2010-03-15 07:53
i forgot: this seems to be new to processing version 1.1
Additional Comment #2 From MrFeinberg 2010-03-15 11:47
Fixed; please verify.
Additional Comment #3 From bohnacker 2010-03-17 02:53
sorry, can't verify because i cannot build an updated application. the
"./make.sh" described in the howto.txt doesn't work for me.