Hey guys, Whenever i compile my GWT project, i get an OOM error:

Compiling module x Compiling 1 permutation [ERROR] OutOfMemoryError: 
Increase heap size or lower gwt.jjs.maxThreads java.lang.OutOfMemoryError: 
Java heap space at 
com.google.gwt.thirdparty.guava.common.collect.Iterables.concat(Iterables.java:495)
 
at 
com.google.gwt.thirdparty.guava.common.collect.Iterables.concat(Iterables.java:434)
 
at 
com.google.gwt.dev.jjs.ast.JMethod.getOverriddenMethodsIncludingSelf(JMethod.java:579)
 
at 
com.google.gwt.dev.jjs.ast.JMethod.canBeReferencedExternally(JMethod.java:85) 
at 
com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer$RescueVisitor.rescue(ControlFlowAnalyzer.java:626)
 
at 
com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer$RescueVisitor.visit(ControlFlowAnalyzer.java:371)
 
at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:265) at 
com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127) at 
com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122) at 
com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:118) at 
com.google.gwt.dev.jjs.ast.JExpressionStatement.traverse(JExpressionStatement.java:42)
 
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:146) at 
com.google.gwt.dev.jjs.ast.JVisitor.acceptWithInsertRemove(JVisitor.java:168) 
at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92) at 
com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127) at 
com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:139) at 
com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:135) at 
com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83) at 
com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127) at 
com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122) at 
com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:786) at 
com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:778) at 
com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127) at 
com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122) at 
com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer$RescueVisitor.rescue(ControlFlowAnalyzer.java:618)
 
at 
com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer$RescueVisitor.visit(ControlFlowAnalyzer.java:371)
 
at 
com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer$RescueVisitor.visit(ControlFlowAnalyzer.java:478)
 
at 
com.google.gwt.dev.jjs.ast.js.JsniMethodRef.traverse(JsniMethodRef.java:69) 
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:146) at 
com.google.gwt.dev.jjs.ast.JVisitor.acceptImmutable(JVisitor.java:154) at 
com.google.gwt.dev.jjs.ast.js.JsniMethodBody.traverse(JsniMethodBody.java:136) 
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127) [ERROR] 
Out of memory; to increase the amount of memory, use the -Xmx flag at 
startup (java -Xmx128M ...) [ERROR] Unrecoverable exception, shutting down 
com.google.gwt.core.ext.UnableToCompleteException: (see previous log 
entries) at 
com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:56)
 
at 
com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:74)
 
at java.lang.Thread.run(Thread.java:750) [ERROR] Not all permutation were 
compiled , completed (0/1)


my project is kinda old, using jars, and compiling in cmd.


I'm giving the compiler 36GB ram, compiling for only firefox, using 
draftCompile and much more, but nothing is working.


I'm also fairly new to GWT, and i'm really wondering how did the dev 
working on this specific project before me could compile it.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/google-web-toolkit/d9a80abf-0518-42e8-b972-02ac2bffb640n%40googlegroups.com.

Reply via email to