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

RangeError: Too many elements passed to Promise.all #435

Open
glamperd opened this issue Oct 15, 2023 · 2 comments
Open

RangeError: Too many elements passed to Promise.all #435

glamperd opened this issue Oct 15, 2023 · 2 comments

Comments

@glamperd
Copy link
Contributor

No description provided.

@glamperd
Copy link
Contributor Author

When running a powersoftau prepare phase2 on a large (2^28) file, the process crashes with this error:

[DEBUG] snarkJS: tauG1: fft 28 join  28/28  1/1 8190/8192
[DEBUG] snarkJS: tauG1: fft 28 join  28/28  1/1 8191/8192
/usr/local/lib/nodejs/node-v18.18.0-linux-x64/lib/node_modules/snarkjs/node_modules/fastfile/build/main.cjs:167
        Promise.all(ops).then( () => {
                ^

RangeError: Too many elements passed to Promise.all
    at Function.all (<anonymous>)
    at FastFile._triggerLoad (/usr/local/lib/nodejs/node-v18.18.0-linux-x64/lib/node_modules/snarkjs/node_modules/fastfile/build/main.cjs:167:17)
    at FastFile.readToBuffer (/usr/local/lib/nodejs/node-v18.18.0-linux-x64/lib/node_modules/snarkjs/node_modules/fastfile/build/main.cjs:305:14)
    at processSectionPower (/usr/local/lib/nodejs/node-v18.18.0-linux-x64/lib/node_modules/snarkjs/build/cli.cjs:2659:29)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at process.processImmediate (node:internal/timers:447:9)
    at async processSection (/usr/local/lib/nodejs/node-v18.18.0-linux-x64/lib/node_modules/snarkjs/build/cli.cjs:2641:13)
    at async preparePhase2 (/usr/local/lib/nodejs/node-v18.18.0-linux-x64/lib/node_modules/snarkjs/build/cli.cjs:2619:5)
    at async Object.powersOfTauPreparePhase2 [as action] (/usr/local/lib/nodejs/node-v18.18.0-linux-x64/lib/node_modules/snarkjs/build/cli.cjs:13288:5)
    at async clProcessor (/usr/local/lib/nodejs/node-v18.18.0-linux-x64/lib/node_modules/snarkjs/build/cli.cjs:481:27)

Node.js v18.18.0

@glamperd
Copy link
Contributor Author

glamperd commented Apr 4, 2024

See PR in fastfile repo, PR #102

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

1 participant