[zip Error] Cannot read file- Error while creating a zip archive

Support for Android version of Total Commander

Moderators: Hacker, petermad, Stefan2, white

Post Reply
DärJohannes
Junior Member
Junior Member
Posts: 13
Joined: 2011-07-29, 07:22 UTC

[zip Error] Cannot read file- Error while creating a zip archive

Post by *DärJohannes »

I want to put bunch of (big) files into a zip archive with TC for Android 3.50d on my Samsung Galaxy A55 5G with Android 14. The files consist of photos and videos with a size of around 4.3 GB: 72 MB photos, 4.2 GB videos.


>>> What I do:
  • I select the files in the left panel.
  • I hit the "Pack" button (internal command 112) in order to create a new .zip file in the right panel.
  • I confirm the file name, like e.g. /storage/A2E9-8909/_temp/Bilder_und_Videos.zip
>>> What happens:
Then the packer starts working. After processing all the files without problems, i.e. when reaching 100% in the progress indicator dialog, the process ends giving an error message saying

Code: Select all

Fehler - Fehler beim Lesen der Archivdatei
("Error- Error while reading the archive file")

>>> Tested variants:
  • I tested this with an internal folder and with a folder on the external sd card. Same problem.
  • I tested this with different compression ratios: "0 - no compression" and "6 - normal". Same problem.
  • When I pack only the photos (72 MB), it works without problems.
  • When I first pack only the photos into a zip file, then open the zip file in the right panel and copy/add only one big video (1.2 GB) from the left panel to the already existing file, it works without problems (copy process / verification process).
  • When I pack only the videos (4.2 GB) into a new file, it fails.
  • When I first pack only the photos into a zip file, then open the zip file in the right panel and copy/add all the videos (4.2 GB) from the left panel to the already existing file, it also fails.
=> This seems to be some kind of timeout. In general, everything seems to work.

Battery optimization is disabled for Total Commander. I always kept TC in the foreground during all of these tests, and did not play around with any other app at the same time.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [zip Error] Cannot read file- Error while creating a zip archive

Post by *ghisler(Author) »

Unfortunately ZIP archives larger than 4GB aren't currently supported. They use a different structure for the file information because the original ZIP archives used 32-bit for file sizes and positions within the file. It's not possible to know the archive size before packing, so the user can't be warned that the archive may get bigger than 4GB. I will try to add support for archives >4GB when packing (it's already supported when unpacking).
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1726
Joined: 2011-03-11, 10:11 UTC

Re: [zip Error] Cannot read file- Error while creating a zip archive

Post by *Usher »

2ghisler(Author)
Could you always create 64-bit zip when the total size of files is bigger than 4 GiB?
Andrzej P. Wozniak
Polish subforum moderator
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [zip Error] Cannot read file- Error while creating a zip archive

Post by *ghisler(Author) »

No, this isn't necessary. There are 64-bit extensions which are just extra headers which only need to be added when the file actually gets larger than 4GB.
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1726
Joined: 2011-03-11, 10:11 UTC

Re: [zip Error] Cannot read file- Error while creating a zip archive

Post by *Usher »

So why don't warn/inform user when the total size is bigger than 4 GiB? You can add option to disable this warning.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [zip Error] Cannot read file- Error while creating a zip archive

Post by *ghisler(Author) »

Because it's not a problem when the total size of all the files you pack is larger than 4GB. It only becomes a problem when the resulting archive is larger than 4GB, which depends on the used compression rate.
Author of Total Commander
https://www.ghisler.com
Post Reply