System Error when running Ganache 2.0.0 on darwin (ABIEncoderV2)
See original GitHub issueThis error happened in two cases:
- when I wanted to look at a contract that uses ABIEncoderV2 features -
struct
s as inputs in external/public functions - when I wanted to look at a transaction that contains calls to public functions with
struct
s 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:
- Created 4 years ago
- Comments:9 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@haltman-at , I was running this
run
function here: https://github.com/ctzurcanu/dType/blob/242edbb518c59362fb69cb3a387bbe3d87575ba0/contracts/contracts/dType.sol#L259The contracts are wrapped in a truffle project: https://github.com/ctzurcanu/dType#contracts
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.