Skip to content

anvil: EVM error MemoryLimitOOG #7490

@ryanio

Description

@ryanio

Component

Anvil

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

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:

  1. Run anvil with:
    anvil --host 0.0.0.0 --fork-url=$ETHEREUM_RPC_URL --chain-id=1
  2. Download the requests to anvil: Request_Body_03-25-2024-10-55-20.folder.zip
  3. Unzip the folder and cd into it with a terminal. Run:
    while IFS= read -r file; do
        curl -X POST -H "Content-Type: application/json" -d @"$file" http://localhost:8545
    done < <(ls | sort -V)
    
  4. Observe that the last lines returned are:
    {"jsonrpc":"2.0","id":51,"error":{"code":-32603,"message":"EVM error MemoryLimitOOG"}} 
    {"jsonrpc":"2.0","id":975548868,"result":null}
    

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions