-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
anvil: EVM error MemoryLimitOOG #7490
Comments
Also running into this issue. Definitely seems to be an issue with the latest release, as I pinned an older version from 3 weeks ago of anvil and it doesn't have this issue. |
@rakita does this ring any bells? any recent changes that concerns this error? |
@ryanio couldn't reproduce, script stops after
|
Shouldn't be any. Logic is simple, and it was not changed in a while. |
what changed recently is the default hardfork with cancun, could be unrelated though, but perhaps you try --hardfork shanghai just to rule that out |
yeah, unfortunately need cancun for tstore for seaport 1.6 (it won't use tstore when deployed on networks without it, but since it was deployed on mainnet after cancun it will be using it) |
@ryanio def not simple, but I do have a repro setup. Repro:
This will work as I've pinned foundry to nightly-de33b6af53005037b463318d2628b5cfcaf39916
|
hmm, that's odd. do we know which rpc calls are failing? I hope it is eth_estimate? because then I think I have an idea. with the revm native conversion we no longer end up with OutOfgas result: 9fde758#diff-a0d1dbafd7eaf82b3fd4d30722d2c7e369394883a704e8b41554d0a31b43629fL30 so these are no longer caught: foundry/crates/anvil/src/eth/api.rs Lines 2350 to 2361 in 9881e7d
and return an error instead if memoryOOG here: foundry/crates/anvil/src/eth/backend/mem/mod.rs Line 1134 in 9881e7d
because this now uses revm's conversion: @samlaf could you confirm that the failing calls are eth_estimate? |
Component
Anvil
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (f9da73d 2024-03-23T00:16:29.636127000Z)
What command(s) is the bug in?
anvil
Operating System
macOS (Apple Silicon)
Describe the bug
I opened #7478 that I hoped would fix this issue for me, but even when running a locally built anvil version with a much higher memory limit (128 mb -> 2 or 4gb) I'm still getting
EVM error MemoryLimitOOG
so I feel like this a bug more internal to the evm or its setup.For reproduction:
anvil --host 0.0.0.0 --fork-url=$ETHEREUM_RPC_URL --chain-id=1
To summarize what the requests are doing, they are from our integration test suite that sets up an address with ETH and WETH, mints some items and grants approvals, then uses SeaportRouter to fulfill. This problem is not inherent to SeaportRouter since we are running into the same
MemoryLimitOOG
testing other Seaport contracts.The text was updated successfully, but these errors were encountered: