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

Buffer #8

Open
Coleganet opened this issue Feb 2, 2022 · 0 comments
Open

Buffer #8

Coleganet opened this issue Feb 2, 2022 · 0 comments

Comments

@Coleganet
Copy link

Coleganet commented Feb 2, 2022

The code start with throw new ERR_BUFFER_OUT_OF_BOUND

I solve with
npm install -g increase-memory-limit
Run from the root location of your project:

increase-memory-limit

will append --max-old-space-size=4096 in all node calls inside your node_modules/.bin/* files.
And now no give errors but not open any port and if I install normally. I got

starting node app.js
internal/buffer.js:81
throw new ERR_BUFFER_OUT_OF_BOUNDS();
^

RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
at boundsError (internal/buffer.js:81:11)
at Buffer.readUInt32LE (internal/buffer.js:217:5)
at initNetwork (/var/carrot-pool/src/utils/finalize_pool_config.js:26:59)
at /var/carrot-pool/src/utils/finalize_pool_config.js:32:32
at Object. (/var/carrot-pool/app.js:19:14)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) {
code: 'ERR_BUFFER_OUT_OF_BOUNDS'
}
[nodemon] app crashed - waiting for file changes before starting...

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