[closure-compiler-discuss] Compiler Crashes When i Use --Formating With --create_source_map

57 views
Skip to first unread message

babbos

unread,
May 7, 2010, 11:02:19 AM5/7/10
to Closure Compiler Discuss
Hello there,

Whenever i compile my project with both these options:
--formatting PRETTY_PRINT
--create_source_map ./sourcemap

The compiler crashes with an out of memory error:

java.lang.OutOfMemoryError: Java heap space
at java.util.HashMap.addEntry(HashMap.java:753)
at java.util.HashMap.put(HashMap.java:385)
at
com.google.javascript.jscomp.SourceMap.buildCharacterMappings(Unknown
Source)
at com.google.javascript.jscomp.SourceMap.appendTo(Unknown
Source)
at
com.google.javascript.jscomp.AbstractCommandLineRunner.outputSourceMap(Unknown
Source)
at
com.google.javascript.jscomp.AbstractCommandLineRunner.processResults(Unknown
Source)
at
com.google.javascript.jscomp.AbstractCommandLineRunner.doRun(Unknown
Source)
at
com.google.javascript.jscomp.AbstractCommandLineRunner.run(Unknown
Source)
at com.google.javascript.jscomp.CommandLineRunner.main(Unknown
Source)


I am on FreeBSD

removing either of the options the compiler works fine!

Nick Santos

unread,
May 7, 2010, 11:08:26 AM5/7/10
to closure-comp...@googlegroups.com
On Fri, May 7, 2010 at 11:02 AM, babbos <bab...@gmail.com> wrote:
> Hello there,
>
> Whenever i compile my project with both these options:
> --formatting PRETTY_PRINT
> --create_source_map ./sourcemap
>
> The compiler crashes with an out of memory error:

Try using java's XmX flag to give the process more memory.

java -Xmx1024m -jar ...

the --create_source_map flag uses a lot of memory.

babbos

unread,
May 7, 2010, 12:16:42 PM5/7/10
to Closure Compiler Discuss
solved!!

Thankyou Nick!
Reply all
Reply to author
Forward
0 new messages