Skip to content
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 exited without any error message #4488

Closed
1 of 2 tasks
Tracked by #8269
GopherJ opened this issue Mar 7, 2023 · 2 comments
Closed
1 of 2 tasks
Tracked by #8269

anvil exited without any error message #4488

GopherJ opened this issue Mar 7, 2023 · 2 comments
Labels
C-anvil Command: anvil T-bug Type: bug T-to-investigate Type: to investigate T-to-reproduce Type: requires reproduction
Milestone

Comments

@GopherJ
Copy link

GopherJ commented Mar 7, 2023

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 (1d9a34e 2023-03-06T13:49:53.917536365Z)

What command(s) is the bug in?

anvil \ --fork-url https://eth-mainnet.alchemyapi.io/v2/xxxx --no-rate-limit \ --chain-id 522 \ --tracing \ --host 0.0.0.0 \ --state-interval 60 \ --dump-state state.json \ \ --disable-block-gas-limit \ --code-size-limit 100000 \

Operating System

Linux

Describe the bug

eth_getTransactionReceipt

    Transaction: 0xad7e780dc641dc6670f690943aa7e7b2c06d5b91cf046af652ed945edfaca85a
    Gas used: 236361

    Block Number: 16773314
    Block Hash: 0x7841ea17339f535db19aca0582921ab79c6595e98a846a341b3c51dfc83f7cfb
    Block Time: "Tue, 07 Mar 2023 02:52:59 +0000"

eth_chainId
eth_getTransactionCount
eth_chainId
eth_blockNumber
eth_chainId
eth_getTransactionReceipt
make: *** [Makefile:601: anvil] Killed

anvil exited but no error message was thrown

@GopherJ GopherJ added the T-bug Type: bug label Mar 7, 2023
@gakonst gakonst added this to Foundry Mar 7, 2023
@github-project-automation github-project-automation bot moved this to Todo in Foundry Mar 7, 2023
@mattsse
Copy link
Member

mattsse commented Mar 7, 2023

could be out of memory, because --tracing requires a lot of memory.

@zerosnacks zerosnacks added T-to-reproduce Type: requires reproduction T-to-investigate Type: to investigate labels Jun 27, 2024
@zerosnacks zerosnacks added the C-anvil Command: anvil label Jun 27, 2024
@zerosnacks zerosnacks added this to the v1.0.0 milestone Jul 26, 2024
@grandizzy
Copy link
Collaborator

I am not able to reproduce this with latest version, started anvil using

anvil --fork-url https://mainnet.infura.io/v3/key --no-rate-limit --chain-id 522 --tracing --host 0.0.0.0 --state-interval 60 --dump-state state.json --disable-block-gas-limit --code-size-limit 100000

and then run

while true; do curl -H "Content-Type: application/json" --data '{"method":"eth_getTransactionReceipt","params":["0x7114b4da1a6ed391d5d781447ed443733dcf2b508c515b81c17379dea8a3c9af"], "id":1,"jsonrpc":"2.0"}' http://localhost:8545; done

for more than 10 minutes, without anvil crashing and memory stable

@GopherJ can you please recheck and reopen if still an issue for you? thank you

@jenpaff jenpaff moved this from Todo to Completed in Foundry Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-anvil Command: anvil T-bug Type: bug T-to-investigate Type: to investigate T-to-reproduce Type: requires reproduction
Projects
Archived in project
Development

No branches or pull requests

4 participants