List of issuesList of issues

#738 Frame export fails with EndOfStreamException: Premature end of the stream reached
Author: user Peter
Date created:
Type: bug
Visibility: Everybody
Assigned to: developer honfika
Labels: Images
State: closed Help

> What steps will reproduce the problem? java -jar "\Program Files (x86)\FFDec\ffdec.jar" -export frame img p17.swf Frame displays fine in GUI wehn using flash player. With "own flash viewer" nothing is displayed. > What is the expected output? What do you see instead? expect png with frame as rendered by flash player. > What version of the product are you using? On what operating system? v.4.0.5 on windows 8.1 java -jar "\Program Files (x86)\FFDec\ffdec.jar" -export frame img p17.swf JPEXS Free Flash Decompiler v.4.0.5 ----------------------------------- Dec 03, 2014 6:18:41 PM com.jpexs.decompiler.flash.SWFInputStream resolveTag SEVERE: Error during tag reading com.jpexs.decompiler.flash.EndOfStreamException: Premature end of the stream reached at com.jpexs.decompiler.flash.SWFInputStream.readNoBitReset(SWFInputStream.java:437) at com.jpexs.decompiler.flash.SWFInputStream.readEx(SWFInputStream.java:424) at com.jpexs.decompiler.flash.SWFInputStream.readUI8(SWFInputStream.java:451) at com.jpexs.decompiler.flash.SWFInputStream.readRGB(SWFInputStream.java:2015) at com.jpexs.decompiler.flash.SWFInputStream.readLINESTYLE(SWFInputStream.java:2510) at com.jpexs.decompiler.flash.SWFInputStream.readLINESTYLEARRAY(SWFInputStream.java:2570) at com.jpexs.decompiler.flash.SWFInputStream.readSHAPERECORD(SWFInputStream.java:2630) at com.jpexs.decompiler.flash.SWFInputStream.readSHAPERECORDS(SWFInputStream.java:2721) at com.jpexs.decompiler.flash.SWFInputStream.readSHAPE(SWFInputStream.java:2681) at com.jpexs.decompiler.flash.tags.DefineFont2Tag.<init>(DefineFont2Tag.java:252) at com.jpexs.decompiler.flash.SWFInputStream.resolveTag(SWFInputStream.java:1285) at com.jpexs.decompiler.flash.SWFInputStream$TagResolutionTask.call(SWFInputStream.java:1012) at com.jpexs.decompiler.flash.SWFInputStream$TagResolutionTask.call(SWFInputStream.java:992) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Dec 03, 2014 6:18:41 PM com.jpexs.decompiler.flash.SWFInputStream resolveTag SEVERE: Error during tag reading com.jpexs.decompiler.flash.EndOfStreamException: Premature end of the stream reached at com.jpexs.decompiler.flash.SWFInputStream.readNoBitReset(SWFInputStream.java:437) at com.jpexs.decompiler.flash.SWFInputStream.readEx(SWFInputStream.java:424) at com.jpexs.decompiler.flash.SWFInputStream.readUI8(SWFInputStream.java:451) at com.jpexs.decompiler.flash.SWFInputStream.readRGB(SWFInputStream.java:2015) at com.jpexs.decompiler.flash.SWFInputStream.readFILLSTYLE(SWFInputStream.java:2446) at com.jpexs.decompiler.flash.SWFInputStream.readFILLSTYLEARRAY(SWFInputStream.java:2491) at com.jpexs.decompiler.flash.SWFInputStream.readSHAPERECORD(SWFInputStream.java:2629) at com.jpexs.decompiler.flash.SWFInputStream.readSHAPERECORDS(SWFInputStream.java:2721) at com.jpexs.decompiler.flash.SWFInputStream.readSHAPE(SWFInputStream.java:2681) at com.jpexs.decompiler.flash.tags.DefineFont2Tag.<init>(DefineFont2Tag.java:252) at com.jpexs.decompiler.flash.SWFInputStream.resolveTag(SWFInputStream.java:1285) at com.jpexs.decompiler.flash.SWFInputStream$TagResolutionTask.call(SWFInputStream.java:1012) at com.jpexs.decompiler.flash.SWFInputStream$TagResolutionTask.call(SWFInputStream.java:992) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Exporting frames... Error occured: null Select action: (A)bort, (R)Retry, (I)Ignore:R Error occured: image == null! Select action: (A)bort, (R)Retry, (I)Ignore:a FAIL: Exporting Failed on Exception - Dec 03, 2014 6:18:54 PM com.jpexs.decompiler.flash.console.CommandLineArgumentParser parseExport SEVERE: null java.lang.IllegalArgumentException: image == null! at javax.imageio.ImageTypeSpecifier.createFromRenderedImage(Unknown Source) at javax.imageio.ImageIO.getWriter(Unknown Source) at javax.imageio.ImageIO.write(Unknown Source) at com.jpexs.decompiler.flash.SWF$8.run(SWF.java:1535) at com.jpexs.decompiler.flash.RetryTask.run(RetryTask.java:41) at com.jpexs.decompiler.flash.SWF.exportFrames(SWF.java:1538) at com.jpexs.decompiler.flash.console.CommandLineArgumentParser.parseExport(CommandLineArgume ntParser.java:967) at com.jpexs.decompiler.flash.console.CommandLineArgumentParser.parseArguments(CommandLineArg umentParser.java:383) at com.jpexs.decompiler.flash.gui.Main.main(Main.java:1027)
Downloadp17.swf (32 KiB)
developer
State: new→opened
Assigned:developer honfika
developer
Fixed in the latest nightly build. Please try it.
State: opened→upgraded
user
I confirm issue is resolved. Export from command line misses an option to specify zoom level which is available in the GUI. Will open a new issue for this.
developer
Ok, please open new issue (feature request) for the zoom functionality. I close this.
State: upgraded→closed
 
Google Translate: Translate to Czech Translate to Slovak Translate to Russian Translate to Hungarian Translate to Swedish Translate to French Translate to German Translate to Spanish Translate to Italian
Change style: oceanic classic