unzip error 22: invalid argument

Upgraded to MacOS Catalina and now I cannot unzip any zipped file. I had no problems before. Also, moving the file or redownloading is not fixing it. Multiple files of different sizes failed. MacBook user here.

MacBook

Posted on Oct 13, 2019 10:08 PM

Reply
Question marked as Top-ranking reply

Posted on Dec 1, 2019 12:56 AM

The bug is in the Archive Utility provided with MacOS Catalina.


I have used "The Unarchiver" app downloaded from the App Store. Worked like a charm!

It asks you during unarchiving to choose the encoding for the characters causing the Archive Utility to crash.

77 replies

Nov 7, 2019 1:42 AM in response to MrHoffman

So, here are two files (password is 1510), one that I can unzip and one that I can't. Both files should contain the same file only named differently (one with Swedish characters and one without).


working.zip

not-working.zip


These files were made with 7zip version 18.05 on Windows and I use Archive Utility version 10.15 on my Mac.


I hope this helps determining what the problem might be.

Jan 19, 2020 5:02 AM in response to Mackytack

Mackytack wrote:

@MrHoffman, I just caught up on the thread, and yes this is exactly what is happening to me. I cannot unzip anything that turned into zip as the app immediately crashes. Do you have any suggestions on what to do moving forward (go SLOW, I am not good at this) TIA


See previous discussions of using ditto, and of not populating zips with unhandled characters.

Mar 16, 2020 6:39 PM in response to MrHoffman

I have a whole bunch of Karaoke songs in .zip format. The author of the Karaoke program (kJams) is still working at converting his program to 64-bit. Until then, I boot up to a SSD with Mojave to run his program.


I recently discovered that if I click on one of those files I get the following error:


I booted to Mojave and clicked on the file with Finder and it unzipped correctly.

I tried several other .zipped songs in both Mojave and Catalina and get consistent results.


Oct 23, 2019 10:40 AM in response to MrHoffman

Unfortunately I cannot share the zip file due to the contents being secure. The file was sent from a Microsoft computer, I am not sure how it was generated. however I do know that the issue is only prevalent on mine and a co-workers Mac, it should also be noted we are the only two who have updated to Catalina. Others who haven't yet updated to Catalina can open the zip with no issue.


I did send myself another zip file from a MacBook Pro (not updated to Catalina) and was able to open this zip file without issue. I did with the apple tech on the phone and this is when he advised me about Catalina not being able to unzip a 32 bit file.


Mind you I am not at all IT support so don't have much knowledge, I am just the guy that has to deal with tech problems when they happen.


if anyone else has a similar issue and has found a fix that doesn't involve a third party app, I would love to hear it.

Nov 7, 2019 9:30 AM in response to RandolSchoenberg

That Caslau.zip? Two gigabytes is going to take a while to download here among the internet backwaters. I'll have a look at Caslau.zip later; after it arrives.


As for the not-working.zip file, that's readable with the command line unzip V6.0, on a test-configured box running High Sierra. This using the stock unzip from High Sierra. There's presently no-configured Catalina box readily available to check that.


$ unzip not-working.zip
Archive:  not-working.zip
[not-working.zip] ARIVAB kind Logga åäö.pdf password: 1510
  inflating: ARIVAB kind Logga åäö.pdf  
$ ls "ARIVAB kind Logga åäö.pdf"
ARIVAB kind Logga åäö.pdf
$ file "ARIVAB kind Logga åäö.pdf"
ARIVAB kind Logga åäö.pdf: PDF document, version 1.4
$ unzip -v
UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.

Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip/ ;
see ftp://ftp.info-zip.org/pub/infozip/UnZip.html for other sites.

Compiled with gcc 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31) for Unix Mac OS X on Oct  6 2017
...
$ whereis zip
/usr/bin/zip
$ zipinfo not-working.zip
Archive:  not-working.zip
Zip file size: 56889 bytes, number of entries: 1
-rw-a--     6.3 fat    77679 Bx defN 19-Nov-07 10:24 ARIVAB kind Logga åäö.pdf
1 file, 77679 bytes uncompressed, 56693 bytes compressed:  27.0%
$ 
$ 



Nov 8, 2019 6:21 AM in response to RandolSchoenberg

Good that it’s working, then...


Just noticed there were two different reporters in this thread, too. No wonder it was getting a little confusing to me.


Even though y’all seem to have your unzipping of these zips with non-ASCII filenames now either working or with work-arounds, y’all might want to log some feedback with Apple around the crashes.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

unzip error 22: invalid argument

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.