I "succeeded" to hang Ganache #647
Comments
My hunch is that the Ganache's default gasLimit for calls is If you pass a I've run the |
@vporton did you figure out the issue? |
First you were right, there was an infinite loop in my contract. Second after much debugging (just two minutes ago), my test now runs without errors. |
Good to hear! Good luck on the bounty! |
Bug description
The software at https://github.com/vporton/eth-tokens-sum/tree/hangs-ganache consistently hangs Ganache.
Notes
I start Ganache with
npx ganache-cli -d
, then runnpx buidler test --network ganache
.Then after a few hundereds or so iterations of my software's loop Ganache hangs (no more reacts to queries, cannot be exited with Ctrl+C, only with Ctrl+Z and
kill
).Note that my software uses a random number generator. To make the test fully repriseable, need to seed it with a fixed value. However, every time I ran this test, Ganache hanged.
Also note that Buidler instead produces a weird out-of-gas error. (I suspect it has a common codebase with Ganache and this is essentially the same bug.)
Your Environment
The text was updated successfully, but these errors were encountered: