#628 <zip> task failed with big content files

0.85
closed-fixed
5
2007-04-13
2007-04-11
mElmers
No

when i'm creating a task which compress a folder with
big files then the task will fail with the following error mesage.

--- NAnt Error Message ---
BUILD FAILED

INTERNAL ERROR

System.ArgumentOutOfRangeException: Das angegebene Argument liegt außerhalb des
gültigen Wertebereichs.
Parametername: size
bei ICSharpCode.SharpZipLib.Zip.ZipEntry.set_Size(Int64 value)
bei ICSharpCode.SharpZipLib.Zip.ZipOutputStream.CloseEntry()
bei ICSharpCode.SharpZipLib.Zip.ZipOutputStream.Finish()
bei ICSharpCode.SharpZipLib.Zip.Compression.Streams.DeflaterOutputStream.Close()
bei NAnt.Compression.Tasks.ZipTask.ExecuteTask()
bei NAnt.Core.Task.Execute()
bei NAnt.Core.Target.Execute()
bei NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
bei NAnt.Core.Project.Execute()
bei NAnt.Core.Project.Run()

Please send bug report to nant-developers@lists.sourceforge.net.

Total time: 766.2 seconds.

---

Are there any limits within the filesize of the content or the overall zip file size ?

The folder has a uncompressed size of 8GB.
The biggest file is 4.9 GB and the other files are under 500 MB.

Discussion

  • dmonego

    dmonego - 2007-04-11

    Logged In: YES
    user_id=1753573
    Originator: NO

    The library nant uses for compression doesn't support Zip64, and therefore can't make a zip file with a total size over around 4GB. I built a version that fixed this, but haven't gotten a reply about checking in the code:

    http://www.mail-archive.com/nant-developers%40lists.sourceforge.net/msg07415.html

    In short:

    1. Get the source version of nant

    2. Get the newest version of SharpZipLib:

    http://www.icsharpcode.net/OpenSource/SharpZipLib/

    3. Replace ICSharpCode.SharpZipLib.dll in lib/ with the new version.

    4. Build nant.

     
  • Gert Driesen

    Gert Driesen - 2007-04-13
    • labels: 347142 --> Third party libraries
    • assigned_to: nobody --> drieseng
    • status: open --> closed-fixed
     
  • Gert Driesen

    Gert Driesen - 2007-04-13

    Logged In: YES
    user_id=707851
    Originator: NO

    I've now upgrade to #ziplib 0.85.1, which fixes this issue.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks