BZIP2 plugin problem - TAR decompression missing directories

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

maxime1008
Junior Member
Junior Member
Posts: 5
Joined: 2009-10-20, 09:14 UTC

BZIP2 plugin problem - TAR decompression missing directories

Post by *maxime1008 »

Hi,

I noticed on several .tar files that TC's internal decompressor sometimes misses some directories inside the tar file.

Try this one for example:
users.softlab.ece.ntua.gr/~ttsiod/renderer-2.0n.tar.bz2

The bz2 enveloppe is properly handled (by bz2 plugin) but then inside the tar there should be a "src" directory. You can see it if you untar manually with e.g. 7zip or the tar command under Linux, but not in TC.

I tried it on several versions of TC and did not find any similar bug report in the forums.

Any clue?

Thanks,
Maxime
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

The contents---

Post by *Clo »

2maxime1008

:) Hello ! Welcome aboard !

• Below is the contents of the BZ2 archive like I can see it by following its structure levels :
1. renderer-2.0n.tar —>
2. renderer-2.0n\ [DIR] —>
3. 3D-Objects\ [DIR]
build-aux\ [DIR]
contrib\ [DIR]
Makefile.in
configure
aclocal.m4
configure.ac
README
NEWS
ChangeLog
INSTALL
AUTHORS

• All sub-dirs. in level “3.” can be opened and show their contents as well.
- In TC 7.04a and in TC 7.50a
• I don't see any [SRC] folder in the “2.” level - but I see the others- that's a bit strange.
- No Unix shell here to check, sorry… I guess that we must wait for the Author's and other users' opinions…

:mrgreen: Kind regards
Claude
Clo
Last edited by Clo on 2009-10-20, 18:50 UTC, edited 2 times in total.
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
maxime1008
Junior Member
Junior Member
Posts: 5
Joined: 2009-10-20, 09:14 UTC

TAR

Post by *maxime1008 »

You can try to open it with the 7zip program under Windows. I just realized two other directories are missing using TC internal unpacker ("ac-macros" and "lib3ds-1.3.0", under the "renderer-2.0n" folder).

Kind regards,
Maxime
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Same contents---

Post by *Clo »

2maxime1008

:) Again…

• I opened and extracted the contents with 7-Zip, but sorry, I see exactly the same than above… :|
- However, it's a very old 7Z version (4.29ß), because I don't use 7Z a lot,
I'd strongly corrected the French language in that version and miss time for an upgrade…

:mrgreen: KR
Claude
Clo

XP-Pro SP1 (FRA)
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
maxime1008
Junior Member
Junior Member
Posts: 5
Joined: 2009-10-20, 09:14 UTC

TAR

Post by *maxime1008 »

Thanks for your quick answers :-)

I tried with a more recent version of 7zip (4.65), which shows all the directories.

Maxime
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Right---

Post by *Clo »

2maxime1008

:) Again-again…

• I made a quick wild upgrade to 7Z 4.65 and I can confirm now, all folders missing when opening in TC are there ! :D

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Oddly enough, WinRar doesn't show those folders either.
Whether opening into it's GUI or unpacking from the context menu.

Using UnxUtils bzip2.exe to decompress the file results in a .tar that is not missing any contents.
maxime1008
Junior Member
Junior Member
Posts: 5
Joined: 2009-10-20, 09:14 UTC

Post by *maxime1008 »

..Which means that the tar unpacker is innocent, and there is rather a problem during the bzip2 unpacking process used in the TC plugin and in WinRAR.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Last--- for today ,

Post by *Clo »

2maxime1008

:) Again (3)…

• IMHO, Ch. Ghisler might contact Igor Pavlov who is necessarily aware about the reasons for which
the new 7Z 4.65 can see¦unpack all folders, while the old 7Z 4.29ß, TC and WinRar can't do ! :wink:

:mrgreen: KR
Claude
Clo

Aside : Nice trapped game ! 8)
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

I've sent a bug report to WinRar dev. Since it's very wrong - the bzip2.exe I have is from 2003 and handles the file correctly.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

If anyone's interested, got word back from WinRar dev:
This tar.bz2 consists of several smaller bz2 files merged together.
Search for "BZh91" signature in this file and you will see that.
We'll add support for such composite tar.bz2 in next WinRAR version.
Now WinRAR unpacks only the first nested bz2 stream.

Thank you.
maxime1008
Junior Member
Junior Member
Posts: 5
Joined: 2009-10-20, 09:14 UTC

Post by *maxime1008 »

This archive was created using "pbzip2" which is "Parallel bzip2", spawning N threads (for multi-core CPUs) and thus executing N-times faster. The README of bunzip2 states it has no problem with the resulting archives.

(source: the author of this archive)

Conclusion: WinRAR and the bzip2 TC Plugin have to update to support multi-core and divide the compression time drastically.

I think we can close the thread ! Thanks for your support.
Maxime
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1050
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

Another reason to implement native support for 7-Zip.dll ;)
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

ZoSTeR wrote:Another reason to implement native support for 7-Zip.dll ;)
It would be very great if TC supported 7z.dll (if user placed it near TOTALCMD.exe like Unrar.dll)... :roll: :roll: :roll:
User avatar
flm404
Junior Member
Junior Member
Posts: 25
Joined: 2007-12-02, 23:56 UTC

Post by *flm404 »

ZoSTeR wrote:Another reason to implement native support for 7-Zip.dll ;)
+100!!!
SFMBE (Sorry for my bad english)
Post Reply