deltaluca / nape

Haxe/AS3 Physics Engine
http://napephys.com
Other
542 stars 77 forks source link

nape swcs routinely cause exceptions in apparat #47

Closed makc closed 12 years ago

makc commented 12 years ago

java.util.zip.ZipException: invalid entry compressed size (expected 12227 but got 12225 bytes) at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:391) at java.util.zip.ZipInputStream.read(ZipInputStream.java:156) at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:100) at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:78) at apparat.swc.Swc.extract(Swc.scala:111) ....

is there a known issue with the way haxe zips swcs? could you do something about it? I am currently re-packing these swcs by hand :(

deltaluca commented 12 years ago

This is a problem with whatever library apparat is using, specifically the Java Zip library and the way it's being used, there was a similar issue for flash builder? which was solved by them changing the way they load swcs.

The nape swcs are 'already' being repackaged automatically as part of the build process by the built in zip util on linux. Basicly Java is shit ;)

makc commented 12 years ago

it could be, but how come this happens only 1 in 10 swcs? there must be something different about them. oh well, if you can't do anything about it (which you probably can, given "being repackaged automatically as part of the build process" ;) - feel free to close this.