-
Notifications
You must be signed in to change notification settings - Fork 811
System Error when running Ganache 2.0.1 on win32 ('pop' of undefined) #1320
Comments
I also just noticed a similar error, with the same stack trace including line and column numbers, also on win32, though on Ganache version 2.0.0-beta.2. Just prior to that, I'd been reading data from the blockchain in a dapp, getting errors like:
Ganache had previously been displayed on an external monitor that was not present, so the UI was lost. I tried doing a
I was able to see this bug by again connecting to an external monitor with the appropriate dimensions and position. The application log generated for a bug report included calls to the following:
but no recent write transactions. |
I just got this error when opening Ganache (v2.1.2) and clicking Quickstart, with nothing else running to interact with the blockchain. After clicking Relaunch, and clicking on the one existing workspace, the same thing happened, again with nothing else interacting with the blockchain. Here is what was autopopulated when I clicked Raise GitHub Issue: PLATFORM: win32 EXCEPTION:
APPLICATION LOG:
I also found a bunch of duplicates, all reporting the same issue on the same line: On win32: |
See also: ethereumjs/merkle-patricia-tree#12 ("important" "bug" known since May 2016). |
Thanks for digging into this @wbt. We've suspected this to be a race condition, but haven't ever pinpointed the issue. If you are able to consistently reproduce the issue with that workspace, do you mind zipping up the workplace contents and sending it to me? On Windows the app workspace data should be located at You should be able to upload it so https://send.firefox.com/ if you don't mind sharing the contents of the worksapce chain publically. If not, let me know and we'll find another way. Thanks! |
Unfortunately, even I don't have consistent reproduction steps and restarting the app a sufficient number of times (often a low number) and creating a new workspace usually provides a workaround (even if it is a slow one). However, all the dupes I found in a very quick search (there are probably lots more) makes this look like a relatively common issue, and the lack of responses to these system issues that shouldn't be happening make the project look unmaintained. Therefore it might still be a good one to fix. I think a strategy for starting to fix this would be for someone with more time and skill at reading through "callback hell" than I to audit the merkle-patricia-tree code, perhaps starting with the two traces started in the other issue, and making sure there are appropriate undefined checks in place before variables are used or passed on. That code could probably benefit from a good audit/code review and finding/fixing an issue there might have higher impact on production applications than trying the same in Ganache. Also of note, the folder name in
|
I figured out a way of reproducing the issue (in the case where it errors on start up). It came down to a race condition in how we write and read the trie files. The gist of it is that if you The issue you described on start up is caused by a bug in |
Fixed in https://github.com/trufflesuite/ganache/releases/tag/v2.3.0! Please let me know if you are still experiencing problems! |
I received RPC errors where nonces were mismatched. I restarted Ganache several times and, by working through Metamask, used the same RPC link and sample account private key. Transactions were unable to pass because of a nonce mismatch (ie: upon restart, nonce 2 mismatch with nonce 184)
PLATFORM: win32
GANACHE VERSION: 2.0.1
EXCEPTION:
APPLICATION LOG:
The text was updated successfully, but these errors were encountered: