node-closure icon indicating copy to clipboard operation
node-closure copied to clipboard

0.2.7 Causes a Java stack overflow.

Open treshugart opened this issue 9 years ago • 2 comments

I'll spare you the complete output, but here's some of it:

events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: java.lang.StackOverflowError
    at com.google.javascript.jscomp.parsing.IRFactory.handleJsDoc(IRFactory.java:792)
    at com.google.javascript.jscomp.parsing.IRFactory.transform(IRFactory.java:864)
    at com.google.javascript.jscomp.parsing.IRFactory.access$300(IRFactory.java:131)
    at com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression(IRFactory.java:1447)
    at com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process(IRFactory.java:2324)
    at com.google.javascript.jscomp.parsing.IRFactory.justTransform(IRFactory.java:1067)
    at com.google.javascript.jscomp.parsing.IRFactory.transform(IRFactory.java:865)
    at com.google.javascript.jscomp.parsing.IRFactory.access$300(IRFactory.java:131)
    at com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression(IRFactory.java:1447)
    at com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process(IRFactory.java:2324)
    at com.google.javascript.jscomp.parsing.IRFactory.justTransform(IRFactory.java:1067)
    at com.google.javascript.jscomp.parsing.IRFactory.transform(IRFactory.java:865)
    at com.google.javascript.jscomp.parsing.IRFactory.access$300(IRFactory.java:131)

...

    at ChildProcess.<anonymous> (/Users/tshugart/Sites/atlassian/aui/node_modules/closure-compiler/lib/index.js:64:15)
    at ChildProcess.emit (events.js:110:17)
    at Process.ChildProcess._handle.onexit (child_process.js:1067:12)

I don't have much more information, but I see two commits where the CC jar was updated between 0.2.6 and 0.2.7 which may have caused this. 0.2.6 works just fine for us. Were there any major changes in the updates to the jar?

treshugart avatar Jul 31 '15 05:07 treshugart

Would you post a gist of the full output.

jdalton avatar Jul 31 '15 06:07 jdalton

Here's the gist:

https://gist.github.com/treshugart/e11e6a870509a0ad8400

It's massive but it includes a simple minify script I used to reproduce the issue, the output and the actual file I was trying to minify.

Cheers.

treshugart avatar Jul 31 '15 07:07 treshugart