Validator internal error due to dataset size?

Hi,

I’m having a similar error when trying to run the bids validator through singularity with the command below, after reading through the threads here and here.

 singularity run ../tools/singularity/bids-validator-v1-7-2.simg . --verbose --ignoreSessionConsistency --ignoreSubjectConsistency
bids-validator@1.7.2

Unhandled rejection (
  reason: RangeError: Maximum call stack size exceeded
    at recursiveMerge (/src/utils/files/readDir.js:264:26)
    at async getFilesFromFs (/src/utils/files/readDir.js:283:9)
    at async recursiveMerge (/src/utils/files/readDir.js:266:7)
    at async getFilesFromFs (/src/utils/files/readDir.js:283:9)
    at async recursiveMerge (/src/utils/files/readDir.js:266:7)
    at async getFilesFromFs (/src/utils/files/readDir.js:283:9)
    at async preprocessNode (/src/utils/files/readDir.js:107:10)
    at async Object.readDir (/src/utils/files/readDir.js:25:7)
).

As a note, I don’t believe I had this problem before using heudiconv to convert some more recent scans into this BIDS directory, and encountering this issue, and changing permissions so heudiconv could touch all the files. My /derivatives directory is also now quite large, though, after running more processing, so maybe it’s a size thing?

I can successfully use the bids-validator after I shell into the container, with the commands below. Is there a way to bids-validate outside the container, though? I was also afeared that I messed up some .jsons by killing heudiconv while it was touching all the top-level files a few times while figuring out the heudiconv error.

singularity shell ../tools/singularity/bids-validator-v1-7-2.simg
bids-validator CBPD_bids --verbose --ignoreSessionConsistency --ignoreSubjectConsistency