Coder Social home page Coder Social logo

Comments (1)

cgewecke avatar cgewecke commented on June 17, 2024

Error is:

Security context: 0x19005dd266a1 <JS Object>
    0: builtin exit frame: parse(this=0x19005dd1a7d1 <a JSON with map 0x12dc144053d9>,0x153a5c7cfc31 <Very long string[33974002]>)

    1: compile [/Users/user/Sites/zeppelin-solidity/node_modules/truffle-compile/index.js:100] [pc=0x88a8a83a4](this=0xb5e16d4caa9 <JS Global Object>,sources=0x287e19557711 <an Object with map 0x1ba784c5e9d9>,options=0xb759a4b93e1 <a Config with map 0x1ba784c700a1>...

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

Source in truffle-compile is:

Object.keys(operatingSystemIndependentSources).forEach(function(file_path) {
    solcStandardInput.sources[file_path] = {
      content: operatingSystemIndependentSources[file_path]
    }
  });

  var result = solc.compileStandard(JSON.stringify(solcStandardInput));

  var standardOutput = JSON.parse(result); // <--- CRASH

The solc output string is too big.

This is blocking a zep issue to fix their Coveralls.

Possible fix for them is to invoke truffle via node with the --max-old-space-size=4096 flag, using a .solcover.js and the testCommand option.

from solidity-coverage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.