bcnode
bcnode copied to clipboard
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
Prerequisites
- [+] Are you running the latest version?
- [+] Are you running the docker image?
- [+] Did you check the README.md for steps to run?
- [+] Did you check logs? (either in console or in
_logs
directory)
For more information, see the CONTRIBUTING
guide.
Description
Run across "JavaScript heap out of memory" error after a 60+ hours uptime.
Steps to Reproduce
- Run the pre-built docker image of 0.5.5 under Debian 9.4 (can't reproduce under Ubuntu 18.04 host)
- The required uptime is app. 60 hours
Expected behavior: [What you expected to happen]
There should be no fatal error cases
Actual behavior: [What actually happened]
- The node produces the fatal error message in console logs (2> .err output file): -- FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory 1: node::Abort() [node] 2: 0x11e7fec [node] 3: v8::Utils::ReportOOMFailure(char const*, bool) [node] 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node] 5: v8::internal::Factory::NewUninitializedFixedArray(int) [node] 6: 0xdee3b3 [node] 7: v8::internal::Runtime_GrowArrayElements(int, v8::internal::Object**, v8::internal::Isolate*) [node] 8: 0x3b81445842fd --
- The rovers exit and the node shuts down as normal.
Versions
0.5.5/e9d4379
Application (required)
You can get this information:
docker run --name bcnode -p 3000:3000 blockcollider/bcnode:0.5.5 start --ws --rovers --ui --node --miner-key aspire > bcnode.log 2> bcnode.err
Environment (optional but helpful)
- OS Version: Debian 9.4 (host)
- Nodejs: v8.11.1 (docker image)
- Rust: rustc 1.27.0-nightly (ac3c2288f 2018-04-18) (docker image)
Logs
Attach the complete console output of the docker session (obtained by "> bcnode.log 2> bcnode.err")