RANT (Mild): revZIP library

Paul Dupuis paul at researchware.com
Wed Oct 12 08:09:44 EDT 2022


On 10/12/2022 2:35 AM, Mark Waddingham via use-livecode wrote:
> On 2022-10-11 20:37, Paul Dupuis via use-livecode wrote:
>> We just got bit by a 4+ year old bug (See
>> https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP
>> library on macOS can create and read ZIP archives over 2GB, BUT the
>> Windows library can not.
>
> Do you ship your app as a 64-bit windows exe?
>
> I wonder if its just a limitation of the library we use when compiled 
> for 32-bit archs...
>
> Warmest Regards,
>
> Mark.
>
>

I thought you had nailed it as we build both 32 and 64 bit Windows EXEs 
and I might have been testing the wrong one, but I just rebuilt the app 
using LC 9.6.8 for 64-Bit Windows only (turned off the 32 bit build) and 
retested and get the same error as in the bug report occurs. ZIPs under 
2GB unpack fine. Over 2GB produces the error "ziperr,Can't open file: 
Unknown error" as the result for calling revZipOpenArchive pArchive, 
"read" where pArchive is the filespec.

I think we'll just add a file size check on Windows and advise that that 
customers will need to use a OS or 3rd party ZIP tool to move their 
research data if over 2GB.

For many of our customers, this will never be an issue as their total 
research data will not even come close to 2GB. Some of our customer are 
using video data, and for them, a single video source (used for their 
research) can easily be over a GB itself or even over 2GB by itself. A 
research study can consist of several (or many) such sources.

Unfortunately, with multi-mega pixel phones these days making capturing 
a lot of video very easy more researchers are using large video files in 
their research.






More information about the use-livecode mailing list