Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: memory access out #745

Open
GeorgeKvara opened this issue Aug 28, 2024 · 1 comment
Open

RuntimeError: memory access out #745

GeorgeKvara opened this issue Aug 28, 2024 · 1 comment
Labels
waiting for more input Issues waiting for more input by the reporter

Comments

@GeorgeKvara
Copy link

After typing command nx compile hardhat I have few errors. It does not execute. Before I was using other laptop, which was Ubuntu and everything was working well but yesterday I bought mac m3 pro and I set up the environment but whenever I run that mentioned command I have those errors and does not execute. Can anyone tell me what is the issue or either hardhat is having a bug?

Error: Command failed: /Users/MacBook/.nvm/versions/node/v18.18.0/bin/node /Users/MacBook/Hinkal-Protocol/libs/hardhat/node_modules/hardhat/internal/solidity/compiler/solcjs-runner.js /Users/MacBook/Library/Caches/hardhat-nodejs/compilers-v2/wasm/soljson-v0.8.17+commit.8df45f5f.js
RuntimeError: memory access out of bounds
    at wasm://wasm/04f5a63e:wasm-function[882]:0x36ef6
    at wasm://wasm/04f5a63e:wasm-function[140]:0x25baf
    at invoke_ii (/Users/MacBook/Library/Caches/hardhat-nodejs/compilers-v2/wasm/soljson-v0.8.17+commit.8df45f5f.js:110:36997)
    at wasm://wasm/04f5a63e:wasm-function[41581]:0x1259761
    at ccall (/Users/MacBook/Library/Caches/hardhat-nodejs/compilers-v2/wasm/soljson-v0.8.17+commit.8df45f5f.js:110:28355)
    at /Users/MacBook/Library/Caches/hardhat-nodejs/compilers-v2/wasm/soljson-v0.8.17+commit.8df45f5f.js:110:28746
    at runWithCallbacks (/Users/MacBook/Hinkal-Protocol/libs/hardhat/node_modules/solc/wrapper.js:151:24)
    at compileStandard (/Users/MacBook/Hinkal-Protocol/libs/hardhat/node_modules/solc/wrapper.js:207:14)
    at Object.compileStandardWrapper [as compile] (/Users/MacBook/Hinkal-Protocol/libs/hardhat/node_modules/solc/wrapper.js:214:14)
    at main (/Users/MacBook/Hinkal-Protocol/libs/hardhat/node_modules/hardhat/internal/solidity/compiler/solcjs-runner.js:26:23)

    at ChildProcess.exithandler (node:child_process:422:12)
    at ChildProcess.emit (node:events:517:28)
    at ChildProcess.emit (node:domain:489:12)
    at maybeClose (node:internal/child_process:1098:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:303:5) {
  code: 1,
  killed: false,
  signal: null,
  cmd: '/Users/MacBook/.nvm/versions/node/v18.18.0/bin/node /Users/MacBook/Hinkal-Protocol/libs/hardhat/node_modules/hardhat/internal/solidity/compiler/solcjs-runner.js /Users/MacBook/Library/Caches/hardhat-nodejs/compilers-v2/wasm/soljson-v0.8.17+commit.8df45f5f.js'
}
@mehtavishwa30
Copy link

Hey @GeorgeKvara!

Could you please provide more information such as the code snippet you're trying to compile so that the error could be reproduced? Additionally, you can try upgrading the compiler version and see if the error still persists.

@cameel cameel added waiting for more input Issues waiting for more input by the reporter and removed Needs Investigation labels Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for more input Issues waiting for more input by the reporter
Projects
None yet
Development

No branches or pull requests

4 participants
@cameel @mehtavishwa30 @GeorgeKvara and others