Interesting bug

Hello, I have interesting bug in my intellij project.
Its a Flex as3 project, and it gives me some Java output in error.
Btw this project worked few days ago, and now it gives this error (With no changes to code).
Any help please ?

[Fault] exception, information=VerifyError: Error #1014: Class mx.core::BitmapAsset could not be found.
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.RangeCheck(ArrayList.java:547)
    at java.util.ArrayList.get(ArrayList.java:322)
    at flash.tools.debugger.concrete.DManager.getFrame(DManager.java:665)
    at flash.tools.debugger.concrete.PlayerSession.pullUpActivationObjectVariables(PlayerSession.java:1075)
    at flash.tools.debugger.concrete.PlayerSession.requestFrame(PlayerSession.java:1053)
    at flash.tools.debugger.concrete.PlayerSession.getValue(PlayerSession.java:1168)
    at flex.tools.debugger.cli.ExpressionContext.memberNamed(ExpressionContext.java:430)
    at flex.tools.debugger.cli.ExpressionContext.locateParentForNamed(ExpressionContext.java:532)
    at flex.tools.debugger.cli.ExpressionContext.determineContext(ExpressionContext.java:482)
    at flex.tools.debugger.cli.ExpressionContext.resolveToVariable(ExpressionContext.java:342)
    at flex.tools.debugger.cli.ExpressionContext.lookup(ExpressionContext.java:161)
    at flash.tools.debugger.expression.DebuggerEvaluator.evaluate(DebuggerEvaluator.java:160)
    at macromedia.asc.parser.ThisExpressionNode.evaluate(ThisExpressionNode.java:34)
    at flash.tools.debugger.expression.DebuggerEvaluator.evaluate(DebuggerEvaluator.java:1001)
    at macromedia.asc.parser.ListNode.evaluate(ListNode.java:44)
    at flash.tools.debugger.expression.DebuggerEvaluator.evaluate(DebuggerEvaluator.java:1001)
    at macromedia.asc.parser.ListNode.evaluate(ListNode.java:44)
    at flash.tools.debugger.expression.DebuggerEvaluator.evaluate(DebuggerEvaluator.java:1035)
    at macromedia.asc.parser.ExpressionStatementNode.evaluate(ExpressionStatementNode.java:50)
    at flash.tools.debugger.expression.DebuggerEvaluator.evaluate(DebuggerEvaluator.java:1276)
    at macromedia.asc.parser.ProgramNode.evaluate(ProgramNode.java:80)
    at flash.tools.debugger.expression.DebuggerExpression.evaluate(DebuggerExpression.java:105)
    at flex.tools.debugger.cli.ExpressionCache.evaluate(ExpressionCache.java:104)
    at flex.tools.debugger.cli.DebugCLI.evalExpression(DebugCLI.java:3639)
    at flex.tools.debugger.cli.DebugCLI.evalExpression(DebugCLI.java:3631)
    at flex.tools.debugger.cli.DebugCLI.doPrint(DebugCLI.java:3557)
    at flex.tools.debugger.cli.DebugCLI.processLine(DebugCLI.java:6506)
    at flex.tools.debugger.cli.DebugCLI.process(DebugCLI.java:725)
    at flex.tools.debugger.cli.DebugCLI.execute(DebugCLI.java:567)
    at flex.tools.debugger.cli.DebugCLI.main(DebugCLI.java:370)

6 comments
Comment actions Permalink

Exception is from Adobe's fdb tool (debugger). Tracked as http://youtrack.jetbrains.net/issue/IDEA-54587
The reason of runtime error ('class not found') should be investigated. Probably adding -static-rsls=true as     Additional compiler options to File | Project Structure | Modules |     <your module> | Flex Compiler Settings will help. To find the cause please give     more details:
- What Flex SDK do you use
- How many modules or facets do you have
- Do you get warning about 'factoryClass' from compiler
- Please attach full content of Messages tool window after Build |     Rebuild Project. You can use 'Export to text file' action on its     left side to copy/paste it.

0
Comment actions Permalink

Hello.
Flex:

<name>Flex 4.1</name>
<version>4.1.0</version>
<build>16076</build>


I have only one Flex module, and no extra facets.
In debug Frame i have : stack available in WorldObject1.as
And then Console output:

"c:\program files\jetbrains\intellij idea 10.0.1\jre\jre\bin\java.exe" "-Dapplication.home=C:\Documents and Settings\name\Desktop\flash projects\FLEX 4" -Xmx384m -Dsun.io.useCanonCaches=false -Duser.language=en -Duser.region=en -Xmx512m -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 10.0.1\plugins\flex\lib\idea-fdb-4.0.0.14159-fix.jar;C:\Documents and Settings\name\Desktop\flash projects\FLEX 4\lib\fdb.jar" flex.tools.debugger.cli.DebugCLI
Adobe fdb (Flash Player Debugger) [build 16076]
Copyright (c) 2004-2007 Adobe, Inc. All rights reserved.
Waiting for Player to connect
Player connected; session starting.
[SWF] C:\Documents and Settings\name\Desktop\flash projects\SVN\shogun\out\production\shogun\Shogun.swf - 1,919,219 bytes after decompression
[Fault] exception, information=VerifyError: Error #1014: Class mx.core::BitmapAsset could not be found.
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
     at java.util.ArrayList.RangeCheck(ArrayList.java:547)
     at java.util.ArrayList.get(ArrayList.java:322)
     at flash.tools.debugger.concrete.DManager.getFrame(DManager.java:665)
     at flash.tools.debugger.concrete.PlayerSession.pullUpActivationObjectVariables(PlayerSession.java:1075)
     at flash.tools.debugger.concrete.PlayerSession.requestFrame(PlayerSession.java:1053)
     at flash.tools.debugger.concrete.PlayerSession.getValue(PlayerSession.java:1168)
     at flex.tools.debugger.cli.ExpressionContext.memberNamed(ExpressionContext.java:430)
     at flex.tools.debugger.cli.ExpressionContext.locateParentForNamed(ExpressionContext.java:532)
     at flex.tools.debugger.cli.ExpressionContext.determineContext(ExpressionContext.java:482)
     at flex.tools.debugger.cli.ExpressionContext.resolveToVariable(ExpressionContext.java:342)
     at flex.tools.debugger.cli.ExpressionContext.lookup(ExpressionContext.java:161)
     at flash.tools.debugger.expression.DebuggerEvaluator.evaluate(DebuggerEvaluator.java:160)
     at macromedia.asc.parser.ThisExpressionNode.evaluate(ThisExpressionNode.java:34)
     at flash.tools.debugger.expression.DebuggerEvaluator.evaluate(DebuggerEvaluator.java:1001)
     at macromedia.asc.parser.ListNode.evaluate(ListNode.java:44)
     at flash.tools.debugger.expression.DebuggerEvaluator.evaluate(DebuggerEvaluator.java:1001)
     at macromedia.asc.parser.ListNode.evaluate(ListNode.java:44)
     at flash.tools.debugger.expression.DebuggerEvaluator.evaluate(DebuggerEvaluator.java:1035)
     at macromedia.asc.parser.ExpressionStatementNode.evaluate(ExpressionStatementNode.java:50)
     at flash.tools.debugger.expression.DebuggerEvaluator.evaluate(DebuggerEvaluator.java:1276)
     at macromedia.asc.parser.ProgramNode.evaluate(ProgramNode.java:80)
     at flash.tools.debugger.expression.DebuggerExpression.evaluate(DebuggerExpression.java:105)
     at flex.tools.debugger.cli.ExpressionCache.evaluate(ExpressionCache.java:104)
     at flex.tools.debugger.cli.DebugCLI.evalExpression(DebugCLI.java:3639)
     at flex.tools.debugger.cli.DebugCLI.evalExpression(DebugCLI.java:3631)
     at flex.tools.debugger.cli.DebugCLI.doPrint(DebugCLI.java:3557)
     at flex.tools.debugger.cli.DebugCLI.processLine(DebugCLI.java:6506)
     at flex.tools.debugger.cli.DebugCLI.process(DebugCLI.java:725)
     at flex.tools.debugger.cli.DebugCLI.execute(DebugCLI.java:567)
     at flex.tools.debugger.cli.DebugCLI.main(DebugCLI.java:370)


Temp flex config

<flex-config xmlns="http://www.adobe.com/2006/flex-config">
  <target-player>10.1.0</target-player>
  <compiler>
    <debug>true</debug>
    <source-path>
      <path-element>src</path-element>
    </source-path>
  </compiler>
  <file-specs>
    <path-element>src/Main.as</path-element>
  </file-specs>
  <output>C:/Documents and Settings/name/Desktop/flash projects/SVN/shogun/out/production/shogun/Shogun.swf</output>
</flex-config>


If there is anything else you need just let me know.
Thank you for your help.
0
Comment actions Permalink

Thank you,
I guess you have compiler warning about 'factoryClass' in Messages tool window after compilation. To keep tool window open after compilation make sure that 'Hide warnings' button is not pressed on its left side. So your application fails to load runtime shared libraries. You should either add -static-rsls=true additional compiler option or fix your code.

0
Comment actions Permalink

Is Messages window the one with console and debug stuff ?
If not than i dunno how to open it, because its disabled in Window -> Tool Windows menu.

I'm sure there is no problem in my code, i compile and run it under Flashdevelop and it works.

0
Comment actions Permalink

Probably flash develop links runtime shared libraries statically by default. Flash Builder does such.
Messages tool window opens when you compile your project in IDEA. After compilation it automatically closes if there's no errors and no warnings or 'Hide warnings' button is pressed. So you need to unpress this button before compilation ends. To force long compilation you can click Build | Rebuild Project.

0
Comment actions Permalink

OK.

Thank you a lot !

Adding -static-rsls=true fixed this error.

0

Please sign in to leave a comment.