Internal 7z unpacker and 7zip.wcx stop unpacking half way
Moderators: Hacker, petermad, Stefan2, white
Internal 7z unpacker and 7zip.wcx stop unpacking half way
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.
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
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
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
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com