question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

System Error when running Ganache 2.0.0 on darwin (ABIEncoderV2)

See original GitHub issue

This error happened in two cases:

  • when I wanted to look at a contract that uses ABIEncoderV2 features - structs as inputs in external/public functions
  • when I wanted to look at a transaction that contains calls to public functions with structs as inputs

Using solc 0.5.7

PLATFORM: darwin GANACHE VERSION: 2.0.0

EXCEPTION:

TypeError: Cannot read property 'members' of undefined
    at allocateStruct (/node_modules/truffle-decoder/dist/allocate/storage.js:34:62)
    at storageSizeAndAllocate (/node_modules/truffle-decoder/dist/allocate/storage.js:250:31)
    at allocateMembers (/node_modules/truffle-decoder/dist/allocate/storage.js:61:31)
    at allocateStruct (/node_modules/truffle-decoder/dist/allocate/storage.js:34:12)
    at Object.getStorageAllocations (/node_modules/truffle-decoder/dist/allocate/storage.js:24:27)
    at TruffleContractDecoder.init (/node_modules/truffle-decoder/dist/interface/contract-decoder.js:87:43)
    at Object.getDecodedEvent (/src/truffle-integration/decode.js:42:11)
    at process.<anonymous> (/src/truffle-integration/index.js:92:31)
    at emitTwo (events.js:125:13)
    at process.emit (events.js:213:7)
    at emit (internal/child_process.js:768:12)
    at _combinedTickCallback (internal/process/next_tick.js:141:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

APPLICATION LOG:

T+0ms: Starting server (version 2.0.0) with initial configuration: {"gasLimit":6721975,"gasPrice":20000000000,"hardfork":"petersburg","hostname":"127.0.0.1","port":8545,"network_id":5777,"default_balance_ether":100,"total_accounts":10,"unlocked_accounts":[],"locked":false,"vmErrorsOnRPCResponse":true,"verbose":false,"db_path":"/Users/loredana/Library/Application Support/Ganache/workspaces/dType/chaindata"}
T+449ms: Ganache started successfully!
T+449ms: Waiting for requests...
T+487ms: net_version
T+532ms: eth_getCode
T+573ms: eth_subscribe
T+612ms: eth_getLogs
T+659ms: eth_subscribe
T+698ms: eth_getCode
T+735ms: eth_getCode
T+774ms: eth_getCode
T+812ms: eth_getCode
T+860ms: eth_getCode
T+899ms: eth_getCode
T+1126ms: net_version
T+7152ms: eth_blockNumber
T+7196ms: net_version
T+7245ms: eth_blockNumber
T+7284ms: net_version
T+7324ms: eth_blockNumber
T+8003ms: net_version
T+10002ms: net_version
T+11068ms: eth_blockNumber
T+13001ms: net_version
T+14995ms: net_version
T+15072ms: eth_blockNumber
T+17679ms: net_version
T+19174ms: eth_blockNumber
T+19789ms: eth_unsubscribe
T+19830ms: eth_unsubscribe
T+19873ms: eth_unsubscribe
T+19925ms: eth_unsubscribe

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

0reactions
davidmurdochcommented, Apr 9, 2019

This should now be fixed in our latest beta: https://github.com/trufflesuite/ganache/releases/tag/v2.0.1-beta.0 Let me know if you have an issues or if the fix doesn’t work for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

System Error when running Ganache 2.5.4 on darwin #4085
PLATFORM: darwin GANACHE VERSION: 2.5.4 EXCEPTION: Error: ENOSPC: no space left on device, open '/Users/apple/Library/Application ...
Read more >
Ganache - Truffle Suite
Quickly fire up a personal Ethereum blockchain which you can use to run tests, execute commands, and inspect state while controlling how the...
Read more >
Error when trying to open Ganache on Ubuntu: archive type ...
This is not related to Ganache. It is related to Linux Ubuntu. The file mode has to be changed to be executable as...
Read more >
Issues with npm config & errors installing ganache-cli and truffle
Just got this answer. Instead of using npm to install ganache-cli, I retried using yarn and it worked. The same thing happened with...
Read more >
ganache-cli - npm
NOTICE: testrpc is now ganache-cli . Use it just as you would testrpc . . Latest version: 6.12.2, last published: 2 years ago....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found