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)
Please sign in to leave a comment.
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.
Hello.
Flex:
I have only one Flex module, and no extra facets.
In debug Frame i have : stack available in WorldObject1.as
And then Console output:
Temp flex config
If there is anything else you need just let me know.
Thank you for your help.
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.
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.
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.
OK.
Thank you a lot !
Adding -static-rsls=true fixed this error.