Issue Details (XML | Word | Printable)

Key: FDT-1711
Type: Bug Bug
Status: Closed Closed
Priority: Major Major
Assignee: FDT Team
Reporter: Ben Beaumont
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
FDT

Parsing SWCs created in Windows

Created: 12/Dec/10 06:38 PM   Updated: 18/Mar/14 04:03 PM
Component/s: Linux (Deprecated)
Affects Version/s: FDT 4.1
Fix Version/s: None
Security Level: public

Time Tracking:
Not Specified

File Attachments: 1. File ScrollBar.swc (11 kB)

Environment: Linux Ubuntu 10.0.4, Eclipse Helios 64,


 Description  « Hide
Using a SWC created in Windows (FlashDevelop specifically) causes FDT to stop working properly, with the following issues:
  • All source files have a 'File cannot be parsed' message within the files, but not in the Problems view.
  • All other SWC files cannot be opened/expanded in Flash Explorer view.

The SWC works fine on Windows. I've unzipped the SWC in Linux and confirmed it contains the correct items - catalog.xml, library.swf etc.

This is in the workspace .log file

!ENTRY com.powerflasher.fdt.core 4 4 2010-12-12 17:33:54.690
!MESSAGE FDT log: Exception after reading 17335 bytes.
!STACK 0
com.powerflasher.fdt.core.binary.BinaryStreamException: Exception after reading 17335 bytes.
at com.powerflasher.fdt.core.binary.BinaryStreamImpl.readByteArray(BinaryStreamImpl.java:130)
at com.powerflasher.fdt.core.swf.internal.structure.leafs.UI8Array.readFrom(UI8Array.java:22)
at com.powerflasher.fdt.core.binary.BinaryParser.readLeaf(BinaryParser.java:66)
at com.powerflasher.fdt.core.binary.BinaryParser.read(BinaryParser.java:23)
at com.powerflasher.fdt.core.binary.BinaryParser.readNode(BinaryParser.java:29)
at com.powerflasher.fdt.core.binary.BinaryParser.read(BinaryParser.java:21)
at com.powerflasher.fdt.core.binary.BinaryParser.readNode(BinaryParser.java:29)
at com.powerflasher.fdt.core.binary.BinaryParser.read(BinaryParser.java:21)
at com.powerflasher.fdt.core.binary.BinaryParser.readNode(BinaryParser.java:29)
at com.powerflasher.fdt.core.binary.BinaryParser.read(BinaryParser.java:21)
at com.powerflasher.fdt.core.binary.BinaryParser.readNode(BinaryParser.java:29)
at com.powerflasher.fdt.core.binary.BinaryParser.read(BinaryParser.java:21)
at com.powerflasher.fdt.core.swf.internal.parser.SWFParserImpl.readSWFTags(SWFParserImpl.java:61)
at com.powerflasher.fdt.core.swf.internal.parser.SWFParserImpl.parseSWF(SWFParserImpl.java:36)
at com.powerflasher.fdt.core.swf.internal.services.SWFByteCodeServiceImpl.<init>(SWFByteCodeServiceImpl.java:17)
at com.powerflasher.fdt.core.swf.SWFServices.createSWFByteCodeService(SWFServices.java:12)
at com.powerflasher.fdt.core.swc.internal.parser.SWCParserImpl.readSWF(SWCParserImpl.java:112)
at com.powerflasher.fdt.core.swc.internal.parser.SWCParserImpl.addFileEntry(SWCParserImpl.java:58)
at com.powerflasher.fdt.core.swc.internal.parser.SWCParserImpl.addFileEntries(SWCParserImpl.java:49)
at com.powerflasher.fdt.core.swc.internal.parser.SWCParserImpl.tryParseSWC(SWCParserImpl.java:42)
at com.powerflasher.fdt.core.swc.internal.parser.SWCParserImpl.parseSWC(SWCParserImpl.java:31)
at com.powerflasher.fdt.core.swc.internal.services.SWCByteCodeServiceImpl.<init>(SWCByteCodeServiceImpl.java:18)
at com.powerflasher.fdt.core.swc.SWCServices.createSWCByteCodeService(SWCServices.java:12)
at com.powerflasher.fdt.core.outermodel.builder.AbstractSWCModelGenerator.parseSWC(AbstractSWCModelGenerator.java:276)
at com.powerflasher.fdt.core.outermodel.builder.SWCModelGenerator2.generatorModel(SWCModelGenerator2.java:25)
at com.powerflasher.fdt.core.outermodel.builder.OuterModelBuilder.buildModel(OuterModelBuilder.java:71)
at com.powerflasher.fdt.internal.core.builder.FlashBuilder.buildOuterModelProject(FlashBuilder.java:653)
at com.powerflasher.fdt.internal.core.builder.FlashBuilder.fullBuild(FlashBuilder.java:249)
at com.powerflasher.fdt.internal.core.builder.FlashBuilder.build(FlashBuilder.java:132)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.util.zip.ZipException: invalid entry size (expected 67324752 but got 7733 bytes)
at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:393)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:165)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:238)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
at java.io.DataInputStream.read(DataInputStream.java:149)
at com.powerflasher.fdt.core.binary.BinaryStreamImpl.tryReadByteArray(BinaryStreamImpl.java:138)
at com.powerflasher.fdt.core.binary.BinaryStreamImpl.readByteArray(BinaryStreamImpl.java:128)
... 40 more

!ENTRY com.powerflasher.fdt.core 1 1 2010-12-12 17:33:54.691
!MESSAGE Error at Full build (Runner) - See last log.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Bruno Fonzi added a comment - 12/Dec/10 06:45 PM
Thank you Ben, any chance you can upload a sample SWC file created in FlashDevelop that causes the same issue. It would speed up the process.

Ben Beaumont added a comment - 12/Dec/10 10:09 PM
This is the problematic file.

Philipp Arnolds added a comment - 03/Feb/11 11:18 AM - edited
Hi Ben,

The swc file may be somehow currupt. You can try the workaround mentioned here: http://doesflash.com/2011/01/haxe-compiled-swc-not-working-fdt/

This works for me.