stanford-ppl / Delite

The Delite Git Repo
http://ppl.stanford.edu
216 stars 43 forks source link

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

Closed leratojeffrey closed 10 years ago

leratojeffrey commented 11 years ago

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 commented 11 years ago

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 https://github.com/stanford-ppl/Delite/issues/32.

tcfuji commented 11 years ago

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

asujeeth commented 10 years ago

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.