question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Strange crash with RangeError: invalid string length

See original GitHub issue

I’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:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
davidmurdochcommented, Jan 5, 2022

Under london hardfork rules transactions can no longer specify a gasPrice of 0 (which is used to compute maxFeePerGas). If you don’t care about london’s EIP-1159 for your tests (ignoring EIP-1559 changes) you can just start ganache with the istanbul hardfork instead of the default (london): ganache --chain.hardfork istanbul`

0reactions
cds-amalcommented, Feb 2, 2022

Closing for issue maintenance. Please let us know if this is still an issue

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found