Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-256

7z: 16 MB dictionary is too big

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.6, 1.7
    • 1.8
    • Archivers

    Description

      I created an archiv with 7zip 9.20 containing the compress-1.7-src directory. Also tried it with 1.6 version and directory. I

      downloaded the zip file and reziped it as 7z. The standard setting where used:
      Compression level: normal
      Compression method: lzma2
      Dictionary size: 16 MB
      Word size: 32
      Solid Block size: 2 GB

      I get an exception if I try to open the file with the simple line of code:
      SevenZFile input = new SevenZFile(new File(arcName));

      Maybe it is a bug in the tukaani library, but I do not know how to report it to them.
      The exception thrown:

      org.tukaani.xz.UnsupportedOptionsException: LZMA dictionary is too big for this implementation
      at org.tukaani.xz.LZMAInputStream.initialize(Unknown Source)
      at org.tukaani.xz.LZMAInputStream.<init>(Unknown Source)
      at org.apache.commons.compress.archivers.sevenz.Coders$LZMADecoder.decode(Coders.java:117)
      at org.apache.commons.compress.archivers.sevenz.Coders.addDecoder(Coders.java:48)
      at org.apache.commons.compress.archivers.sevenz.SevenZFile.readEncodedHeader(SevenZFile.java:278)
      at org.apache.commons.compress.archivers.sevenz.SevenZFile.readHeaders(SevenZFile.java:190)
      at org.apache.commons.compress.archivers.sevenz.SevenZFile.<init>(SevenZFile.java:94)
      at org.apache.commons.compress.archivers.sevenz.SevenZFile.<init>(SevenZFile.java:116)
      at compress.SevenZipError.main(SevenZipError.java:28)

      Attachments

        1. dictTooBig.7z
          3.88 MB
          Stefan Mueller

        Activity

          People

            Unassigned Unassigned
            Stefan Mueller Stefan Mueller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: