kent1590 / apparat

Automatically exported from code.google.com/p/apparat
0 stars 0 forks source link

java.util.zip.ZipException: invalid entry compressed size #57

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I get such exceptions pretty often on different SWCs

java.util.zip.ZipException: invalid entry compressed size (expected 4620 but 
got 4618 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)
 at apparat.swc.Swc.read(Swc.scala:70)
 at apparat.swc.Swc$$anonfun$read$2.apply(Swc.scala:66)
 at apparat.swc.Swc$$anonfun$read$2.apply(Swc.scala:66)
 at apparat.utils.IO$.using(IO.scala:109)
 at apparat.swc.Swc.read(Swc.scala:66)
 at apparat.swc.Swc$.fromInputStream(Swc.scala:52)
 at apparat.utils.SwcStrategy.read(TagContainer.scala:141)
 at apparat.utils.TagContainer$$anonfun$read$1.apply(TagContainer.scala:65)
 at apparat.utils.TagContainer$$anonfun$read$1.apply(TagContainer.scala:64)
 at apparat.utils.IO$.using(IO.scala:109)
 at apparat.utils.TagContainer.read(TagContainer.scala:64)
 at apparat.utils.TagContainer$.fromFile(TagContainer.scala:20)
 at apparat.utils.TagContainer.fromFile(TagContainer.scala)

For example, try opening this one:
http://deltaluca.me.uk/napenew/m6.1/r62/debug_nape.swc

It may seem that it's in invalid ZIP archive, but it's not — I can open it 
using various unarchivers. If I repack it, it's opened just fine by apparat.

Original issue reported on code.google.com by a.a.elis...@gmail.com on 11 Nov 2011 at 12:53

GoogleCodeExporter commented 9 years ago
Thanks for reporting the issue and sharing a SWC.

Original comment by joaebert on 11 Nov 2011 at 2:15

GoogleCodeExporter commented 9 years ago
runned into this, too. or so they say at 
http://realaxy.myjetbrains.com/youtrack/issue/RE-3204

Original comment by makc.the...@gmail.com on 26 Mar 2012 at 1:32

GoogleCodeExporter commented 9 years ago
Could be solved by switching to another unzip implementation

Original comment by a.a.elis...@gmail.com on 5 Nov 2012 at 7:37