Strange crash with RangeError: invalid string length
See original GitHub issueI’m using Ganache CLI v6.12.2 (ganache-core: 2.13.2)
Here’s my brownie logs for this problem. Right at the top you see a transaction which reverts and that’s exactly what I want. But after that, every time, ganache crashes. It takes a snapshot, gets a trace transaction, and increases the time? What’s going on here? Is this my fault or ganache’s?
Transaction: 0xa9505e1bb7f5cebfd7b79628f41f3e5c4c41495e9e4fb5b7291bf5399231703d
Gas usage: 420261
Block Number: 29
Block Time: Wed Oct 06 2021 07:33:43 GMT-0400 (Eastern Daylight Time)
Runtime Error: revert
Revert reason: OVLV1:!liquidatable
eth_getTransactionByHash
eth_getTransactionCount
eth_getTransactionReceipt
debug_traceTransaction
evm_snapshot
Saved snapshot #32
debug_traceTransaction
evm_increaseTime
RangeError: Invalid string length
at JSON.stringify (<anonymous>)
at /Users/realisation/.config/yarn/global/node_modules/ganache-cli/build/ganache-core.node.cli.js:94:96641
at /Users/realisation/.config/yarn/global/node_modules/ganache-cli/build/ganache-core.node.cli.js:42:14963
at processTicksAndRejections (internal/process/task_queues.js:75:11)
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Uncaught RangeError: Invalid string length when appending ...
Your 2-D array accesses are incorrect, but the main problem is that you're re-using the variable i in an inner loop: for (i...
Read more >WebGL: RangeError: invalid array length - Unity Forum
Strange, that usually means the browser does not have enough memory to allocate the Unity Heap and to fix it you should reduce...
Read more >260 - Crash - "RangeError: Invalid string length" - teddit
My teddit instance crashed (and for whatever reason the Docker health-check didn't restart it): ``` Fetched the JSON from reddit.com/r/[REDACTED]/comments/[ ...
Read more >FAQ — Emscripten 3.1.26-git (dev) documentation
Those errors indicate that WebAssembly support is not present in the VM you are trying to run the code in. Compile with -sWASM=0...
Read more >Optimizer: RangeError: Invalid string length - Kibana
js:123:15) optimizer crashed with status code 1 child_process.js:504 throw err; ^ Error: Command failed: bin/kibana --dev --plugin-path /vagrant ...
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 FreeTop 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
Top GitHub Comments
Under london hardfork rules transactions can no longer specify a gasPrice of
0
(which is used to computemaxFeePerGas
). If you don’t care about london’s EIP-1159 for your tests (ignoring EIP-1559 changes) you can just start ganache with theistanbul
hardfork instead of the default (london):
ganache --chain.hardfork istanbul`Closing for issue maintenance. Please let us know if this is still an issue