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

Build error on arm. When Zenbot compiles fine. #2

Open
tsrnc2 opened this issue Jul 5, 2018 · 3 comments
Open

Build error on arm. When Zenbot compiles fine. #2

tsrnc2 opened this issue Jul 5, 2018 · 3 comments
Assignees

Comments

@tsrnc2
Copy link

tsrnc2 commented Jul 5, 2018

/root/.npm/_npx/15936/lib/node_modules/bot18/node_modules/js-scrypt/lib/scrypt-async.js:4
var cpu_count = require('os').cpus().length;
^

TypeError: Cannot read property 'length' of undefined
at Object. (/root/.npm/_npx/15936/lib/node_modules/bot18/node_modules/js-scrypt/lib/scrypt-async.js:4:37)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/root/.npm/_npx/15936/lib/node_modules/bot18/node_modules/js-scrypt/index.js:2:8)
at Module._compile (module.js:652:30)

@tsrnc2 tsrnc2 closed this as completed Jul 5, 2018
@tsrnc2 tsrnc2 reopened this Jul 5, 2018
@tsrnc2
Copy link
Author

tsrnc2 commented Jul 6, 2018

Seems this is a known node error with arm64 and require('os').cpus().length
Perhaps you could add a line to the config file so the number of cores can be set manually.

@GarethWright
Copy link
Collaborator

require('os').cpus().length; looks for logical cores rather than physical ones.
That can actually cause a higher latency on multi-threaded apps as two processes share the same physical core.

@GarethWright GarethWright self-assigned this Jul 9, 2018
@fabiosantoscode
Copy link

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

3 participants