JPEXS Free Flash Decompiler Issue Tracker

If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler

NEW : We have got a new blog where we post some interesting SWF internals info.

Error: Please login first to download files from the Issue Tracker. You can register for free.
List of issuesList of issues

#1461 Cannot save actionscript code. SEVERE error in log
Author:
Date created:
Type: bug
Visibility: Everybody
Assigned to:
State: closed Help

> What steps will reproduce the problem? Editing some actionscript I work with, don't have any specifics but I attached an example swf. Try adding the following code to SmashvilleBalloon.as in the onHurt() function: var _loc4_:* = param1.data.opponent; SSF2API.print("param1.data.opponent is " + _loc4_); SSF2API.print("param1.data.opponent getID is " + _loc4_.getID); > What is the expected output? What do you see instead? Upon attempting to save, an error in the log appears and it doesn't save > What version of the product are you using? Is it "nightly build"? Which operating system do you have? I first was using the latest stable version and then tried nightly build. Both had the same issue. > Please provide any additional information below. If the problem is related to a SWF file, attach it here, otherwise we can't help you. Full error in log: 22/04/2018 14:07:18 SEVERE null java.lang.IndexOutOfBoundsException: Index: 3, Size: 3 at java.util.ArrayList.rangeCheck(Unknown Source) at java.util.ArrayList.set(Unknown Source) at com.jpexs.decompiler.flash.abc.avm2.parser.script.AVM2SourceGenerator.method(AVM2SourceGen erator.java:1694) at com.jpexs.decompiler.flash.abc.avm2.parser.script.AVM2SourceGenerator.generateTraitsPhase3 (AVM2SourceGenerator.java:2158) at com.jpexs.decompiler.flash.abc.avm2.parser.script.AVM2SourceGenerator.generateClass(AVM2So urceGenerator.java:1311) at com.jpexs.decompiler.flash.abc.avm2.parser.script.AVM2SourceGenerator.generateClass(AVM2So urceGenerator.java:1411) at com.jpexs.decompiler.flash.abc.avm2.parser.script.AVM2SourceGenerator.generateTraitsPhase3 (AVM2SourceGenerator.java:2138) at com.jpexs.decompiler.flash.abc.avm2.parser.script.AVM2SourceGenerator.generateScriptInfo(A VM2SourceGenerator.java:2430) at com.jpexs.decompiler.flash.abc.avm2.parser.script.ActionScript3Parser.addScriptFromTree(Ac tionScript3Parser.java:2552) at com.jpexs.decompiler.flash.abc.avm2.parser.script.ActionScript3Parser.addScript(ActionScri pt3Parser.java:2558) at com.jpexs.decompiler.flash.abc.avm2.parser.script.ActionScript3Parser.compile(ActionScript 3Parser.java:2591) at com.jpexs.decompiler.flash.importers.FFDecAs3ScriptReplacer.replaceScript(FFDecAs3ScriptRe placer.java:69) at com.jpexs.decompiler.flash.abc.ABC.replaceScriptPack(ABC.java:1642) at com.jpexs.decompiler.flash.gui.abc.ABCPanel.saveDecompiledButtonActionPerformed(ABCPanel.j ava:1412) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at org.pushingpixels.substance.internal.utils.RolloverButtonListener.mouseReleased(RolloverBu ttonListener.java:124) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
Downloadpst57.swf (7,852 KiB)
Just in case anyone comes across this, had similar issue changing the variable names from generated ones like _loc4_ to a custom one solved the issue for me.
This should be fixed in current version (14.0.0)
State: new→upgraded
State: upgraded→closed