Skip to content

igir zip produces corrupted zip archives #1943

@amy-langley

Description

@amy-langley

Paste the command

node /home/amy/.nvm/versions/node/v25.2.1/bin/igir zip move report --dat dats --input roms-verified --output roms-verified/{romm} --no-bios --dir-game-subdir multiple

Describe the bug

I attempted to compress my ROM library and after doing so ran igir test to verify the operation. Many of the zip archives that were created by igir were not readable by igir or any other zip extractor. Because I unwisely combined zip with move instead of copy, the original files are gone.

Here is some sample output from the igir test command.

WARN: roms-verified/ps2/Fatal Frame (USA).zip: failed to parse .zip file: invalid stored block lengths
WARN: roms-verified/ps2/Fatal Frame II - Crimson Butterfly (USA).zip: failed to parse .zip file: invalid block type
WARN: roms-verified/ps2/Fatal Frame III - The Tormented (USA).zip: failed to parse .zip file: invalid block type
WARN: roms-verified/ps2/Fatal Fury - Battle Archives Volume 1 (USA).zip: failed to parse .zip file: stream exceeded expected size of 2219900928
WARN: roms-verified/ps2/Fatal Fury - Battle Archives Volume 2 (USA, Canada).zip: failed to parse .zip file: invalid stored block lengths
WARN: roms-verified/ps2/Ferrari F355 Challenge (USA).zip: failed to parse .zip file: invalid stored block lengths
WARN: roms-verified/ps2/FIFA Soccer 06 (USA) (En,Es).zip: failed to parse .zip file: invalid block type
WARN: roms-verified/ps2/FIFA Soccer 07 (USA) (En,Es).zip: failed to parse .zip file: invalid literal/length code
WARN: roms-verified/ps2/FIFA Soccer 08 (USA, Canada) (En,Es).zip: failed to parse .zip file: stream exceeded expected size of 4677763072

Expected behavior

When igir archives a ROM as a zip file, I expect that zip file to be readable by igir and other zip utilities.

Debug logs

Unfortunately I don't have the logs from the run that corrupted the files, but I have run igir over my library here in these logs.

igir.log.gz

DAT(s) used

https://www.tosecdev.org/downloads/category/59-2025-03-13?download=117:tosec-dat-pack-complete-4743-tosec-v2025-03-13

igir version

4.2.0

Node.js version

25.1.2

Operating system

Ubuntu Linux 24.04 LTS

Additional context

Additional notes: roms-verified is a symlink to the actual location of the roms. The roms are stored on an SMB share that is mounted via fstab. The version of SMB is 3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    potential-bugA potential issue that needs confirmation and/or triage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions