Skip to content
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

invalid array length Allocation failed #79

Open
viendocraz opened this issue Nov 21, 2020 · 1 comment
Open

invalid array length Allocation failed #79

viendocraz opened this issue Nov 21, 2020 · 1 comment

Comments

@viendocraz
Copy link

Getting this error when trying to hash a large file using ots-cli.js.cmd. node v12.18.3.

FATAL ERROR: invalid array length Allocation failed - JavaScript heap out of memory

@lvaccaro
Copy link
Member

Hi @viendocraz,
ots-cli.js reads the file in memory as an array of bytes, it is not optimised to big file.
You could use an external tool to generate the hash and then pass it to ots-cli.js with option --digest <digest>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants