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
Rhino 1.7R4 produce java.lang.StackOverflowError when opt != -1 #67
Comments
|
Cannot reproduce with master, both opt=0 and opt=9 complete without any errors. Is the StackOverflowError thrown while compiling the code or during execution? |
|
try to reproduce on jar from here: https://github.com/downloads/mozilla/rhino/rhino1_7R4.zip part of callstack is here |
|
I'm still unable to reproduce the stack-overflow error, even when using 1_7R4. This might be related to my Java version, since I'm working on a 64bit-system, I'm always using the Java HotSpot Server VM instead of the Client VM (Client VM isn't available for 64bit). Have you already tried to select the Java server mode ("-server" option) or increasing the stack-size limit ("-Xss" option)? See http://docs.oracle.com/javase/7/docs/technotes/tools/windows/java.html#options |
|
omg, I'm shocked, it works fine @ lubuntu 12.4 Will try to check newer JRE version for Windows ASAP (I'm at vacation now) |
|
I'm getting similar error when I run uglify on rhino from Ant task directly from cmd line on Windows 7. Weirdly, when I run the Ant task from Eclipse - it works. |
|
FYI To get it working you need to increase the stack size allocated for your JVM instance. To do that simply pass in "-Xss2048k" argument - you might need to modify the actual value, 2048 was the lowest that worked with my code base. |
|
Closing this issue as it looks to be configuration related and not an issue in Rhino itself |
I'm trying to run uglifyJS in Rhino 1.7R4
this command line produce valid output:
java -cp js.jar org.mozilla.javascript.tools.shell.Main -opt -1 rhinoUglifyJS.js
this command line produce java.lang.StackOverflowError
java -cp js.jar org.mozilla.javascript.tools.shell.Main -opt 0 rhinoUglifyJS.js
I uploaded rhinoUglifyJS.js to http://www.sendspace.com/file/h42zif
The text was updated successfully, but these errors were encountered: