System Error when running Ganache 2.0.0 on darwin
See original GitHub issueThis keeps happening when I want to browse ANY contract in new contract tab. If i leave GUI i can keep working…
PLATFORM: darwin GANACHE VERSION: 2.0.0
EXCEPTION:
TypeError: Cannot read property 'nodes' of undefined
at getStateVariables (/node_modules/truffle-decoder/dist/allocate/storage.js:146:24)
at vars.concat.linearizedBaseContractsFromBase.map (/node_modules/truffle-decoder/dist/allocate/storage.js:154:73)
at Array.map (native)
at allocateContract (/node_modules/truffle-decoder/dist/allocate/storage.js:154:61)
at Object.getStorageAllocations (/node_modules/truffle-decoder/dist/allocate/storage.js:28:23)
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":7545,"network_id":5777,"default_balance_ether":1000,"total_accounts":10,"unlocked_accounts":[],"locked":false,"vmErrorsOnRPCResponse":true,"verbose":false,"db_path":"<<<USER_HOME_DIR>>>/Library/Application Support/Ganache/workspaces/solid-robin/chaindata"}
T+1101ms: Ganache started successfully!
T+1101ms: Waiting for requests...
T+1188ms: eth_subscribe
T+1254ms: eth_getLogs
T+1305ms: eth_subscribe
T+1390ms: eth_getCode
T+1493ms: eth_getCode
T+1519ms: eth_getCode
T+1555ms: eth_getCode
T+21847ms: eth_unsubscribe
T+21887ms: eth_unsubscribe
T+21934ms: eth_unsubscribe
T+21934ms: eth_unsubscribe
T+21934ms: eth_unsubscribe
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
System Error when running Ganache 2.0.0 on darwin - - Bountysource
PLATFORM: darwin. GANACHE VERSION: 2.0.0. EXCEPTION: TypeError: Cannot read property 'nodes' of undefined at getStateVariables ...
Read more >2.0.0-rc.3 on darwin: Can't link Truffle project #1160 - GitHub
Happens whenever you try to link a Truffle project. PLATFORM: darwin. GANACHE VERSION: 2.0.0-rc.3. EXCEPTION: Error: Could not find 'node'.
Read more >ganache - npm
A library and cli to create a local blockchain for fast Ethereum development.. Latest version: 7.7.2, last published: 10 days ago.
Read more >New Ganache (1.1.0-beta.0) Causes Invalid JSON RPC ...
Hey I'm running a test where I expect a transaction to throw. Instead of successfully returning a receipt with a status of 0,...
Read more >Error Installing Discovery CLI - Secret Nodes
I get this permissions error when installing the Discovery CLI xxxxx@DESKTOP-49GSI99:~$ npm i -g @enigmampc/discovery-cli npm WARN ...
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
OK @davidmurdoch, you are presumably already aware of this, but writing this down here where you can find it again more easily: I just merged this Truffle PR, which causes the decoder to throw a special class of error when this error condition comes up, so that you can catch it rather than crashing. Obviously that’s not a proper fix, but a proper fix is still being worked on; in the meantime, once Truffle 5.0.14 (or rather,
truffle-decoder
version 3.0.1) is released, if you upgrade your decoder version you’ll be able to catch the error.Note that Truffle 5.0.13 (or rather,
truffle-decoder
version 3.0.0) included a breaking change to the decoder, in thatinit
is now async, so you’ll have to change that if you haven’t already. But obviously that’s pretty minor.So, we’re currently looking into the problem, but I wanted to suggest a workaround until such time as we have a fix. Would you mind trying this and letting us know if it works? Try recompling your Truffle project with
truffle compile --all
, or, if necessary, recompiling and redeploying the whole thing withtruffle migrate --compile-all --reset
.See if that fixes the problem for now; let us know if it works. Meanwhile, we are, as I said, looking into a more proper fix. Thank you!