bcnode icon indicating copy to clipboard operation
bcnode copied to clipboard

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

Open devisn opened this issue 6 years ago • 0 comments

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

  1. Run the pre-built docker image of 0.5.5 under Debian 9.4 (can't reproduce under Ubuntu 18.04 host)
  2. 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]

  1. 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 --
  2. 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")

bcnode-err.zip bcnode-log.z01.zip bcnode-log.zip

devisn avatar May 09 '18 12:05 devisn