Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@scottschiller
Created September 2, 2011 03:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottschiller/1187837 to your computer and use it in GitHub Desktop.
Save scottschiller/1187837 to your computer and use it in GitHub Desktop.
Closure compiler "INTERNAL COMPILER ERROR" with soundmanager2-nodebug.js (Compiler version 1346)
[ Report for Google Closure Compiler folks, internal compiler error on routinely-compressed JS ]
Source file used:
https://raw.github.com/scottschiller/SoundManager2/V2.97a.20110801+DEV/script/soundmanager2-nodebug.js
Reporting this per instructions in the compiler output.
For what it's worth, compilation has previously been successful until I updated the compiler to the build below.
This version of the compiler fails:
Closure Compiler (http://code.google.com/closure/compiler)
Version: 1346
Built on: 2011/08/11 15:02
Previous version I had prior to downloading, which works:
Closure Compiler (http://code.google.com/closure/compiler)
Version: 1180
Built on: 2011/06/15 21:40
My installed JRE:
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-383-11A511)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-383, mixed mode)
(Hardware: 2011 Mac Mini Server, OS X Lion 10.7.1)
Output as follows...
--- snip ---
java -jar ~/compiler.jar --compilation_level SIMPLE_OPTIMIZATIONS --js script/soundmanager2-nodebug.js --js_output_file compiler-test.js
script/soundmanager2-nodebug.js:364: WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
if (_tO.isMovieStar) {
^
script/soundmanager2-nodebug.js:372: WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
if (_tO.loops > 1) {
^
script/soundmanager2-nodebug.js:938: WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
if (!result && !_suppressDebug) {
^
script/soundmanager2-nodebug.js:959: WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
if (_didInit) {
^
script/soundmanager2-nodebug.js:993: WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
if (_didInit) {
^
script/soundmanager2-nodebug.js:1127: WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
if (_s.soundIDs.length) {
^
script/soundmanager2-nodebug.js:2669: WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
if (this._t && this._t.sID) {
^
script/soundmanager2-nodebug.js:3456: WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
if (_s.didFlashBlock) {
^
script/soundmanager2-nodebug.js:4035: WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
if (_s.o) {
^
script/soundmanager2-nodebug.js:4078: WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
if (!_didInit) {
^
script/soundmanager2-nodebug.js:4080: WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
if (!_overHTTP && p) {
^
script/soundmanager2-nodebug.js:4082: WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
if (!_s.debugFlash) {
^
script/soundmanager2-nodebug.js:4086: WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
if (p === 0) {
^
script/soundmanager2-nodebug.js:4211: WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
if (_s.waitForWindowLoad && _windowLoaded) {
^
0 error(s), 14 warning(s)
java.lang.RuntimeException: java.lang.RuntimeException: INTERNAL COMPILER ERROR.
Please report this problem.
index (1) must be less than size (1)
Node(BLOCK): script/soundmanager2-nodebug.js:31:35
function SoundManager(smURL, smID) {
Parent(FUNCTION SoundManager): script/soundmanager2-nodebug.js:31:9
function SoundManager(smURL, smID) {
at com.google.javascript.jscomp.Compiler.runCallable(Compiler.java:629)
at com.google.javascript.jscomp.Compiler.runInCompilerThread(Compiler.java:574)
at com.google.javascript.jscomp.Compiler.compile(Compiler.java:556)
at com.google.javascript.jscomp.Compiler.compile(Compiler.java:515)
at com.google.javascript.jscomp.AbstractCommandLineRunner.doRun(AbstractCommandLineRunner.java:662)
at com.google.javascript.jscomp.AbstractCommandLineRunner.run(AbstractCommandLineRunner.java:295)
at com.google.javascript.jscomp.CommandLineRunner.main(CommandLineRunner.java:758)
Caused by: java.lang.RuntimeException: INTERNAL COMPILER ERROR.
Please report this problem.
index (1) must be less than size (1)
Node(BLOCK): script/soundmanager2-nodebug.js:31:35
function SoundManager(smURL, smID) {
Parent(FUNCTION SoundManager): script/soundmanager2-nodebug.js:31:9
function SoundManager(smURL, smID) {
at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:301)
at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:280)
at com.google.common.collect.Lists$ReverseList.reverseIndex(Lists.java:743)
at com.google.common.collect.Lists$ReverseList.get(Lists.java:774)
at com.google.javascript.jscomp.InlineObjectLiterals$InliningBehavior.replaceAssignmentExpression(InlineObjectLiterals.java:348)
at com.google.javascript.jscomp.InlineObjectLiterals$InliningBehavior.splitObject(InlineObjectLiterals.java:411)
at com.google.javascript.jscomp.InlineObjectLiterals$InliningBehavior.afterExitScope(InlineObjectLiterals.java:103)
at com.google.javascript.jscomp.ReferenceCollectingCallback.exitScope(ReferenceCollectingCallback.java:187)
at com.google.javascript.jscomp.NodeTraversal.popScope(NodeTraversal.java:560)
at com.google.javascript.jscomp.NodeTraversal.traverseFunction(NodeTraversal.java:520)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:465)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:473)
at com.google.javascript.jscomp.NodeTraversal.traverseFunction(NodeTraversal.java:518)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:465)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:473)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:473)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:473)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:473)
at com.google.javascript.jscomp.NodeTraversal.traverseRoots(NodeTraversal.java:286)
at com.google.javascript.jscomp.NodeTraversal.traverseRoots(NodeTraversal.java:446)
at com.google.javascript.jscomp.ReferenceCollectingCallback.process(ReferenceCollectingCallback.java:110)
at com.google.javascript.jscomp.InlineObjectLiterals.process(InlineObjectLiterals.java:66)
at com.google.javascript.jscomp.PhaseOptimizer$PassFactoryDelegate.processInternal(PhaseOptimizer.java:273)
at com.google.javascript.jscomp.PhaseOptimizer$NamedPass.process(PhaseOptimizer.java:250)
at com.google.javascript.jscomp.PhaseOptimizer$LoopInternal.process(PhaseOptimizer.java:337)
at com.google.javascript.jscomp.PhaseOptimizer.process(PhaseOptimizer.java:168)
at com.google.javascript.jscomp.Compiler.optimize(Compiler.java:1634)
at com.google.javascript.jscomp.Compiler.compileInternal(Compiler.java:664)
at com.google.javascript.jscomp.Compiler.access$000(Compiler.java:70)
at com.google.javascript.jscomp.Compiler$1.call(Compiler.java:559)
at com.google.javascript.jscomp.Compiler$1.call(Compiler.java:556)
at com.google.javascript.jscomp.Compiler$2.run(Compiler.java:601)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.IndexOutOfBoundsException: index (1) must be less than size (1)
... 33 more
--- snip ---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment