Skip to content

Heap out of memory when reading events from file (50,000 tests) #251

@barakman

Description

@barakman

Running a massive set of tests, I get this:

  51973 passing (5h)

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node_module_register
 2: v8::internal::FatalProcessOutOfMemory
 3: v8::internal::FatalProcessOutOfMemory
 4: v8::internal::Factory::NewUninitializedFixedArray
 5: v8::internal::WasmDebugInfo::SetupForTesting
 6: v8::internal::interpreter::BytecodeArrayRandomIterator::UpdateOffsetFromIndex
 7: 000001FEEE7043C1

The contents of file .solcover.js:

module.exports = {
    port:           8555,
    norpc:          true,
    testCommand:    "node --max-old-space-size=8192 ../../node_modules/truffle/build/cli.bundled.js test --network=coverage",
    compileCommand: "node --max-old-space-size=8192 ../../node_modules/truffle/build/cli.bundled.js compile --network=coverage",
};

Environment:

  • Windows 10
  • node 8.11.2
  • npm 6.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions