emmercm / igir

πŸ•Ή A zero-setup ROM collection manager that sorts, filters, extracts or archives, patches, and reports on collections of any size on any OS.
https://igir.io/
GNU General Public License v3.0
344 stars 16 forks source link

app crash at EMFILE: too many open files #885

Closed doggy closed 6 months ago

doggy commented 7 months ago

Paste the command

➜  AP512 cat igir_pocket_sync.sh 
#!/usr/bin/env bash
set -euo pipefail

here="$(pwd)"
# shellcheck disable=SC2064
trap "cd \"${here}\"" EXIT
cd "$(dirname "$0")"

SOURCE=/Volumes/DockCase/_ROMs/ROMs-Sorted/

npx igir@latest copy extract test clean \
  --dat "${SOURCE}/../No-Intro*.zip" \
  --dat-name-regex-exclude "/headerless/i" \
  --input "${SOURCE}/No-Intro/" \
  --input-exclude "${SOURCE}/No-Intro/Nintendo - Game Boy Advance (e-Reader)/" \
  --output "./Assets/{pocket}/common/" \
  --dir-letter \
  --dir-letter-limit 1000 \
  `# Leave BIOS files alone` \
  --clean-exclude "./Assets/*/common/*.*" \
  --overwrite-invalid \
  --no-bios \
  --no-bad \
  --single \
  --prefer-language ZH,EN,JA \
  --prefer-region CHN,USA,WORLD,EUR,JPN \
  --prefer-revision-newer \
  --prefer-retail
➜  AP512 sh ./igir_pocket_sync.sh 
 ______   ______   ______  _______  
|      \ /      \ |      \|       \ 
 \$$$$$$|  $$$$$$\ \$$$$$$| $$$$$$$\
  | $$  | $$|    \  | $$  | $$    $$   ROM collection manager
  | $$  | $$|    \  | $$  | $$    $$   https://igir.io/
  | $$  | $$ \$$$$  | $$  | $$$$$$$\
 _| $$_ | $$__| $$ _| $$_ | $$  | $$   v2.2.1
|   $$ \ \$$    $$|   $$ \| $$  | $$
 \$$$$$$  \$$$$$$  \$$$$$$ \$$   \$$

WARN:  Node.js v21 has a very short support window (ending on Sat Jun 01 2024), 
you should consider using an LTS version
βœ“ Scanning for DATs Β·Β·Β·Β·Β·Β·Β·Β·Β·Β· | 292 unique DATs found
↻ Scanning for ROMs Β·Β·Β·Β·Β·Β·Β·Β·Β·Β· | β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’ | 49,032/49,068 | /Vn
      throw er; // Unhandled 'error' event
      ^

Error: EMFILE: too many open files, open '/Volumes/DockCase/_ROMs/ROMs-Sorted/No
Emitted 'error' event on ReadStream instance at:
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82: 
  errno: -24,
  code: 'EMFILE',
  syscall: 'open',
  path: '/Volumes/DockCase/_ROMs/ROMs-Sorted/No-Intro/iQue - iQue (Decrypted)/Do
}

Node.js v21.5.0

Describe the bug

All ROMs fetch from archive org site. all sub-folder in ROMs-Sorted generated by script FirstTimeCollectionSort.sh but multiple times.

➜  No-Intro pwd
/Volumes/DockCase/_ROMs/ROMs-Sorted/No-Intro
➜  No-Intro 
➜  No-Intro ls
ACT - Apricot PC Xi                                   Interton - VC 4000
APF - Imagination Machine                             Konami - Picno
APF - MP-1000                                         LeapFrog - LeapPad
Acorn - Archimedes                                    LeapFrog - Leapster Learning Game System
Acorn - Atom (Tapes) (Bitstream)                      Luxor - ABC 800 (Flux)
Acorn - Risc PC (Flux)                                Magnavox - Odyssey 2
Acorn RISC OS - Flash Media (Misc)                    Mattel - Intellivision
Amstrad - CPC (Flux)                                  Microsoft - MSX
Amstrad - CPC (Misc)                                  Microsoft - MSX2
Apple - I (Tapes)                                     Milton-Bradley - Omni (Waveform)
Apple - II (A2R)                                      Mobile - J2ME
Apple - II (WOZ)                                      Mobile - Palm OS
Apple - II (Waveform)                                 Mobile - Palm OS (Digital)
Apple - II Plus (Flux)                                Mobile - Pocket PC
Apple - II Plus (WOZ)                                 Mobile - Pocket PC (Digital)
Apple - IIGS (A2R)                                    Mobile - Symbian
Apple - IIGS (WOZ)                                    NEC - PC Engine - TurboGrafx-16
Apple - IIe (A2R)                                     NEC - PC Engine SuperGrafx
Apple - IIe (Kryoflux)                                NEC - PC-88 (Flux)
Apple - IIe (WOZ)                                     NEC - PC-88 (KryoFlux)
Apple - Macintosh (A2R)                               NEC - PC-98
Apple - Macintosh (BETA) (Bitstreams)                 NEC - PC-98 (Flux)
Apple - Macintosh (BETA) (FluxDumps)                  NEC - PC-98 (Greaseweazle)
Apple - Macintosh (DC42)                              NEC - PC-98 (HardDisk)
Apple - Macintosh (KryoFlux)                          NEC - PC-98 (Uncategorized)
Apple - Macintosh (Uncategorized)                     Nichibutsu - My Vision
Apple - Macintosh (WOZ)                               Nintendo - Family BASIC (Tapes)
Apple-Bandai - Pippin (Floppies)                      Nintendo - Family Computer Disk System (FDS)
Arcade - PC-based                                     Nintendo - Family Computer Disk System (QD)
Arduboy Inc - Arduboy                                 Nintendo - Family Computer Network System
Atari - 2600                                          Nintendo - Game & Watch
Atari - 5200                                          Nintendo - Game Boy
Atari - 7800                                          Nintendo - Game Boy Advance
Atari - 8-bit Family                                  Nintendo - Game Boy Advance (Multiboot)
Atari - 8-bit Family (Kryoflux)                       Nintendo - Game Boy Advance (Play-Yan)
Atari - Jaguar (ABS)                                  Nintendo - Game Boy Advance (Video)
Atari - Jaguar (COF)                                  Nintendo - Game Boy Advance (e-Reader)
Atari - Jaguar (J64)                                  Nintendo - Game Boy Color
Atari - Jaguar (ROM)                                  Nintendo - Kiosk Video Compact Flash (CardImage)
Atari - Lynx (BLL)                                    Nintendo - Kiosk Video Compact Flash (Extracted)
Atari - Lynx (LNX)                                    Nintendo - Nintendo Entertainment System (Headered)
Atari - Lynx (LYX)                                    Nintendo - Nintendo Entertainment System (Headerless)
Atari - ST                                            Nintendo - Pokemon Mini
Atari - ST (Flux)                                     Nintendo - Satellaview
Bally - Astrocade                                     Nintendo - Sufami Turbo
Bally - Astrocade (Tapes)                             Nintendo - Virtual Boy
Bally - Astrocade (Tapes) (WAV)                       Nintendo - Wallpapers
Bandai - Design Master Denshi Mangajuku               Nintendo - amiibo
Bandai - Gundam RX-78                                 Nokia - N-Gage
Bandai - WonderSwan                                   Philips - Videopac+
Bandai - WonderSwan Color                             Project EGG
Benesse - Pocket Challenge V2                         RCA - Studio II
Benesse - Pocket Challenge W                          SNK - NeoGeo Pocket
Bit Corporation - Gamate                              SNK - NeoGeo Pocket Color
Casio - Loopy (BigEndian)                             Sanyo - MBC-550 (Flux)
Casio - Loopy (LittleEndian)                          Sega - 32X
Casio - PV-1000                                       Sega - Beena
Coleco - ColecoVision                                 Sega - Dreamcast (Visual Memory Unit)
Commodore - Amiga                                     Sega - Game Gear
Commodore - Amiga (Bitstream)                         Sega - Master System - Mark III
Commodore - Amiga (Flux)                              Sega - Mega Drive - Genesis
Commodore - Commodore 64                              Sega - PICO
Commodore - Commodore 64 (PP)                         Sega - SG-1000
Commodore - Commodore 64 (Tapes)                      Seta - Aleck64 (BigEndian)
Commodore - Plus-4                                    Seta - Aleck64 (ByteSwapped)
Commodore - VIC-20                                    Sharp - MZ-2200 (Waveform)
Digital Media Cartridge - Firecore                    Sharp - MZ-700 (Waveform)
Emerson - Arcadia 2001                                Sharp - X1 (Waveform)
Entex - Adventure Vision                              Sharp - X68000 (Flux)
Epoch - Game Pocket Computer                          Sinclair - ZX Spectrum +3
Epoch - Super Cassette Vision                         TeleNova - Compis (Flux)
Fairchild - Channel F                                 Texas Instruments - TI-99-4A (A2R)
Fujitsu - FM Towns (Flux)                             Tiger - Game.com
Fujitsu - FM Towns (HDM)                              Tiger - Gizmondo
Fujitsu - FM-7 (Bitstream)                            Toshiba - Pasopia (BIN)
Fujitsu - FM-7 (Flux)                                 Toshiba - Pasopia (WAV)
Fujitsu - FM-7 (Sector)                               Toshiba - Visicom
Fujitsu - FM-7 (Tapes) (Bitstream)                    VM Labs - NUON (Digital)
Fujitsu - FM-7 (Tapes) (Waveform)                     VTech - CreatiVision
Fujitsu - FMR50 (Flux)                                VTech - V.Smile
Fukutake Publishing - StudyBox                        Watara - Supervision
Funtech - Super Acan                                  Welback - Mega Duck
GCE - Vectrex                                         Yamaha - Copera
GamePark - GP2X                                       Zeebo - Zeebo
GamePark - GP32                                       iQue - iQue (CDN)
Hartung - Game Master                                 iQue - iQue (Decrypted)
Hitachi - S1 (Waveform)
➜  No-Intro 

Expected behavior

Igir app should handle the folder which contains all my different console ROMs.

Debug logs

[20:42:52.690] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) 
(2024-01-14).zip|Unofficial/Unofficial - Video Game Scans (RAW) (Parent-Clone) (20230712-063322).dat: 
attempting to parse 444KiB of XML
[20:42:52.724] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) 
(2024-01-14).zip|Unofficial/Unofficial - Video Game Scans (RAW) (Parent-Clone) (20230712-063322).dat: parsed 
XML, deserializing to DAT
[20:42:52.740] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) 
(2024-01-14).zip|Unofficial/Unofficial - Video Game Scans (RAW) (Parent-Clone) (20230712-063322).dat: 
142.7GiB of 215 games, 211 parents parsed
[20:42:52.747] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) 
(2024-01-14).zip|Unofficial/Unofficial - Nintendo - Wii (Digital) (Split DLC) (Deprecated) (WAD) 
(Parent-Clone) (20190825-031431).dat: attempting to parse 1.9MiB of XML
[20:42:52.835] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) 
(2024-01-14).zip|Unofficial/Unofficial - Nintendo - Wii (Digital) (Split DLC) (Deprecated) (WAD) 
(Parent-Clone) (20190825-031431).dat: parsed XML, deserializing to DAT
[20:42:52.902] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) 
(2024-01-14).zip|Unofficial/Unofficial - Nintendo - Wii (Digital) (Split DLC) (Deprecated) (WAD) 
(Parent-Clone) (20190825-031431).dat: 101.8GiB of 4,839 games, 4,838 parents parsed
[20:42:52.911] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) 
(2024-01-14).zip|Unofficial/Unofficial - Nintendo - Wii U (Digital) (Deprecated) (Parent-Clone) 
(20191222-002825).dat: attempting to parse 2.6MiB of XML
[20:42:53.227] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) 
(2024-01-14).zip|Unofficial/Unofficial - Nintendo - Wii U (Digital) (Deprecated) (Parent-Clone) 
(20191222-002825).dat: parsed XML, deserializing to DAT
[20:42:53.406] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) 
(2024-01-14).zip|Unofficial/Unofficial - Nintendo - Wii U (Digital) (Deprecated) (Parent-Clone) 
(20191222-002825).dat: 94GiB of 130 games, 130 parents parsed
[20:42:53.412] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) 
(2024-01-14).zip|Unofficial/Unofficial - Video Game OSTs (Hardware Recordings) (Parent-Clone) 
(20231224-223249).dat: attempting to parse 2MiB of XML
[20:42:53.524] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) 
(2024-01-14).zip|Unofficial/Unofficial - Video Game OSTs (Hardware Recordings) (Parent-Clone) 
(20231224-223249).dat: parsed XML, deserializing to DAT
[20:42:53.589] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) 
(2024-01-14).zip|Unofficial/Unofficial - Video Game OSTs (Hardware Recordings) (Parent-Clone) 
(20231224-223249).dat: 202.2GiB of 251 games, 251 parents parsed
[20:42:53.591] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) 
(2024-01-14).zip|Unofficial/Unofficial - Video Game Magazine Scans (RAW) (Parent-Clone) 
(20220824-051032).dat: attempting to parse 2.5MiB of XML
[20:42:53.731] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) 
(2024-01-14).zip|Unofficial/Unofficial - Video Game Magazine Scans (RAW) (Parent-Clone) 
(20220824-051032).dat: parsed XML, deserializing to DAT
[20:42:53.822] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) 
(2024-01-14).zip|Unofficial/Unofficial - Video Game Magazine Scans (RAW) (Parent-Clone) 
(20220824-051032).dat: 368.4GiB of 196 games, 196 parents parsed
[20:42:53.831] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) 
(2024-01-14).zip|Unofficial/Unofficial - Sony - PlayStation Portable (PSN) (Decrypted) (Parent-Clone) 
(20230704-163013).dat: attempting to parse 4.9MiB of XML
[20:42:54.104] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) 
(2024-01-14).zip|Unofficial/Unofficial - Sony - PlayStation Portable (PSN) (Decrypted) (Parent-Clone) 
(20230704-163013).dat: parsed XML, deserializing to DAT
[20:42:54.255] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) 
(2024-01-14).zip|Unofficial/Unofficial - Sony - PlayStation Portable (PSN) (Decrypted) (Parent-Clone) 
(20230704-163013).dat: 1TiB of 2,409 games, 2,392 parents parsed
[20:42:54.267] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) 
(2024-01-14).zip|No-Intro/IBM - PC and Compatibles (Flux) (Parent-Clone) (20230507-112016).dat: attempting to
 parse 13.8MiB of XML
[20:42:55.133] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) 
(2024-01-14).zip|No-Intro/IBM - PC and Compatibles (Flux) (Parent-Clone) (20230507-112016).dat: parsed XML, 
deserializing to DAT
[20:42:55.642] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) 
(2024-01-14).zip|No-Intro/IBM - PC and Compatibles (Flux) (Parent-Clone) (20230507-112016).dat: 24.8GiB of 
332 games, 302 parents parsed
[20:42:55.806] INFO:  DATScanner: done scanning DAT files
βœ“ Scanning for DATs Β·Β·Β·Β·Β·Β·Β·Β·Β·Β· | 292 unique DATs found
[20:42:55.807] INFO:  ROMScanner: scanning ROM files
[20:42:59.362] DEBUG: ROMScanner: found 49,068 ROM files
[20:48:58.242] ERROR: ROMScanner: /Volumes/DockCase/_ROMs/ROMs-Sorted/No-Intro/iQue - iQue (Decrypted)/Maliou
 Yisheng (China) (v2) (Manual).zip: failed to parse file: EMFILE: too many open files, open 
'/Volumes/DockCase/_ROMs/ROMs-Sorted/No-Intro/iQue - iQue (Decrypted)/Maliou Yisheng (China) (v2) 
(Manual).zip'
↻ Scanning for ROMs Β·Β·Β·Β·Β·Β·Β·Β·Β·Β· | β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’ | 49,033/49,068 | /Volumes/DockCase/_ROMs/ROMs-Son
      throw er; // Unhandled 'error' event
      ^

Error: EMFILE: too many open files, open '/Volumes/DockCase/_ROMs/ROMs-Sorted/No-Intro/Zeebo - Zeebo/Z-Wheel 
Emitted 'error' event on ReadStream instance at:
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -24,
  code: 'EMFILE',
  syscall: 'open',
  path: '/Volumes/DockCase/_ROMs/ROMs-Sorted/No-Intro/Zeebo - Zeebo/Z-Wheel (Brazil) (Es,Pt).zip'
}

Node.js v21.5.0
➜  AP512 

DAT(s) used

No-Intro Love Pack (PC XML) (2024-01-14).zip

igir version

v2.2.1

Node.js version

v21.5.0

Operating system

macOS 13.6.1 (22G313)

Additional context

tried add with ulimit -n 1638400 in the beginning of the shell file but not helps.

emmercm commented 7 months ago

igir is using graceful-fs to prevent errors like these, but clearly, it isn't catching all of them. And unfortunately, that stack trace doesn't contain much information to go off of. I'll try to spot places that this can happen.

emmercm commented 7 months ago

@doggy if you reduce the number of reader threads with something like --reader-threads 5 does that solve the issue?

doggy commented 7 months ago

Thanks your reply.

And adjust reader threads number seems not help with this even I set number to only 1 (log attached at below)

For now, I pickup all AP related rom folder to a separate folder "No-Intro-AP", then use my igir_pocket_sync.sh, the error disappears and igir can properly scan&copy ROMs to AP512(the TF card drive name I called).

To re-appear this issue, I moved all other ROM folders to "No-Intro-AP" and below is the result. It looks igir(current version) cannot handle all of the ROM subfolders downloaded at archive's No-Intro page.

205.9GiB of 55 games, 55 parents parsed
[19:25:13.628] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) (2024-01-14).zip|Non-Game/MP3 CD (Parent-Clone) (20230704-115209).dat: 
attempting to parse 2.3KiB of XML
[19:25:13.628] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) (2024-01-14).zip|Non-Game/MP3 CD (Parent-Clone) (20230704-115209).dat: 
parsed XML, deserializing to DAT
[19:25:13.628] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) (2024-01-14).zip|Non-Game/MP3 CD (Parent-Clone) (20230704-115209).dat: 
4.3GiB of 6 games, 6 parents parsed
[19:25:13.630] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) (2024-01-14).zip|index.txt: attempting to parse 18.2KiB of XML
[19:25:13.630] DEBUG: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) (2024-01-14).zip|index.txt: failed to parse DAT XML: Non-whitespace 
before first tag., Line: 0, Column: 1, Char: A
[19:25:13.631] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) (2024-01-14).zip|index.txt: attempting to parse SMDB
[19:25:13.636] TRACE: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) (2024-01-14).zip|index.txt: failed to parse SMDB, file has no rows
[19:25:13.636] DEBUG: DATScanner: /Volumes/DockCase/_ROMs/No-Intro Love Pack (PC XML) (2024-01-14).zip|index.txt: failed to parse DAT file
[19:25:13.791] INFO:  DATScanner: done scanning DAT files
βœ“ Scanning for DATs Β·Β·Β·Β·Β·Β·Β·Β·Β·Β· | 292 unique DATs found
[19:25:13.795] INFO:  ROMScanner: scanning ROM files
[19:25:16.777] DEBUG: ROMScanner: found 52,312 ROM files
↻ Scanning for ROMs Β·Β·Β·Β·Β·Β·Β·Β·Β·Β· | β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’ | 52,175/52,312 | /Volumes/DockCase/_ROMs/ROMs-Sorted/No-Intro-AP/Zeebo - Zeebo/Zeebo App (Brazil)n
      throw er; // Unhandled 'error' event
      ^

Error: EMFILE: too many open files, open '/Volumes/DockCase/_ROMs/ROMs-Sorted/No-Intro-AP/Zeebo - Zeebo/Z-Wheel (Brazil) (Es,Pt).zip'
Emitted 'error' event on ReadStream instance at:
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -24,
  code: 'EMFILE',
  syscall: 'open',
  path: '/Volumes/DockCase/_ROMs/ROMs-Sorted/No-Intro-AP/Zeebo - Zeebo/Z-Wheel (Brazil) (Es,Pt).zip'
}

Node.js v21.5.0
➜  DockCase 
➜  DockCase 
➜  DockCase cat ./igir_pocket_sync.sh 
#!/usr/bin/env bash
set -euo pipefail

here="$(pwd)"
# shellcheck disable=SC2064
trap "cd \"${here}\"" EXIT
cd "$(dirname "$0")"

SOURCE=/Volumes/DockCase/_ROMs/ROMs-Sorted

npx igir@latest copy extract clean -vvv \
  --dat "${SOURCE}/../No-Intro*.zip" \
  --dat-name-regex-exclude "/headerless/i" \
  --input "${SOURCE}/No-Intro-AP/" \
  --input-exclude "${SOURCE}/No-Intro/Nintendo - Game Boy Advance (e-Reader)/" \
  --output "./Assets/{pocket}/common/_No-Intro/" \
  --dir-letter \
  `#--dir-letter-limit 1000` \
  `# Leave BIOS files alone` \
  --clean-exclude "./Assets/*/common/*.*" \
  --overwrite-invalid \
  --no-bios \
  --no-bad \
  --single \
  --prefer-language ZH,EN,JA \
  --prefer-region CHN,USA,WORLD,EUR,JPN \
  --prefer-revision-newer \
  --prefer-retail \
  --reader-threads 1
➜  DockCase 
emmercm commented 7 months ago

@doggy I don't think I understood your comment about what made the issue stop for you. In that case, were your input and output directories on separate disk drives?

I suspect this isn't a folder issue, but I don't know for sure.

TheBrainScrambler commented 6 months ago

I think doggy solved it by simply scanning a subset of his roms, and not all of them.

I pickup all AP related rom folder to a separate folder "No-Intro-AP", then use my igir_pocket_sync.sh, the error disappears

He made it reappear by simply moving back all his remaining roms, so in effect he was again scanning all of his roms

I moved all other ROM folders to "No-Intro-AP" and below is the result

emmercm commented 6 months ago

@doggy I think I found the issue while debugging #913, there are some file handles hanging when it isn't necessary to compute MD5 or SHA1 checksums of zip entries.

github-actions[bot] commented 5 months ago

:lock: Inactive issue lock

This 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.