Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7z can’t decompress archives created with lbzip2 with -9 settings #147

Open
MaxPower85 opened this issue Mar 14, 2018 · 8 comments
Open

Comments

@MaxPower85
Copy link

7z can’t decompress archives created with lbzip2 with -9 settings (900k block size), even though they open just fine with the native Archive Utility on macOS or The Unarchiver or unar CLI utility… and after checking the checksum of the decompressed file, md5 checks out… so it doesn’t seem that the archive was damaged during compression, but for some reason 7z rejects to decompress it.

Keka also shows an error, since it uses 7z to decompress archives.

Large bzip2 archives created with pbzip2 with -9 settings (it also means 900k compression block size in pbzip2) don’t seem to be affected… and it also doesn’t seem to be affecting archives created with lbzip2 if -8 or lower is used.

So, I’m not sure what’s so different about lbzip2 archives compressed with that -9 option, that it seems to be confusing 7z.

I tested it with several large files of different types… I first noticed it when compressing an ISO with some data files that was about 730 MB large… I then tried some larger file and it happened again when I tried to see can it be uncompressed with 7z… but it didn’t happen with small files that were only a few MB big when they were compressed with lbzip2 when -9 option was used… I then tried it with some large HEVC video that was about 770 MB (it was just an experiment… I’m aware what incompressible data is… I just tried it with a video because it was a large file, to test it) and it happened again.

So… just get various large files and test it.

Let the developers of 7zip know, since lbzip2 seems to be kind of popular among Linux users.

Since both lbzip2 and 7z are open-source, maybe their developers could work together to resolve it, so lbzip2 wouldn’t create files that confuse 7z (including older versions of it) and so 7z could open old files from lbzip2.

@aonez
Copy link
Owner

aonez commented Mar 14, 2018

Thanks for the report. Maybe Igor can fix this one: https://sourceforge.net/p/sevenzip/discussion/45797/thread/5ec87e8a

I'm closing this ticket in favor of the 7-zip one.

@aonez
Copy link
Owner

aonez commented Mar 14, 2018

I'll indeed leave it open. I can use lbzip2 for the extraction, if this can't be fixed.

@aonez aonez reopened this Mar 14, 2018
@aonez aonez self-assigned this Mar 14, 2018
@aonez aonez modified the milestones: Look at, 1.1.1 Mar 14, 2018
@MaxPower85
Copy link
Author

You can use pbzip2... when I was comparing pbzip2 and lbzip2, they were both super fast even at their best compression levels and very optimized for multithreading, but pbzip2 seemed to have a slightly better compression on it's highest settings when I tested it... and it didn't have that bug.

I wrote in more detail about it while comparing them to 7z... I'll post it separately now, since it focuses on what would offer the best performance for compressing/uncompressing bzip2.

@aonez
Copy link
Owner

aonez commented Mar 14, 2018

Right now I don't have in mind why I ultimately used lbzip2 as default instead of pbzip2. I'll need to check that again.

@aonez aonez modified the milestones: 1.1.1, 1.1.0 Mar 21, 2018
@aonez
Copy link
Owner

aonez commented Mar 21, 2018

I'm going to set pbzip2 by default and lbzip2 as fallback.

@MaxPower85
Copy link
Author

Why would a fallback from pbzip2 to lbzip2 be needed?

Both pbzip2 and lbzip2 claim full compatibility with bzip2 format, so pbzip2 should work well both for compressing to and uncompressing from bzip2 format.

If pbzip2 can't read some unusual bzip2 archive for whatever reason (if some archive is maybe not fully compatible with the bzip2 format), I'm not sure would lbzip2 have better chances of uncompressing it.

In case that some unusual archive has issues, then just use unar or 7z as fallback.

@aonez
Copy link
Owner

aonez commented Mar 22, 2018 via email

@aonez aonez added the lbzip2 label Mar 22, 2018
@aonez aonez modified the milestones: 1.1.0, Future Apr 2, 2018
@aonez
Copy link
Owner

aonez commented Apr 2, 2018

I'll leave this ticket until lbzip2 or p7zip fix this issue, but going on with pbzip2 on version 1.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants