OutOfMemoryError after upgrade to OS X Mavericks

1,025 views
Skip to first unread message

E.P.

unread,
Nov 4, 2013, 11:24:36 AM11/4/13
to google-we...@googlegroups.com
Hi everyone,
after the upgrade to Mavericks I am having a problem compiling my application:

Compiling 1 permutation
      Compiling permutation 0...
      [ERROR] OutOfMemoryError: Increase heap size or lower gwt.jjs.maxThreads
java.lang.OutOfMemoryError: Java heap space
    at java.util.HashMap.resize(HashMap.java:559)
    at java.util.HashMap.addEntry(HashMap.java:851)
    at java.util.HashMap.put(HashMap.java:484)
    at com.google.gwt.dev.jjs.impl.JsFunctionClusterer.updateSourceInfoMap(JsFunctionClusterer.java:234)
    at com.google.gwt.dev.jjs.impl.JsAbstractTextTransformer.recomputeJsAndStatementRanges(JsAbstractTextTransformer.java:132)
    at com.google.gwt.dev.jjs.impl.JsFunctionClusterer.exec(JsFunctionClusterer.java:154)
    at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.generateJavaScriptCode(JavaToJavaScriptCompiler.java:1169)
    at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:506)
    at com.google.gwt.dev.jjs.UnifiedAst.compilePermutation(UnifiedAst.java:134)
    at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:195)
    at com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:49)
    at com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:73)
    at java.lang.Thread.run(Thread.java:722)
         [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:73)
    at java.lang.Thread.run(Thread.java:722)
      [ERROR] Not all permutation were compiled , completed (0/1)

Before the upgrade all ran like a charme.
So I have done a bunch of tries, googling to find the right Java args, but without success. This is the latest extra args I used:

-Xmx8192m -XX:MaxPermSize=2048m -Dgwt.compiler.localWorkers=1 -XX:+UseCompressedOops -Dgwt.jjs.permutationWorkerFactory=com.google.gwt.dev.ThreadedPermutationWorkerFactory

Am I wrong something?
Thanks in advance for any help that could help me to solve this problem.

Eddy

Jim Douglas

unread,
Nov 4, 2013, 12:47:33 PM11/4/13
to google-we...@googlegroups.com
I'm not seeing any GWT changes after upgrading to Mavericks, but googling that error message does find some suggestions:

E.P.

unread,
Nov 5, 2013, 10:00:13 AM11/5/13
to google-we...@googlegroups.com
Hi Jim,
thanks, but I already read the Google results you posted and many more, but I still haven't found a fix that works.
I fear that the problem is Mavericks, and something related to the new memory management or the JVM.
I'm still investigating on this.
Thanks anyway,

Eddy

Cristiano Costantini

unread,
Nov 5, 2013, 10:32:43 AM11/5/13
to google-we...@googlegroups.com
Which JVM are you using? Apple's 1.6 or Oracle's 1.7?
32 bit or 64 bit? 
How much RAM has your mac? 
What's your build system or IDE?

I have no problem on 2008 mbp with maverick, JDK 1.7 64 bit and 8 Gb ram, 
Building with maven and coding with Eclipse Kepler
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

E.P.

unread,
Nov 5, 2013, 5:14:29 PM11/5/13
to google-we...@googlegroups.com
Hi Cristiano,
I'm using Oracle's 1.7.0_15 64bit.
My Mac has 8 GB and the build system is Gradle 1.7.
I repeat, all worked before the upgrade to Mavericks.
Besides this issue, I had only to install JRE 1.6 to run Intellij IDEA 12 the first time
after the upgrade.
I think that I tried everything, maybe now I should try something like reinstalling the JDK
or make a compatibility check between the components of my application and Mavericks.
It's really weird for me.
Thanks anyway,

Eddy



On Tuesday, November 5, 2013 4:32:43 PM UTC+1, Cristiano wrote:
Which JVM are you using? Apple's 1.6 or Oracle's 1.7?
32 bit or 64 bit? 
How much RAM has your mac? 
What's your build system or IDE?

I have no problem on 2008 mbp with maverick, JDK 1.7 64 bit and 8 Gb ram, 
Building with maven and coding with Eclipse Kepler


[CUT]

Cristiano Costantini

unread,
Nov 5, 2013, 6:06:35 PM11/5/13
to google-we...@googlegroups.com
I had to install 1.6 too even if I had 1.7 installed, I think that is a Maverick feature started as soon as some java program starts...

I use 1.7.0_40-b43, you may try a newer version too and with some luck it may work.




Il giorno martedì 5 novembre 2013, E.P. ha scritto:
--

E.P.

unread,
Nov 9, 2013, 10:15:58 AM11/9/13
to google-we...@googlegroups.com
Hi,
Upgrading to the latest version of the jdk fixed the issue.
It should be interesting if I had reinstalled the same version, I think it would have worked too.
Thanks to Cristiano for the tip and to everyone for the help.

Eddy

Harmeet Kaur

unread,
May 5, 2014, 8:46:16 PM5/5/14
to google-we...@googlegroups.com

Hey E.P,

Thanks Cristiano and E. P .

Reinstalling the same version would not have worked.

I updated my jdk and that solved the issue.


Thanks,

Harmeet

Reply all
Reply to author
Forward
0 new messages