Hi, We're trying to compile a very large GWT project that generates in non obfuscated mode(PRETTY setting) around 41MB of nocache.js per module. It works fine but when enabling stack trace emulation(to have deobfuscated exception stack traces in Eclipse through SDBG), compilation gets stuck at this line(full log atached): Linking per-type JS with 11838 new/changed types.
Sometimes there's this error: OutOfMemoryError: increase heap size or lower gwt.jjs.maxThreads Having increased the heap size considerably(2GB), this error goes away but compiler remains stuck at that line for a very long time. We also ran the above with -logLevel DEBUG but compiler gets stuck on same line, with no additional information. We've tried this scenario with same result on GWT 2.8.0 Beta1, RC1 and RC2. Do you know if this is something due to our code base or something else? Indeed, there are still some optimizations to do, we have many RPC services with generic types(List, Map, etc.) that generate a lot of permutations. We should use concrete types instead. We plan to improve that. Do you know how to further debug why this is happening? Could it be due to something else than our RPCs, that maybe needs fixing on GWT-side? -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/5c86c57e-1103-416b-ba88-545d93e2585a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
12:24:21 | 8 | Compiling module com.swift.sawa.accessadmin.gwt.AccessAdmin 12:24:28 | 6 | Ignored 5 units with compilation errors in first pass. Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors. 12:25:40 | 72 | Unification traversed 142762 fields and methods and 11936 types. 11893 are considered part of the current module and 11893 had all of their fields and methods traversed. 12:25:44 | 3 | Compiling 1 permutation 12:25:44 | 0 | Compiling permutation 0... 12:26:24 | 40 | Linking per-type JS with 11838 new/changed types. 12:26:36 | 12 | [ERROR] OutOfMemoryError: Increase heap size or lower gwt.jjs.maxThreads 12:26:36 | 0 |java.lang.OutOfMemoryError: Java heap space 12:26:36 | 0 | at java.util.Arrays.copyOf(Arrays.java:3181) 12:26:36 | 0 | at java.util.ArrayList.grow(ArrayList.java:261) 12:26:36 | 0 | at java.util.ArrayList.ensureExplicitCapacity(ArrayList.java:235) 12:26:36 | 0 | at java.util.ArrayList.ensureCapacityInternal(ArrayList.java:227) 12:26:36 | 0 | at java.util.ArrayList.add(ArrayList.java:458) 12:26:36 | 0 | at com.google.gwt.core.ext.linker.impl.JsSourceMapBuilder.append(JsSourceMapBuilder.java:37) 12:26:36 | 0 | at com.google.gwt.dev.jjs.impl.JsTypeLinker.linkOne(JsTypeLinker.java:159) 12:26:36 | 0 | at com.google.gwt.dev.jjs.impl.JsTypeLinker.linkAll(JsTypeLinker.java:120) 12:26:36 | 0 | at com.google.gwt.dev.jjs.impl.JsTypeLinker.exec(JsTypeLinker.java:81) 12:26:36 | 0 | at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.generateJavaScriptCode(JavaToJavaScriptCompiler.java:805) 12:26:36 | 0 | at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:444) 12:26:36 | 0 | at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:272) 12:26:36 | 0 | at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:198) 12:26:36 | 0 | at com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:50) 12:26:36 | 0 | at com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:74) 12:26:36 | 0 | at java.lang.Thread.run(Thread.java:745) 12:26:36 | 0 | [ERROR] Out of memory; to increase the amount of memory, use the -Xmx flag at startup (java -Xmx128M ...) 12:26:36 | 0 | [ERROR] Unrecoverable exception, shutting down 12:26:36 | 0 |com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) 12:26:36 | 0 | at com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:56) 12:26:36 | 0 | at com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:74) 12:26:36 | 0 | at java.lang.Thread.run(Thread.java:745) 12:26:38 | 1 | [ERROR] Not all permutation were compiled , completed (0/1) 12:26:38 | 0 | [WARN] recompile failed 12:26:38 | 0 | [WARN] continuing to serve previous version
