ConfluxStudio icon indicating copy to clipboard operation
ConfluxStudio copied to clipboard

OOM when compiling empty project with solj-v0.8.6

Open Thegaram opened this issue 4 years ago • 0 comments

Compiling your contracts...
===========================
✔ Fetching solc version list from solc-bin. Attempt #1
✔ Downloading compiler. Attempt #1.
> Compiling ./contracts/Main.sol
failed to compile wasm module: RangeError: WebAssembly.Instance(): Out of memory: wasm memory
RangeError: WebAssembly.Instance(): Out of memory: wasm memory
    at instantiateSync (/root/.config/truffle/compilers/node_modules/soljson-v0.8.6+commit.11564f7e.js:1:25805189)
    at createWasm (/root/.config/truffle/compilers/node_modules/soljson-v0.8.6+commit.11564f7e.js:1:25806207)
    at Object.<anonymous> (/root/.config/truffle/compilers/node_modules/soljson-v0.8.6+commit.11564f7e.js:1:25833171)
    at Module._compile (internal/modules/cjs/loader.js:1137:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
    at Module.load (internal/modules/cjs/loader.js:985:32)
    at Function.Module._load (internal/modules/cjs/loader.js:878:14)
    at Module.require (internal/modules/cjs/loader.js:1025:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at VersionRange.getCachedSolcByFileName (/usr/local/lib/node_modules/conflux-truffle/build/webpack:/packages/compile-solidity/compilerSupplier/loadingStrategies/VersionRange.js:36:1)
    at VersionRange.getCachedSolcByVersionRange (/usr/local/lib/node_modules/conflux-truffle/build/webpack:/packages/compile-solidity/compilerSupplier/loadingStrategies/VersionRange.js:55:1)
    at VersionRange.load (/usr/local/lib/node_modules/conflux-truffle/build/webpack:/packages/compile-solidity/compilerSupplier/loadingStrategies/VersionRange.js:194:1)
    at /usr/local/lib/node_modules/conflux-truffle/build/webpack:/packages/compile-solidity/compilerSupplier/index.js:71:1
    at new Promise (<anonymous>)
    at CompilerSupplier.load (/usr/local/lib/node_modules/conflux-truffle/build/webpack:/packages/compile-solidity/compilerSupplier/index.js:51:1)
    at invokeCompiler (/usr/local/lib/node_modules/conflux-truffle/build/webpack:/packages/compile-solidity/run.js:252:17)
    at run (/usr/local/lib/node_modules/conflux-truffle/build/webpack:/packages/compile-solidity/run.js:29:40)
    at compile (/usr/local/lib/node_modules/conflux-truffle/build/webpack:/packages/compile-solidity/new/index.js:23:1)
    at AsyncFunction.compile.with_dependencies (/usr/local/lib/node_modules/conflux-truffle/build/webpack:/packages/compile-solidity/new/index.js:106:1)
    at compile.necessary (/usr/local/lib/node_modules/conflux-truffle/build/webpack:/packages/compile-solidity/new/index.js:62:1)
    at /usr/local/lib/node_modules/conflux-truffle/build/webpack:/packages/workflow-compile/new/index.js:50:1
    at async Promise.all (index 0)
Conflux-Truffle v0.0.8 (core: 5.1.29)
Node v12.18.4

Thegaram avatar Jul 28 '21 09:07 Thegaram