blockcollider / bcnode

Mining node and rovers for the five genesis chains of Block Collider.
https://www.blockcollider.org
MIT License
45 stars 23 forks source link

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

Open devisn opened 6 years ago

devisn commented 6 years ago

Prerequisites

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)

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