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.

#2455 Command line stopping before all the files in the folder are exported : java.util.ConcurrentModificationException
Author:
Astariul

Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: CommandlineExport
State: upgraded 

I have a folder with 9383 SWF files. When I export it with the FFdec command line,
sometimes it works, and sometimes it fails.
> What steps will reproduce the problem?
Download the zip file linked, unzip it, and run :
```
FFDec -format sprite:svg,script:as -export script ./out ./maps
```
Note that you might need to run the command several times, as the bug doesn't appear all
the time...
> What is the expected output? What do you see instead?
I expect to see the command finish successfully (which happens sometimes), all the time.
But sometimes I get :
```
FAIL: Exporting Failed on Exception - May 13, 2025 10:23:42 PM
com.jpexs.decompiler.flash.console.CommandLineArgumentParser parseExport
SEVERE: null
java.util.ConcurrentModificationException
at java.base/java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1096)
at java.base/java.util.ArrayList$Itr.next(ArrayList.java:1050)
at
com.jpexs.helpers.CancellableWorker.cancelBackgroundThreads(CancellableWorker.java:287)
at
com.jpexs.decompiler.flash.console.CommandLineArgumentParser.parseExport(CommandLineArgume
ntParser.java:2284)
at
com.jpexs.decompiler.flash.console.CommandLineArgumentParser.parseArgumentsInternal(Comman
dLineArgumentParser.java:671)
at
com.jpexs.decompiler.flash.console.CommandLineArgumentParser.parseArguments(CommandLineArg
umentParser.java:468)
at com.jpexs.decompiler.flash.gui.Main.main(Main.java:3134)
```
> What version of the product are you using? Is it "nightly build"? Which operating system
do you have?
`v.22.0.2 nightly build 3115` on Mac

This should be fixed in nightly 3125.
State: new→upgraded