Internal 7z unpacker and 7zip.wcx stop unpacking half way

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
billiebub
Member
Member
Posts: 187
Joined: 2011-04-12, 19:49 UTC

Internal 7z unpacker and 7zip.wcx stop unpacking half way

Post by *billiebub »

Both internal 7z unpacker and plugin 7zip.wcx (0.7.6.6) reach a point where they fail to unpack 7z archive. The error displayed is "Error writing ........". The 7z archive contains very long paths. Both seem to work for simple 7z archives but not for large 7z archives containing very long paths.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Not confirmed. Please provide a sample 7z file with this problem. If possible, delete large files from it so the sample file is as small as possible while still causing the problem.
Author of Total Commander
https://www.ghisler.com
billiebub
Member
Member
Posts: 187
Joined: 2011-04-12, 19:49 UTC

Post by *billiebub »

Ok I narrowed down the problem. If the destination directory has a path that's like 280 characters, the unpacking will fail for both 7zip.wcx and internal unpacker. I also tested a .zip version of the file and it works fine. The problem seems to only affect .7z. The problem exists for both 9.0a and 9.10B.

Steps to reproduce:

1- Create the following directory:
C:\fasfsadfsadfasdfweafrasfsadfsadfa\fasfsadfsadfasdfweafrasfsadfsadfa\fasfsadfsadfasdfweafrasfsadfsadfa\fasfsadfsadfasdfweafrasfsadfsadfa\fasfsadfsadfasdfweafrasfsadfsadfa\

2- Unpack the below .7z and .Zip files to above directory.

7z -> https://drive.google.com/open?id=0B5LHHrv-wH7ca1hsaU1lb2pvcVU

Zip -> https://drive.google.com/open?id=0B5LHHrv-wH7cWWxsNmp6ZzY3YkU
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Most plugins do not support paths longer than 259 characters. This is a limitation in Windows, not Total Commander or the plugins. Windows functions need to be called in a special way to use longer paths. Total Commander supports this in some functions, but not all. I will check why there is a crash, though.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

So far neither the RAR nor the 7zip packer support names longer than 259 characters. I will keep it this way for now. I managed to fix a crash occuring in the long name warning dialog, though.
Author of Total Commander
https://www.ghisler.com
Post Reply