-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failed to create zip: TypeError [ERR_INVALID_ARG_TYPE]: The "start" argument must be of type number. Received null #991
Comments
@tnvu was this with a pre-compiled version of |
yes, v2.5.0 pre-compiled |
There's probably a problem with error handling in Could you test your input zip file, like this: unzip -t "input/Amazing Spider-Man, The - Ultimate Edition (USA) (En,Fr,Es).zip" |
"No errors detected in compressed data of Amazing Spider-Man, The - Ultimate Edition (USA) (En,Fr,Es).zip." So I did a few tests:
So there is something funky about the weird about the original archive and how igir is handling it... but only when it's in the archived format. I then converted the zip file produced by igir into a torrentzip and it has the same MD5 as the original (problematic) file. So if you have that particular file already, convert it to TorrentZip and you should be able to reproduce the problem. |
This worked for me in that it successfully exits (doesn't hang anymore) and cleans up the temporary files. It should resolve #981 It still has the start argument error though [20:35:26.513] ERROR: CandidateWriter: Nintendo - Wii U (Digital) (CDN): Amazing Spider-Man, The - Ultimate Edition (USA) (En,Fr,Es): output/Amazing Spider-Man, The - Ultimate Edition (USA) (En,Fr,Es).zip: failed to create zip: failed to create patched read stream for input/Amazing Spider-Man, The - Ultimate Edition (USA) (En,Fr,Es).zip|00000019.h3: Error: failed to create stream for input/Amazing Spider-Man, The - Ultimate Edition (USA) (En,Fr,Es).zip|00000019.h3: TypeError [ERR_INVALID_ARG_TYPE]: The "start" argument must be of type number. Received null |
Thank you for testing! That In the meantime, I'll work on getting this change in so at least |
Hi @emmercm Christian, Just wanted to report that i have this error today too from the pre-compiled version. I added some new DAT files into the mix and assumed it was those that caused the issue but having read the above its likely that igir has been asked to process a zip file it ignored before and now will not continue. Unfortunately the output of the error didnt give much in the way of a path to the file with the issue so i couldnt resolve manually. |
https://github.com/0-wiz-0/trrntzip version 1.3 no options provided |
I believe ZJONSSON/node-unzipper#324 is the issue here. I can put in a fix to stop these crashes, but |
🔒 Inactive issue lockThis issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Comment generated by the GitHub Lock Issues workflow. |
Paste the command
./igir move zip test -d dat/Nintendo\ -\ Wii\ U\ (Digital)\ (CDN)\ (20231116-082151).dat -i input -o output -vvv
Describe the bug
On some archives, it prints out the error message
failed to create zip: TypeError [ERR_INVALID_ARG_TYPE]: The "start" argument must be of type number. Received null
Expected behavior
zip file should be created successfully
Debug logs
igir.log
DAT(s) used
https://datomatic.no-intro.org/index.php?page=download&op=dat&s=107
igir version
2.5.0
Node.js version
N/A
Operating system
Linux
Additional context
This is also causing the igir process to hang at the end of processing.
The text was updated successfully, but these errors were encountered: