Giter Club home page Giter Club logo

apparat's People

Contributors

velo avatar

Watchers

 avatar

apparat's Issues

Add quiet mode

Add a "quiet mode" parameter for apps to disable logging.

Original issue reported on code.google.com by joaebert on 28 Sep 2010 at 8:08

Abstract/Concrete only works with public functions?

What steps will reproduce the problem?
1. Create base class with protected [Abstract] function
2. Create inherited class with implementation of Abstract function
3. Run concrete tool on swf

What is the expected output? What do you see instead?
I expect that concrete would correctly identify the function as implemented. 
However, it still returns the "must implement abstract method" error.

What version of the product are you using? On what operating system?
apparat-1.0RC8, Windows XP SP 3

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 19 Nov 2010 at 3:10

Reducer Ant Tast Fails

I am not sure how to setup the build.xml file to work with the Reducer.

Here is the build.xml that I am using...
<reducer in="${dir.bin}/swf.swf" out="${dir.bin}/swf.swf">
    <arg m="true"/>
</reducer>


What do you see instead?
"Use setArgument instead of createArg"

What version of the product are you using? On what operating system?
apparat-1.0.RC8-bin.tar.gz

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 16 Nov 2010 at 9:46

REDUCER: Image colors shift in reduced PNGs on FP 9.0.xxx

What steps will reproduce the problem?
1. Embed PNG image in pure AS3 Flex project using [Embed...] metadata tag
2. Export and run reducer in terminal with settings like this:
java -jar reducer.jar -input Main.swf -output MainXs.swf -quality 0.6
3. View output SWF in MAC FF using Flash Player 9.0.115 or 9.0.124.

What is the expected output? What do you see instead?
The images that were PNGs and have their colors shifted. The shift appears
to be related to the alpha channel in a given pixel. In the example images
the band with hand drawn text is the PNG while the background color
and image with cloth is another image that was originally a JPEG.

What version of the product are you using? On what operating system?
FF 3.6.3 and Safari 4.0.4 on MAC OS 10.5.8 with Flash Players 9.0.115 & 9.0.124
It appears properly in Flash Players 10.0.032 & 10.0.045
The version of reducer was created September 2, 2009. I was unable
to find a version number.

Thank you for building this extremely useful tool. I hope this doesn't prove
very problematic.

Original issue reported on code.google.com by brett%[email protected] on 5 Apr 2010 at 4:50

Attachments:

Repeated exception in tdsi

D:\Code\qtrack>tdsi -i 1.swf -o 2.swf
[INFO] Apparat -- http://apparat.googlecode.com/
[INFO] Launching tool: Turbo Diesel Sport Injection
[INFO] Cpool rebuild required.
<function0>: caught java.lang.AssertionError: assertion failed
java.lang.AssertionError: assertion failed
        at scala.Predef$.assert(Predef.scala:77)
        at apparat.abc.AbcOutputStream.writeU08(AbcOutputStream.scala:85)
        at apparat.bytecode.BytecodeEncoder$.u08$1(BytecodeEncoder.scala:36)
        at apparat.bytecode.BytecodeEncoder$.writeOp$1(BytecodeEncoder.scala:103)
        at apparat.bytecode.BytecodeEncoder$$anonfun$apply$2.apply(BytecodeEncoder.scala:201)
        at apparat.bytecode.BytecodeEncoder$$anonfun$apply$2.apply(BytecodeEncoder.scala:201)
        at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61)
        at scala.collection.immutable.List.foreach(List.scala:45)
        at apparat.bytecode.BytecodeEncoder$.apply(BytecodeEncoder.scala:201)
        at apparat.bytecode.Bytecode.storeIn(Bytecode.scala:49)
        at apparat.abc.Abc$$anonfun$5$$anonfun$apply$2.apply(Abc.scala:155)
        at apparat.abc.Abc$$anonfun$5$$anonfun$apply$2.apply(Abc.scala:155)
        at scala.actors.Futures$$anonfun$1.apply(Future.scala:128)
        at scala.actors.Futures$$anonfun$1.apply(Future.scala:128)
        at scala.actors.FutureActor$$anonfun$act$1.apply(Future.scala:94)
        at scala.actors.FutureActor$$anonfun$act$1.apply(Future.scala:94)
        at scala.actors.Reactor$class.seq(Reactor.scala:280)
        at scala.actors.FutureActor.seq(Future.scala:56)
        at scala.actors.Reactor$$anon$3.andThen(Reactor.scala:258)
        at scala.actors.FutureActor.act(Future.scala:95)
        at scala.actors.Reactor$$anonfun$dostart$1.apply(Reactor.scala:222)
        at scala.actors.Reactor$$anonfun$dostart$1.apply(Reactor.scala:222)
        at scala.actors.ReactorTask.run(ReactorTask.scala:36)
        at scala.concurrent.forkjoin.ForkJoinPool$AdaptedRunnable.exec(ForkJoinPool.java:611)
        at scala.concurrent.forkjoin.ForkJoinTask.quietlyExec(ForkJoinTask.java:422)
        at scala.concurrent.forkjoin.ForkJoinWorkerThread.mainLoop(ForkJoinWorkerThread.java:340)
        at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:325)
Terminate batch job (Y/N)? y


attached swf with a problem

Original issue reported on code.google.com by [email protected] on 10 Dec 2010 at 2:06

Attachments:

LZMA not working with SDK 4.5.0.20967

What steps will reproduce the problem?
1. Add 1.0-RC9 and add reducer task (with 7za on classpath) to flex maven build
2. LZMA applies atleast 30% compression on an average
3. When the resulting SWF is opened nothing happens

What is the expected output? What do you see instead?
Application runs, but nothing happens. If LZMA is turned off then it works fine.

What version of the product are you using? On what operating system?
Flex SDK 4.5.0.20967, Flash player 10.3 and Mac OSX.

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 3 Jul 2011 at 2:03

__cint always returns 0

What steps will reproduce the problem?
--
When I debug my application, I can clearly see, that __cint function returns 0, 
no matter what the input is.
I can see that function declaration is like this (in __cint.as):
public function __cint(value: *): int {return 0;}

What is the expected output? What do you see instead?
--
I excpected int value, and I get 0.

What version of the product are you using? On what operating system?
--
RC9, Windows 7

Original issue reported on code.google.com by [email protected] on 4 Sep 2011 at 7:25

TDSI: Inlined functions with logical OR or logical AND operators

Inlined functions that use logical OR or logical AND don't seem to work ... 
TDSI throws a stack trace saying "op not found into graph .."

someInlinedFun_1 and someInlinedFun_3 throw this error
someInlinedFun_2 and someInlinedFun_4 work fine

I did not try other operators.


        public static function someInlinedFun_1(n:Number):Boolean
        {
            if(n == 1  || n == 2 ) 
                return true;
            return false;
        }  

        public static function someInlinedFun_2(n:Number):Boolean
        {
            if(n == 1) return true;
            if(n == 2) return true;

            return false;
        }    
        public static function someInlinedFun_3(n:Number):Boolean
        {
            if(n > 1  && n < 2) 
                return true;
            return false;
        }  

        public static function someInlinedFun_4(n:Number):Boolean
        {
            if(n > 1)
                if(n < 2) 
                    return true;

            return false;
        }  



Original issue reported on code.google.com by mrinal.wadhwa on 20 Jun 2010 at 5:38

tdsi always terminates batch file (windows)

if I modify tdsi.bat to

:: @echo off
scala -cp "%~dp0\*" apparat.tools.tdsi.TurboDieselSportInjection %*
echo yo

I expect to see "yo" message, but I don't. If I call tdsi from another batch 
file, it terminates as well, so basically I can't run any other command after 
tdsi is done.

Original issue reported on code.google.com by [email protected] on 12 Dec 2010 at 2:23

maven build fails - filtering turned on AND off in apparat-archetypes

What steps will reproduce the problem?
1. checkout code
2. run any maven goal (eclipse:eclipse in my case)

What is the expected output? What do you see instead?
expected a successful build, but failed.

What version of the product are you using? On what operating system?
latest sourcecode, maven 3.0, java 1.6.0_20, osx 10.6.4

Please provide any additional information below.
solution: in pom.xml simply remove the build/resources/resource node disabling 
the filtering

this is the original error message: Failed to execute goal 
org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse (default-cli) on 
project apparat-archetype-tdsi: Request to merge when 'filtering' is not 
identical. Original=resource src/main/resources: output=target/classes, 
include=[**/pom.xml], exclude=[**/*.java], test=false, filtering=true, merging 
with=resource src/main/resources: output=target/classes, include=[], 
exclude=[**/pom.xml|**/*.java], test=false, filtering=false


PS: what do you think about using a build server for continuous integration? 
maybe sonatype can provide some hudson instance...

Original issue reported on code.google.com by [email protected] on 14 Oct 2010 at 5:26

NPE at apparat.abc.analysis.AbcUMLExport.gd3$1(AbcUMLExport.scala:329)

[INFO] Apparat -- http://apparat.googlecode.com/
[INFO] Launching tool: Dump
[INFO] Writing UML graph ...
java.lang.NullPointerException
    at apparat.abc.analysis.AbcUMLExport.gd3$1(AbcUMLExport.scala:329)
    at apparat.abc.analysis.AbcUMLExport.apparat$abc$analysis$AbcUMLExport$$getParameters(AbcUMLExport.scala:328)
    at apparat.abc.analysis.AbcUMLExport$$anonfun$apparat$abc$analysis$AbcUMLExport$$exportTraits$1.apply(AbcUMLExport.scala:228)
    at apparat.abc.analysis.AbcUMLExport$$anonfun$apparat$abc$analysis$AbcUMLExport$$exportTraits$1.apply(AbcUMLExport.scala:207)
    at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:34)
    at scala.collection.mutable.ArrayOps.foreach(ArrayOps.scala:34)
    at apparat.abc.analysis.AbcUMLExport$$anonfun$apparat$abc$analysis$AbcUMLExport$$printTypes$1.apply(AbcUMLExport.scala:169)
    at apparat.abc.analysis.AbcUMLExport$$anonfun$apparat$abc$analysis$AbcUMLExport$$printTypes$1.apply(AbcUMLExport.scala:163)
    at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61)
    at scala.collection.immutable.List.foreach(List.scala:45)
    at apparat.abc.analysis.AbcUMLExport$$anonfun$apparat$abc$analysis$AbcUMLExport$$printPackages$2$$anonfun$apply$1.apply$mcV$sp(AbcUMLExport.scala:133)
    at apparat.utils.IndentingPrintWriter.withIndent(IndentingPrintWriter.scala:44)
    at apparat.abc.analysis.AbcUMLExport$$anonfun$apparat$abc$analysis$AbcUMLExport$$printPackages$2.apply(AbcUMLExport.scala:132)
    at apparat.abc.analysis.AbcUMLExport$$anonfun$apparat$abc$analysis$AbcUMLExport$$printPackages$2.apply(AbcUMLExport.scala:125)
    at scala.collection.Iterator$class.foreach(Iterator.scala:631)
    at scala.collection.Iterator$$anon$22.foreach(Iterator.scala:416)
    at apparat.abc.analysis.AbcUMLExport.apparat$abc$analysis$AbcUMLExport$$printPackages(AbcUMLExport.scala:125)
    at apparat.abc.analysis.AbcUMLExport$$anonfun$to$1.apply$mcV$sp(AbcUMLExport.scala:114)
    at apparat.utils.IndentingPrintWriter.withIndent(IndentingPrintWriter.scala:44)
    at apparat.abc.analysis.AbcUMLExport.to(AbcUMLExport.scala:84)
    at apparat.abc.analysis.AbcUMLExport.to(AbcUMLExport.scala:75)
    at apparat.tools.dump.Dump$DumpTool.exportAbcs(Dump.scala:111)
    at apparat.tools.dump.Dump$DumpTool.run(Dump.scala:103)
    at apparat.tools.ApparatApplication$.apply(ApparatApplication.scala:73)
    at apparat.tools.dump.Dump$.main(Dump.scala:35)
    at apparat.tools.dump.Dump.main(Dump.scala)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at scala.tools.nsc.util.ScalaClassLoader$$anonfun$run$1.apply(ScalaClassLoader.scala:81)
    at scala.tools.nsc.util.ScalaClassLoader$class.asContext(ScalaClassLoader.scala:24)
    at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.asContext(ScalaClassLoader.scala:86)
    at scala.tools.nsc.util.ScalaClassLoader$class.run(ScalaClassLoader.scala:81)
    at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.run(ScalaClassLoader.scala:86)
    at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:83)
    at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)
java.lang.NullPointerException
    at java.util.regex.Matcher.getTextLength(Matcher.java:1140)
    at java.util.regex.Matcher.reset(Matcher.java:291)
    at java.util.regex.Matcher.<init>(Matcher.java:211)
    at java.util.regex.Pattern.matcher(Pattern.java:888)
    at java.util.Formatter.parse(Formatter.java:2458)
    at java.util.Formatter.format(Formatter.java:2414)
    at java.util.Formatter.format(Formatter.java:2367)
    at java.lang.String.format(String.java:2769)
    at scala.collection.immutable.StringLike$class.format(StringLike.scala:251)
    at scala.collection.immutable.StringOps.format(StringOps.scala:31)
    at apparat.log.LoggerImpl.logIf(LoggerImpl.scala:89)
    at apparat.log.LoggerImpl.fatal(LoggerImpl.scala:33)
    at apparat.tools.ApparatApplication$.apply(ApparatApplication.scala:78)
    at apparat.tools.dump.Dump$.main(Dump.scala:35)
    at apparat.tools.dump.Dump.main(Dump.scala)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at scala.tools.nsc.util.ScalaClassLoader$$anonfun$run$1.apply(ScalaClassLoader.scala:81)
    at scala.tools.nsc.util.ScalaClassLoader$class.asContext(ScalaClassLoader.scala:24)
    at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.asContext(ScalaClassLoader.scala:86)
    at scala.tools.nsc.util.ScalaClassLoader$class.run(ScalaClassLoader.scala:81)
    at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.run(ScalaClassLoader.scala:86)
    at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:83)
    at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)

Original issue reported on code.google.com by [email protected] on 31 May 2011 at 4:14

Vector.<T> gets converted to Vector.<uint>

What steps will reproduce the problem?
1. Create a new class using Vector.<String> for instance.
2. Read and write the ABC contents

What is the expected output? What do you see instead?
Expected is no error, Vector.<String> should stay Vector.<String>. Instead 
Vector.<String> gets converted to a Vector.<uint> and this results in a 
runtime error. Currently all Vector.<T> types get converted to Vector.<uint>.


Original issue reported on code.google.com by joaebert on 13 Aug 2009 at 11:01

Multi-threaded stripper hangs

What steps will reproduce the problem?

Invoking stripper with -Dapparat.threads=true on any of the following SWCs:

- com.adobe.flex.framework:mx:4.5.0.18623:swc 
- com.adobe.flex.framework:spark:4.5.0.18623:swc.
- com.adobe.flex.framework:framework:4.5.0.18623:swc

What is the expected output? What do you see instead?

Instead of completing, Stripper just hangs. (The java process is alive, but 
idle.)

What version of the product are you using?

com.googlecode.apparat:apparat-core:1.0.RC8

Original issue reported on code.google.com by [email protected] on 26 Jan 2011 at 5:44

Can't read an SWC

Hi, it's me again with an unreadable SWC :) I'm using apparat 
apparat-aggregator-1.0.RC6. When I try to read the SWC attached, I get an 
exception:

java.lang.AssertionError: assertion failed
    at scala.Predef$.assert(Predef.scala:77)
    at apparat.swf.Swf.read(Swf.scala:135)
    at apparat.swf.Swf$$anonfun$read$2.apply(Swf.scala:98)
    at apparat.swf.Swf$$anonfun$read$2.apply(Swf.scala:98)
    at apparat.utils.IO$.using(IO.scala:109)
    at apparat.swf.Swf.read(Swf.scala:98)
    at apparat.swf.Swf$$anonfun$read$3.apply(Swf.scala:100)
    at apparat.swf.Swf$$anonfun$read$3.apply(Swf.scala:100)
    at apparat.utils.IO$.using(IO.scala:109)
    at apparat.swf.Swf.read(Swf.scala:100)
    at apparat.swf.Swf.read(Swf.scala:104)
    at apparat.swf.Swf$.fromSwc(Swf.scala:73)
    at apparat.utils.SwcStrategy.read(TagContainer.scala:142)
    at apparat.utils.TagContainer$$anonfun$read$1.apply(TagContainer.scala:65)
    at apparat.utils.TagContainer$$anonfun$read$1.apply(TagContainer.scala:64)
    at apparat.utils.IO$.using(IO.scala:109)
    at apparat.utils.TagContainer.read(TagContainer.scala:64)
    at apparat.utils.TagContainer$.fromFile(TagContainer.scala:20)
    at apparat.utils.TagContainer.fromFile(TagContainer.scala)

Original issue reported on code.google.com by [email protected] on 11 Nov 2010 at 5:09

Attachments:

Macro and Inline Expansion should fail if a method contains subtraits

If a Method which is already part of a TraitMethod contains subtraits we should 
fail in Macro- and InlineExpansion.

This could lead to severe bugs if anyone write code like

{{{
public function someMacro(): void { const x: int = 0; }//<- which slot do we 
have to set now?
}}}

Original issue reported on code.google.com by joaebert on 14 Jul 2010 at 3:17

Reducer seems to strip the SWF Metadata tag but forgets to off the HasMetadata flag in FileAttributes

#What steps will reproduce the problem?
1. A SWF with metadata, mxmlc by default adds some
2. Run the swf through reducer 
3. Various Dump utilities like dump abc fail on this swf ..complaining that 
HasMetadata is set but 
there is no metadata 

#What is the expected output? What do you see instead?
Reducer should off the HasMetadata flag in the file attributes tag, dump should 
succeed on 
reduced SWFs

Thank you,
Mrinal


Original issue reported on code.google.com by mrinal.wadhwa on 28 May 2010 at 5:25

VerifyError 1024 with combination of TDSI Memory reads

A stack underflow verify errors when I use a particular combination of inlined 
Memory calls with 
TDSI. I've seen the error with both readInt and readFloat; so I assume it 
effects all the read* 
functions at least.

It occurs in r53, which I believe includes the fix for the other stack 
underflow bug, #4.

Here is a small example which causes the VerifyError 1024.

package {
  import com.joa_ebert.abc.bytecode.asbridge.Memory;
  import flash.display.Sprite;

  public class Underflow extends Sprite {
    private static const FOUR:int = 4;
    public function Underflow() {
      Memory.readInt(0) + Memory.readInt(FOUR);
    }
  }
}

In this example, the problem is easy to work around. Removing the const and 
using the literal 4 
eliminates the VerifyError.

Original issue reported on code.google.com by [email protected] on 18 Aug 2009 at 4:31

Error when compiling DEBUG mode

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 [email protected] on 20 Dec 2010 at 9:28

  • Merged into: #34

Coverage suggestion and question

Would it be possible to provide an example on how to generate a coverage report 
using one of the Apparat Ant tasks? FlexMojos requirement that we use Maven is 
an issue as we already do everything (including running our unit tests) using 
Ant.

Does Apparat provide code coverage at the statement and branch level or, as 
FlexCover, only at the method level? I was not able to find any example that 
would show me one way or the other (the one at the FlexMojos site is too 
trivial) and there is some confusion in this area based on comments from the 
FlexUnit team.

Original issue reported on code.google.com by [email protected] on 5 Aug 2011 at 5:45

Debug information in SWCs

Upgrade to FM 4.0 and remove debug information from SWCs.

Original issue reported on code.google.com by joaebert on 8 Feb 2011 at 12:27

ant tasks problems with coverage

What steps will reproduce the problem?

1.  see attached zip
2. i added the Coverage class to example_as3 source
3. i added coverage in the compile target like:
         <coverage
            failonerror="true"
            fork="true"
            classpathref="apparat.path"
            in="example-as3.swf"
            out="example-as3_coverage.swf"
            dir="${dir.bin}"
            source="${dir.src}">
        </coverage>

What is the expected output? What do you see instead?

expected a bigger .swf for the instrumented version
but filesize exactly the same of the instrumented and the regular swf


What version of the product are you using? On what operating system?
osx 10.6.4, apparat 1.0-RC8


Please provide any additional information below.
setting the compiler on debug mode fixes the problem. I'm not sure if the 
instrumentation should only work with debug versions of the input swf. If so 
this might be better documented in the README.

Original issue reported on code.google.com by [email protected] on 16 Nov 2010 at 3:01

PrivateNamespace equality

What steps will reproduce the problem?
1. Create two classes A and B.
2. Create a private function with the same name in both classes.
3. Let B extend A.

What is the expected output? What do you see instead?
No error is expected, but since PrivateNamespace("") and PrivateNamespace("") 
are equal in terms of equality the constant pool will add it just once. The 
verifier will throw an error though because B would override init in A.


Original issue reported on code.google.com by joaebert on 13 Aug 2009 at 10:46

Please add support for Scala 2.8.1.final

What steps will reproduce the problem?
1. install Scala 2.8.1.final and apparat 1.0 RC8
2. launch 'reducer'

What is the expected output? What do you see instead?
I get the output:

[INFO] Apparat -- http://apparat.googlecode.com/
[ERROR] Apparat requires Scala version 2.8.0.final.
[ERROR] Download it here: http://www.scala-lang.org/downloads

What version of the product are you using? On what operating system?
apparat 1.0 RC8 on Mac OSX

Original issue reported on code.google.com by [email protected] on 17 Jan 2011 at 10:42

Coverage should inject missing cpool items

The Coverage tool is quite stupid at the moment when it needs to inject the 
QName for the Coverage class and its onSample method.

Those are existing already if used from FlexMojos. We should insert those 
into the cpool instead of rebuilding the whole beast.


Original issue reported on code.google.com by joaebert on 15 Apr 2010 at 5:27

README and LICENCE ar not in the binary release

Hi small issue which i thought you would like to know.

The text files in the root of the source are not in the distribution. 
Especially the README is a handy item to have for a first time user.

BTW Apparat is great!

Arnoud



Original issue reported on code.google.com by [email protected] on 6 Nov 2010 at 3:50

uint typed loop counters causes a runtime exception when SWF ran through TAAS

What steps will reproduce the problem?
1. Create a flash file (FP 10) with the following code in the first frame:
for (var i: uint = 0; i < 10; i++)
{
trace("counter = " + i);
}
2. Publish swf file 
3. Run swf through TaasCompiler (used compile method from
TaasCompilerTests) - swf i got as output is attached
4. run the output swf file using debug player or flash ide

What is the expected output? What do you see instead?
EXPECTED: runs and shows 10 lines of output
ACTUAL: Runtime Error - VerifyError: Error #1068: uint and Number cannot be
reconciled. (full message in text file attached)

What version of the product are you using? On what operating system?
Apparat - r148
Windows XP
Flash CS4 - AS3 Flash player 10
JRE - 1.6.0_07

Original issue reported on code.google.com by daniel%[email protected] on 2 Oct 2009 at 4:58

Attachments:

asmifier label output is wrong

What steps will reproduce the problem?
1. Run asmifier on a swf that has loops
2. examine the produced actionscript - it has errors in the generated __asm, 
for example no comm between a String and the word Label

            "L4:"        
            Label,

Or sometimes just a string on its own

            SetLocal(4),
            "L1:"
            GetLocal(4),


What is the expected output?  What do you see instead?

I don't know what the syntax of using Label is inside an __asm block, but it 
seems that the code generated by __asm is not it :-) . Sorry


What version of the product are you using? On what operating system?

Apparat RC7 with Scala 2.8 final on OS X 10.6.4



Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 23 Oct 2010 at 5:02

Deploy it on maven central

Would be nice to have it deployed under a maven repository.

That would allow me to use apparat to create a maven goal inside flexmojos.


VELO

Original issue reported on code.google.com by [email protected] on 8 Mar 2010 at 5:07

Abc.writeTraits doesn't handle Null type correctly in case we use strictly equality (===) or (!==)

What steps will reproduce the problem?
1. compile TestNull.as
2. run TDSI with all option to false with TestNull.swf
3. execute the produced SWF

What is the expected output? 
 No error, nothing have to happend
What do you see instead?
 An Error is thrown


What version of the product are you using?
 Revision 148

On what operating system?
 XP


Please provide any additional information below.

I have join the source test case, and two SWFs one without TDSI and another
one modified by TDSI.

I have made a patch for com.joa_ebert.apparat.abc.Abc.writeTraits function
to fix these errors.
Even if a traitSlot or traitConst have a null value it can have also a
valueType associated (in my case the Null value (type:0x0c))

Hope it helps.

Patrick.

Original issue reported on code.google.com by leclech.patrick on 2 Oct 2009 at 11:29

Attachments:

Can't read robotlegs framework v1.1.2 swc

I'm using apparat apparat-aggregator-1.0.RC6. I'm getting an exception on 
trying to read robotlegs SWC 
(http://downloads.robotlegs.org/robotlegs-framework-v1.1.2.zip):

java.lang.RuntimeException: Unexpected directory in SWC.
    at scala.Predef$.error(Predef.scala:58)
    at apparat.swc.Swc.extract(Swc.scala:117)
    at apparat.swc.Swc.read(Swc.scala:70)
    at apparat.swc.Swc$$anonfun$read$2.apply(Swc.scala:66)
    at apparat.swc.Swc$$anonfun$read$2.apply(Swc.scala:66)
    at apparat.utils.IO$.using(IO.scala:109)
    at apparat.swc.Swc.read(Swc.scala:66)
    at apparat.swc.Swc$.fromInputStream(Swc.scala:52)
    at apparat.utils.SwcStrategy.read(TagContainer.scala:141)
    at apparat.utils.TagContainer$$anonfun$read$1.apply(TagContainer.scala:65)
    at apparat.utils.TagContainer$$anonfun$read$1.apply(TagContainer.scala:64)
    at apparat.utils.IO$.using(IO.scala:109)
    at apparat.utils.TagContainer.read(TagContainer.scala:64)
    at apparat.utils.TagContainer$.fromFile(TagContainer.scala:20)
    at apparat.utils.TagContainer.fromFile(TagContainer.scala)

Original issue reported on code.google.com by [email protected] on 4 Oct 2010 at 4:52

Problem with Macro

Hello.

I'm trying to port my haXe library ( http://www.blooddy.by ) to apparat.

I have a problem with a macro. I get an exception:

<function0>: caught java.lang.AssertionError: assertion failed
java.lang.AssertionError: assertion failed
     at scala.Predef$.assert(Predef.scala:77)
     at apparat.abc.AbcOutputStream.writeU08(AbcOutputStream.scala:85)
     at apparat.bytecode.BytecodeEncoder$.u08$1(BytecodeEncoder.scala:36)
     at apparat.bytecode.BytecodeEncoder$.writeOp$1(BytecodeEncoder.scala:103)
     at apparat.bytecode.BytecodeEncoder$$anonfun$apply$2.apply(BytecodeEncoder.scala:201)
     at apparat.bytecode.BytecodeEncoder$$anonfun$apply$2.apply(BytecodeEncoder.scala:201)
     at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61)
     at scala.collection.immutable.List.foreach(List.scala:45)
     at apparat.bytecode.BytecodeEncoder$.apply(BytecodeEncoder.scala:201)
     at apparat.bytecode.Bytecode.storeIn(Bytecode.scala:49)
     at apparat.abc.Abc$$anonfun$6$$anonfun$apply$2.apply(Abc.scala:155)
     at apparat.abc.Abc$$anonfun$6$$anonfun$apply$2.apply(Abc.scala:155)
     at scala.actors.Futures$$anonfun$1.apply(Future.scala:128)
     at scala.actors.Futures$$anonfun$1.apply(Future.scala:128)
     at scala.actors.FutureActor$$anonfun$act$1.apply(Future.scala:94)
     at scala.actors.FutureActor$$anonfun$act$1.apply(Future.scala:94)
     at scala.actors.Reactor$class.seq(Reactor.scala:280)
     at scala.actors.FutureActor.seq(Future.scala:56)
     at scala.actors.Reactor$$anon$3.andThen(Reactor.scala:258)
     at scala.actors.FutureActor.act(Future.scala:95)
     at scala.actors.Reactor$$anonfun$dostart$1.apply(Reactor.scala:222)
     at scala.actors.Reactor$$anonfun$dostart$1.apply(Reactor.scala:222)
     at scala.actors.ReactorTask.run(ReactorTask.scala:36)
     at scala.concurrent.forkjoin.ForkJoinPool$AdaptedRunnable.exec(ForkJoinPool.java:611)
     at scala.concurrent.forkjoin.ForkJoinTask.quietlyExec(ForkJoinTask.java:422)
     at scala.concurrent.forkjoin.ForkJoinWorkerThread.mainLoop(ForkJoinWorkerThread.java:340)
     at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:325)

I'm compiling swc using tdsi.
The error occurs only with this class: 
https://github.com/blooddy/blooddy_crypto/blob/md5/src/by/blooddy/crypto/MD5.as

Original issue reported on code.google.com by mryzhy on 7 Mar 2011 at 9:04

  • Merged into: #52

the taas compiler

hello:
 I'm really interested in the TAAS compiler,but I can't find it here....
 I don't know whether it's an independent tools or integrated in the framework?or something else.
 any suggestions or references are appreciated.^_^

Original issue reported on code.google.com by [email protected] on 14 Jul 2010 at 1:28

PNG images disappear

What steps will reproduce the problem?
1. Create a SWF with PNG images smaller 16x16
2. Run Reducer
3. PNG images are gone

What is the expected output? What do you see instead?
Images should stay intact and not disappear.


Original issue reported on code.google.com by joaebert on 18 Aug 2009 at 8:37

Java heap memory

What steps will reproduce the problem?

1. compress a very big SWF file
2. I used that command line:
sh scala -cp /Users/romuald/scala/apparat/apparat.jar 
apparat.tools.reducer.Reducer -
Dapparat.7z.path=/Applications/7zX.app/Contents/Resources/7za -i 
/Users/romuald/Documents/devserver/temp/apparat/source.swf -o 
/Users/romuald/Documents/devserver/temp/apparat/output.swf

What is the expected output? What do you see instead?

Going through the process

What version of the product are you using? On what operating system?

Mac OSX 10.6.3
Scala code runner version 2.8.0.RC3 -- Copyright 2002-2010, LAMP/EPFL
Apparat 1.0 snapshot

Please provide any additional information below.

I get the output:

[i] Apparat -- http://apparat.googlecode.com/
[i] Launching tool: Reducer
[-] Java heap space
java.lang.OutOfMemoryError: Java heap space
    at apparat.swf.Swf.uncompress(Swf.scala:192)
    at apparat.swf.Swf.read(Swf.scala:105)
    at apparat.swf.Swf$.fromInputStream(Swf.scala:61)
    at apparat.utils.SwfStrategy.read(TagContainer.scala:110)
    at apparat.utils.TagContainer.read(TagContainer.scala:64)
    at apparat.tools.reducer.Reducer$ReducerTool.run(Reducer.scala:52)
    at apparat.tools.ApparatApplication$.apply(ApparatApplication.scala:31)
    at apparat.tools.reducer.Reducer$.main(Reducer.scala:17)
    at apparat.tools.reducer.Reducer.main(Reducer.scala)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at scala.tools.nsc.util.ScalaClassLoader$$anonfun$run$1.apply(ScalaClassLoader.scala:81)
    at scala.tools.nsc.util.ScalaClassLoader$class.asContext(ScalaClassLoader.scala:24)
    at 
scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.asContext(ScalaClassLoader.
scala:86)
    at scala.tools.nsc.util.ScalaClassLoader$class.run(ScalaClassLoader.scala:81)
    at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.run(ScalaClassLoader.scala:86)
    at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:83)
    at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)
[i] Completed in 348ms.

I tried to compress a big SWF file of a project I'm working on (113 Mb), I was 
getting the  same 
error memory error when I compiled my project with ANT+FDT.

To solve it and be able to compile, I had to allow more java memory in the 
mxmlc script of the 
flex SDK. Any way we could set the java memory used by apparat?

Just a quick try, let me know if I'm doing something wrong.

Thanks

Romu

Original issue reported on code.google.com by [email protected] on 4 Jun 2010 at 5:13

Enhancement request: Inlined classes should be removed from the final SWF

A class that inherits apparat.inline.Inlined and is used for inlining code .. 
lets say FastMath... after 
the inlining has been done, would it be possible to remove FastMath from the 
SWF .. or is there any 
particular reason for it to stay in the SWF?

Thank you,
Mrinal

Original issue reported on code.google.com by mrinal.wadhwa on 3 Jun 2010 at 11:15

VerifyError 1024 when running TDSI

What steps will reproduce the problem?
The content causing this error is unknown. But it happens after inlining 
memory calls with TDSI.

What is the expected output? What do you see instead?
No VerifyError is expected. The StackAnalyzer should fix this.



Original issue reported on code.google.com by joaebert on 18 Aug 2009 at 8:36

tdsi doesn't work. no opcode inlineed

What steps will reproduce the problem?
1. build swf
2. run tdsi
3. got nothing

What is the expected output? What do you see instead?
after tdsi, swf file should has opcode inline. but it doesn't work, the 
output swf is still working without opcode. 

What version of the product are you using? On what operating system?
win7, flashdevelop rc3, java6,tdsi.jar(31-10-09)

Please provide any additional information below.
dear joa, these cost me hours to find this issue.

Original issue reported on code.google.com by [email protected] on 23 Nov 2009 at 8:48

Repeating Reducer output with apparat shell

What steps will reproduce the problem?
1. Start apparat shell
2. Run reducer on a file
3. Run reducer on another file

What is the expected output? What do you see instead?
The second run should not repeat the output from the first run.  It continues 
to grow as you process more files.  I'm trying to process over 13,000 files, 
and it is taking more time to print the output than process the files.  I had 
to break up the processing into smaller batches.

What version of the product are you using? On what operating system?
  apparat-aggregator-1.0.RC6
  The problem happens on both Mac OS 10.6 and Windows 7 64BIT
  Scala version 2.8.0.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_20)

Please provide any additional information below.

Here's the output from my test scenario

Welcome to the Apparat!
Type "help" for a list of available commands ...

reducer -l -i ../Designer.swf -o ../out.swf
[INFO] Apparat -- http://apparat.googlecode.com/
[INFO] Launching tool: Reducer
[INFO] Creating LZMA compressed file.
[WARNING] 7z is not present on PATH. Fallback to normal compression.
[INFO] Compression ratio: 23.68%
[INFO] Total bytes: 153103
[INFO] Completed in 2508ms.
reducer -l -i ../Designer.swf -o ../out.swf
[INFO] Apparat -- http://apparat.googlecode.com/
[INFO] Launching tool: Reducer
[INFO] Creating LZMA compressed file.
[INFO] Creating LZMA compressed file.
[INFO] Compression ratio: 23.68%
[INFO] Compression ratio: 23.68%
[INFO] Total bytes: 153103
[INFO] Total bytes: 153103
[INFO] Completed in 1502ms.

Original issue reported on code.google.com by [email protected] on 20 Aug 2010 at 3:44

Include Javazoom in assemby

[...]
[DEBUG] Using rectangular texture mode.
java.lang.NoClassDefFoundError: javazoom/jl/decoder/BitstreamException
    at flash.media.Sound.play(Sound.java:109)
    at jitb.lang.Example11.init(Unknown Source)
    at jitb.lang.Example11.<init>(Unknown Source)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at apparat.jitb.JITB$$anonfun$6.apply(JITB.scala:274)
    at apparat.jitb.JITB.AVMContext(JITB.scala:352)
    at apparat.jitb.JITB.runWithDisplay(JITB.scala:274)
    at apparat.jitb.JITB.run(JITB.scala:145)
    at apparat.jitb.JITB$.main(JITB.scala:98)
    at apparat.jitb.JITB.main(JITB.scala)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at scala.tools.nsc.util.ScalaClassLoader$$anonfun$run$1.apply(ScalaClassLoader.scala:81)
    at scala.tools.nsc.util.ScalaClassLoader$class.asContext(ScalaClassLoader.scala:24)
    at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.asContext(ScalaClassLoader.scala:86)
    at scala.tools.nsc.util.ScalaClassLoader$class.run(ScalaClassLoader.scala:81)
    at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.run(ScalaClassLoader.scala:86)
    at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:83)
    at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)
Caused by: java.lang.ClassNotFoundException: 
javazoom.jl.decoder.BitstreamException
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.scala$tools$nsc$util$ScalaClassLoader$$super$findClass(ScalaClassLoader.scala:86)
    at scala.tools.nsc.util.ScalaClassLoader$class.findClass(ScalaClassLoader.scala:51)
    at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.findClass(ScalaClassLoader.scala:86)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.scala$tools$nsc$util$ScalaClassLoader$$super$loadClass(ScalaClassLoader.scala:86)
    at scala.tools.nsc.util.ScalaClassLoader$class.loadClass(ScalaClassLoader.scala:57)
    at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.loadClass(ScalaClassLoader.scala:86)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    ... 26 more
[ERROR] An internal error occurred.
[ERROR] java.lang.NoClassDefFoundError: javazoom/jl/decoder/BitstreamException
java.lang.RuntimeException: Could not create DocumentRoot.
    at apparat.jitb.JITB.runWithDisplay(JITB.scala:276)
    at apparat.jitb.JITB.run(JITB.scala:145)
    at apparat.jitb.JITB$.main(JITB.scala:98)
    at apparat.jitb.JITB.main(JITB.scala)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at scala.tools.nsc.util.ScalaClassLoader$$anonfun$run$1.apply(ScalaClassLoader.scala:81)
    at scala.tools.nsc.util.ScalaClassLoader$class.asContext(ScalaClassLoader.scala:24)
    at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.asContext(ScalaClassLoader.scala:86)
    at scala.tools.nsc.util.ScalaClassLoader$class.run(ScalaClassLoader.scala:81)
    at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.run(ScalaClassLoader.scala:86)
    at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:83)
    at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)

Original issue reported on code.google.com by joaebert on 9 Oct 2010 at 11:28

Possible VerifyError with ABC merging

What steps will reproduce the problem?
1. Compile Audiotool application SWF with mergeABC set to true
2. Start SWF
3. Preview sample

What is the expected output? What do you see instead?
Hearing a sample preview. Instead get a VerifyError. Problem does not occurr 
when setting mergeABC to false.

Please use labels and text to provide additional information.


Original issue reported on code.google.com by joaebert on 1 Sep 2010 at 4:28

dump readme missing usage info

What steps will reproduce the problem?
1. open readme.txt in a text editor to try and understand how to use the 
tool
2. no mention of -ig or -uml
3. no mention of -help, which does list -ig and -uml

What is the expected output? What do you see instead?
I would like to add mention of the -help option and more usage examples. 
Even though -help it is run by default if no arguments are supplied, if the 
user is smart enough to figure that out, there is no need for a readme file.

What version of the product are you using? On what operating system?
I downloaded the dump.zip from the download links. This appears to be 
from the java implementation, since there are no readme files under the 
scala build assets yet.

Please provide any additional information below.
I've attached a diff with my suggestions. Thanks!

Original issue reported on code.google.com by [email protected] on 17 Feb 2010 at 8:54

Attachments:

Some ideas to improve coverage support

I have 3 ideas to improve apparat coverage tool:
1 - Add a metadata or interface to instrumented classes, to prevent classes to 
be instrumented twice and also allow to skip instrumentation (it may make sense 
in some scenarios)
2 - Skip empty constructors (or at least make that configurable), sometimes we 
just have classes that only contains static methods, so makes no sense to 
instrument this classes constructors
3 - Special handle quit functions like fscommand( "quit" ) and 
NativeApplication.nativeApplication.exit(). When this are encountered just 
consider it ran before invoking the actual code.  Once the real code is invoked 
the flash VM just quit and this lines look like not executed, although there 
were and they did close the flash VM.

Original issue reported on code.google.com by [email protected] on 14 Sep 2010 at 6:51

VerifyError for illegal control transfer

What steps will reproduce the problem?
1. Create a method that needs an exception handler.
2. Write code which will branch out to the end of the exception handler.

What is the expected output? What do you see instead?
No error is expected. Instead we see a VerifyError.


Original issue reported on code.google.com by joaebert on 14 Aug 2009 at 5:15

Error thrown running the ant example

This is with:
scala2.9.final
apparat1.0-RC9
Flex SDK 4.5.0.18623

When I run the bundled example ant script I get the following:

     [tdsi] java.lang.VerifyError: (class: apparat/tools/tdsi/TurboDieselSportInjection$TDSITool, method: run signature: ()V) Incompatible argument to function
     [tdsi]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
     [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.GeneratedMethodAccessor1.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.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
     [tdsi]     at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
     [tdsi]     at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:423)
     [tdsi]     at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:137)
     [tdsi] Caused by: java.lang.VerifyError: (class: apparat/tools/tdsi/TurboDieselSportInjection$TDSITool, method: run signature: ()V) Incompatible argument to function
     [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]     ... 20 more
     [tdsi] --- Nested Exception ---
     [tdsi] java.lang.VerifyError: (class: apparat/tools/tdsi/TurboDieselSportInjection$TDSITool, method: run signature: ()V) Incompatible argument to function
     [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.GeneratedMethodAccessor1.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.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
     [tdsi]     at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
     [tdsi]     at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:423)
     [tdsi]     at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:137)
     [tdsi] Java Result: -1

Original issue reported on code.google.com by [email protected] on 4 Sep 2011 at 11:30

VerifyErrorr #1032

What steps will reproduce the problem?
1. Unknown. Probably a problem with ConstantPool class and equality.

What is the expected output? What do you see instead?
VerifyError #1032, Cpool index X is out of range X.



Original issue reported on code.google.com by joaebert on 25 Aug 2009 at 10:45

TaasBuilder is missing a false-edge

What steps will reproduce the problem?
1. Create a for loop like this:

for(var i: int = 0; i < 0x10; ++i)
{
  trace(i);
  if( i > 0x08 ) break;
}

2. Run TaasBuilder


What is the expected output? What do you see instead?

The false-edge from the loop header is missing and it contains only a true-
edge. It would be correct if the loop header would have a false-edge to the 
ReturnVoid.

Original issue reported on code.google.com by joaebert on 26 Aug 2009 at 5:33

Dump: missing types of parameters

What steps will reproduce the problem?
Get detailed ABC informations with the dump tool from a SWF (or a ABC file) 
which has a method with some typed parameters.

What is the expected output?
[...]
Parameters:
  Parameter:
    Name: **NAME**
    Type: **TYPE**
    Optional: **
[...]

What do you see instead?
[...]
Parameters:
  Parameter:
    Name: **NAME**
    Optional: **
[...]

What version of the product are you using? On what operating system?
apparat-1.0-SNAPSHOT on Windows XP

Original issue reported on code.google.com by carlo94 on 13 Jun 2010 at 9:45

ant tasks problems with coverage

What steps will reproduce the problem?

1.  see attached zip
2. i added the Coverage class to example_as3 source
3. i added coverage in the compile target like:
         <coverage
            failonerror="true"
            fork="true"
            classpathref="apparat.path"
            in="example-as3.swf"
            out="example-as3_coverage.swf"
            dir="${dir.bin}"
            source="${dir.src}">
        </coverage>

What is the expected output? What do you see instead?

expected a bigger .swf for the instrumented version
but filesize exactly the same of the instrumented and the regular swf


What version of the product are you using? On what operating system?
osx 10.6.4, apparat 1.0-RC8


Please provide any additional information below.
setting the compiler on debug mode fixes the problem. I'm not sure if the 
instrumentation should only work with debug versions of the input swf. If so 
this might be better documented in the README.

Original issue reported on code.google.com by [email protected] on 16 Nov 2010 at 3:02

  • Merged into: #35

Attachments:

TDSI performance improvements

TDSI is currently to slow due to the use of peephole optimizations which make 
heavy use of bytecode combinators and recursive pattern replacement. We 
should make the peephole optimizations super fast so that they can be used 
without any problems and are not a bottleneck.

Original issue reported on code.google.com by joaebert on 5 Jun 2010 at 12:37

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.