bufanliu / apparat

Automatically exported from code.google.com/p/apparat
0 stars 0 forks source link

Error when compiling DEBUG mode #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Unfortunately I can not provide an SWF file, since the file for which the 
problem actually occurs is private.

Compiling the SWF file in release mode works just finde, but when compiling in 
DEBUG mode, the assertion below is triggered.

What is the expected output? What do you see instead?
apply_apparat:
        [tdsi] [INFO] Apparat -- http://apparat.googlecode.com/
        [tdsi] [INFO] Launching tool: Turbo Diesel Sport Injection
        [tdsi] [INFO] Cpool rebuild required.
        [tdsi] [INFO] Cpool rebuild required.
        [tdsi] java.lang.AssertionError: assertion failed: Illegal value: -1
        [tdsi]    at apparat.abc.AbcOutputStream.writeU30(AbcOutputStream.scala:95)
        [tdsi]    at apparat.abc.Abc$$anonfun$writePool$7.apply(Abc.scala:324)
        [tdsi]    at apparat.abc.Abc$$anonfun$writePool$7.apply(Abc.scala:299)
        [tdsi]    at apparat.abc.Abc$$anonfun$writeTable$1$1.apply$mcVI$sp(Abc.scala:274)
        [tdsi]    at scala.collection.immutable.Range$ByOne$class.foreach$mVc$sp(Range.scala:282)
        [tdsi]    at scala.collection.immutable.Range$$anon$2.foreach$mVc$sp(Range.scala:265)
        [tdsi]    at apparat.abc.Abc.writeTable$1(Abc.scala:273)
        [tdsi]    at apparat.abc.Abc.writePool(Abc.scala:298)
        [tdsi]    at apparat.abc.Abc.write(Abc.scala:208)
        [tdsi]    at apparat.abc.Abc$$anonfun$write$2.apply(Abc.scala:201)
        [tdsi]    at apparat.abc.Abc$$anonfun$write$2.apply(Abc.scala:201)
        [tdsi]    at apparat.utils.IO$.using(IO.scala:109)
        [tdsi]    at apparat.abc.Abc.write(Abc.scala:201)
        [tdsi]    at apparat.abc.Abc$$anonfun$toByteArray$1.apply(Abc.scala:218)
        [tdsi]    at apparat.abc.Abc$$anonfun$toByteArray$1.apply(Abc.scala:218)
        [tdsi]    at apparat.utils.IO$.using(IO.scala:109)
        [tdsi]    at apparat.abc.Abc.toByteArray(Abc.scala:218)
        [tdsi]    at apparat.abc.Abc.write(Abc.scala:203)
        [tdsi]    at apparat.tools.tdsi.TurboDieselSportInjection$TDSITool$$anonfun$run$4.apply(TurboDieselSportInjection.scala:177)
        [tdsi]    at apparat.tools.tdsi.TurboDieselSportInjection$TDSITool$$anonfun$run$4.apply(TurboDieselSportInjection.scala:125)
        [tdsi]    at scala.collection.immutable.HashMap$HashMap1.foreach(HashMap.scala:125)
        [tdsi]    at scala.collection.immutable.HashMap$HashTrieMap.foreach(HashMap.scala:344)
        [tdsi]    at scala.collection.immutable.HashMap$HashTrieMap.foreach(HashMap.scala:344)
        [tdsi]    at apparat.tools.tdsi.TurboDieselSportInjection$TDSITool.run(TurboDieselSportInjection.scala:125)
        [tdsi]    at apparat.tools.ApparatApplication$.apply(ApparatApplication.scala:73)
        [tdsi]    at apparat.tools.tdsi.TurboDieselSportInjection$.main(TurboDieselSportInjection.scala:40)
        [tdsi]    at apparat.tools.tdsi.TurboDieselSportInjection.main(TurboDieselSportInjection.scala)
        [tdsi]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        [tdsi]    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        [tdsi]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        [tdsi]    at java.lang.reflect.Method.invoke(Unknown Source)
        [tdsi]    at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
        [tdsi]    at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
        [tdsi]    at org.apache.tools.ant.taskdefs.Java.run(Java.java:764)
        [tdsi]    at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218)
        [tdsi]    at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132)
        [tdsi]    at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105)
        [tdsi]    at apparat.embedding.ant.ApparatTask.execute(ApparatTask.scala:56)
        [tdsi]    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        [tdsi]    at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source)
        [tdsi]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        [tdsi]    at java.lang.reflect.Method.invoke(Unknown Source)
        [tdsi]    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        [tdsi]    at org.apache.tools.ant.Task.perform(Task.java:348)
        [tdsi]    at org.apache.tools.ant.Target.execute(Target.java:357)
        [tdsi]    at org.apache.tools.ant.Target.performTasks(Target.java:385)
        [tdsi]    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        [tdsi]    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
        [tdsi]    at org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
        [tdsi]    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        [tdsi]    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
        [tdsi]    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
        [tdsi]    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        [tdsi]    at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source)
        [tdsi]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        [tdsi]    at java.lang.reflect.Method.invoke(Unknown Source)
        [tdsi]    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        [tdsi]    at org.apache.tools.ant.Task.perform(Task.java:348)
        [tdsi]    at org.apache.tools.ant.Target.execute(Target.java:357)
        [tdsi]    at org.apache.tools.ant.Target.performTasks(Target.java:385)
        [tdsi]    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        [tdsi]    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        [tdsi]    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        [tdsi]    at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
        [tdsi]    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        [tdsi]    at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:662)
        [tdsi]    at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:495)
        [tdsi]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        [tdsi]    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        [tdsi]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        [tdsi]    at java.lang.reflect.Method.invoke(Unknown Source)
        [tdsi]    at org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
        [tdsi]    at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:298)
        [tdsi]    at java.lang.Thread.run(Unknown Source)

What version of the product are you using? On what operating system?
Apparat 1.0RC8 on Windows 7

Original issue reported on code.google.com by mail.plu...@googlemail.com on 20 Dec 2010 at 9:28

GoogleCodeExporter commented 9 years ago
Unfortunately without the file causing the bug it will be difficult to hunt it 
down. Maybe if you can reproduce the bug with another small test case, or send 
to Joa or me in private the offending file ?

Patrick.

Original comment by leclech.patrick on 20 Dec 2010 at 9:40

GoogleCodeExporter commented 9 years ago
I think this is a major problem at the moment. I had a file at the office as 
well, something has been changed in the Flex SDK.

Original comment by joaebert on 31 Dec 2010 at 1:08

GoogleCodeExporter commented 9 years ago

Original comment by joaebert on 31 Dec 2010 at 1:08

GoogleCodeExporter commented 9 years ago

Original comment by joaebert on 1 Feb 2011 at 6:56