Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any Solution for java.lang.StackOverflowError - build-optiml #32

Closed
leratojeffrey opened this issue Jul 9, 2013 · 3 comments
Closed

Comments

@leratojeffrey
Copy link

Tried the following SBT config scripts:

  1. java -Xmx2g -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=128m -jar dirname $0/sbt-launch.jar "$@"

  2. java -Xmx1g -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=128m -jar dirname $0/sbt-launch.jar "$@"

When I try these SBT configs:

  1. java -Xmx2g -XX:MaxPermSize=1g -XX:ReservedCodeCacheSize=128m -jar dirname $0/sbt-launch.jar "$@"

  2. java -Xmx3g -XX:MaxPermSize=1g -XX:ReservedCodeCacheSize=128m -jar dirname $0/sbt-launch.jar "$@"

I get the following SBT Error:
...
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
...
This one is probably because I only have RAM=3G on an intel Core 2 Duo without a GPU.

Can anyone please help with java.lang.StackOverflowError or Do I need to upgrade my system? Please advice.

Regards
Lerato

@asujeeth
Copy link
Contributor

asujeeth commented Jul 9, 2013

hi Lerato,

Try using one of the smaller memory configurations, e.g.

java -Xmx2g -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=128m -jar
|dirname $0|/sbt-launch.jar "$@"

and compiling one sbt project at a time:

sbt
project framework
compile
project optila
compile
project optiml
compile
etc.

If you still get errors, let us know what they say. Unfortunately the
way we use Scala really stresses the compiler; we're aware it's a major
problem and are trying to find a solution.

best,
Arvind

On 7/9/13 5:14 AM, leratojeffrey wrote:

Tried the following SBT config scripts:

  1. java -Xmx2g -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=128m
    -jar |dirname $0|/sbt-launch.jar "$@"

  2. java -Xmx1g -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=128m
    -jar |dirname $0|/sbt-launch.jar "$@"

When I try these SBT configs:

  1. java -Xmx2g -XX:MaxPermSize=1g -XX:ReservedCodeCacheSize=128m -jar
    |dirname $0|/sbt-launch.jar "$@"

  2. java -Xmx3g -XX:MaxPermSize=1g -XX:ReservedCodeCacheSize=128m -jar
    |dirname $0|/sbt-launch.jar "$@"

I get the following SBT Error:
...
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
...
This one is probably because I only have RAM=3G on an intel Core 2 Duo
without a GPU.

Can anyone please help with java.lang.StackOverflowError or Do I need
to upgrade my system? Please advice.

Regards
Lerato


Reply to this email directly or view it on GitHub
#32.

@tcfuji
Copy link

tcfuji commented Aug 19, 2013

Unfortunately, optiml-apps will not compile, even with the above strategy. Everything else seemed to compile fine.

@asujeeth
Copy link
Contributor

optiml-apps require even more memory and resources than the others, but they will compile when you have enough. A workaround would be to remove all apps from the apps/ folder except the one(s) you are interested in compiling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants