-
Notifications
You must be signed in to change notification settings - Fork 680
Ganache crashes when running truffle debug #332
Comments
Possibly related to /issues/630 |
I originally thought that it might be because I was using the experimental abi encoder, but I refactor my code to no longer use the experimental abi, and I still am getting this issue on some of my transactions. |
@wesleyfsmith Is it possible for you to provide reproduction steps? |
I am hitting the same issue. In my case my contract is large and I am running Ganache with allowUnlimitedContractSize:true. This maybe a contributing factor. Ganache version 2.0.1 Thanks |
@inukaeth Have you tried adjusting the block gasLimit? Its a common issue (not a bug) with allowUnlimitedContractSize where users are attempting to deploy with greater gas requirements than the current block limit. |
@inukaeth if adjusting the |
I believe this happens when the data ganache attempts to send back to the client is too large for the current node process to |
Getting this error as well and I'm working on a mainnet fork.
|
Node.js has a hard limit on the size of strings, that might be the problem here. @davidmurdoch also reports that Barring that, we can probably see about reproducing this error by attempting to If the problem here is with Thanks all! Hopefully we'll be able to sort this one out. |
I get this issue often. I use brownie + ganache-cli, when tx reverts (gas usage: 2m) brwonie sends debug_traceTransaction, and ganache crashes after this file ganache-core.node.cli.js |
Is this where the provider returns data to the client? Wondering if it would be feasible to use JSONStream there instead of JSON.stringify, but I can't say that I'm very familiar with how the code works. |
Fixed in v7! See https://github.com/trufflesuite/ganache/releases/tag/v7.0.0#user-content-v7.0.0-highlights-4 for details! |
I am running ganache 1.3
My test code appears to run successfully, and I am able to see the transaction appear in ganache. However, when I run truffle debug txId I get the following error:
This error occurs when debugging any transaction and causes ganache to crash.
Currently running macOS Mojave 10.14
The text was updated successfully, but these errors were encountered: