jsdoc icon indicating copy to clipboard operation
jsdoc copied to clipboard

RangeError: Value undefined out of range for undefined options property undefined

Open ekoskithunder opened this issue 3 years ago • 6 comments

JSDoc debug output

.npm-global/lib64/node_modules/jsdoc/lib/jsdoc/util/doop.js:9
        set.add(item);      

RangeError: Value undefined out of range for undefined options property undefined.

Expected behavior

Attempting to apply JSDoc recursively to all files within a directory

Current behavior

Originally got "FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory" but after allocating more memory I would instead get the RangeError shown above. If I allocate 4gb of memory I get the FATAL ERROR but if I do more I get the RangeError.

Your environment

Software Version
JSDoc 3.6.7
Node.js v16.13.0
npm 8.1.0
Operating system Gentoo

ekoskithunder avatar Jan 19 '22 17:01 ekoskithunder

Is it possible that there's some symbolic link to itself, and this is getting into an infinite loop?

JJ avatar Jan 19 '22 17:01 JJ

I checked and there aren't any instances of symbolic links in the directory.

ekoskithunder avatar Jan 19 '22 18:01 ekoskithunder

Can you please post the command line you used and something about the file structure? Like depth, or number of files?

JJ avatar Jan 19 '22 18:01 JJ

"node --max_old_space_size=8192 /home/eric/.npm-global/bin/jsdoc --verbose -r ." was the command used.

There are 593 files with a depth of 5.

ekoskithunder avatar Jan 19 '22 18:01 ekoskithunder

Hi, are you able to find any solution for this yet?

iHamzaKhanzada avatar Mar 19 '22 21:03 iHamzaKhanzada

No, but we did find a work around. For some reason when running JSDoc on all files in the directory it would produce that error however, if you ran it on each directory individually it wouldn't error.

ekoskithunder avatar Mar 21 '22 14:03 ekoskithunder