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

#1180 Save pcode edit, null pointer exception on decompiling, work lost.
Author:
Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: AS3P-code
State: closed Help

> What steps will reproduce the problem? I can't exactly describe what caused this specific issue, but I was editing Pcode (not direct actionscript) and added a Push constantx constanty GetMember Add (Accessing a class variable I made) and then hit save (Pcode save) > What is the expected output? What do you see instead? I expect it to reload and decompile my new changes. Instead, I get // Decompilation error: java.util.concurrent.ExecutionException: java.lang.NullPointerException. Saving the file and reloading does not fix this. > What version of the product are you using? Is it "nightly build"? Which operating system do you have? 8.0.1 on Windows 10 x64 > Please provide any additional information below. If the problem is related to a SWF file, attach it here, otherwise we can't help you. The part edited was the DoAction... object? in frame1 under scripts. This is an ActionScript 2 file from Mass Effect 3 that I have been working on to make the UI scale. I added one constant to the top line. This file was provided to me by another game modder, which is why I see lots of constants for _loc1_ and such, and I don't have the source for this.
I think we need more information to reproduce the issue. Could you please copy the exception stack trace from the log winfow (red idon on the bottom right of FFDec) But I'm almost sure that the work was not lost, only the script view was not refreshed correctly. Did you try to save the SWF and reopen FFDec?
Hmm, you wrote that saving ans reloading does not fix it.. in this case please attach the wrong swf.
So I woke up this morning, read this, and then got on PC and opened the bad file (the one I attached)... but it does not have the issue anymore! I made sure I exited JPEXS (even killed all java in task manager) and it still opened right up. I assume maybe it had something to do with the reboot... I have seen this issue before though, I will try to get a trace next time, sorry :( I remember something else though. The last things I was doing was adding a variable I defined to another, and I think I used add2 instead of add on two numbers. I'm not sure what the differences are (Is there a reference on instruction names?) but that is what happened when I edited it, and it died.
To clarify, I made sure I exited JPEXS after I saved it last night to make sure save and reload wouldn't fix it.
"Is there a reference on instruction names?": /www.free-decompiler.com/flash/links/ Check this: "ActionScript Virtual Machine 2 (AVM2) Overview" and "Summary of the AVM2 instructions" Next time when you see this problem, please copy the stack trace.
State: new→upgraded
State: upgraded→closed