foundry: Anvil consistently freezing when deploying multiple contracts
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 (7bc3e60 2022-07-12T00:04:40.748127213Z)
What command(s) is the bug in?
No response
Operating System
Linux
Describe the bug
When I run a series of contract deployment transactions against the Anvil node in WSL2, it freezes and not even a SIGINT signal (CTRL + C) is able to shutdown it down. Demo of the bug can be seen below:
https://drive.google.com/file/d/1TMKS9xGM1RpopVHAVh_Mu02C7-JpTNNI/view?usp=sharing
Restarting the computer usually fixed the issue, but after today’s foundryup, it became persistent.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (7 by maintainers)
Hi @mattsse! The node seem a lot more stable on WSL now! Thank you for the fix and may Foundry go to the moon 🚀!
@pedroyan made some related changes in #2369 that I think should, hopefully, fix it, mind trying again with latest?
please reopen if this is still happening
Could you try running the deployment multiple times? An engineer on our team running anvil on Mac also reproduced the problem, but it only after a couple of deployments
On Thu, 14 Jul 2022 at 07:33 Matthias Seitz @.***> wrote:
Anvil script:
Deployment script:
Additional setup/execution info can be found in the readme of the repo 😃
@mattsse I will see if I can get you access to the repository in question - Maybe then you can collect debugging information and test the changes a bit better 😃
sigh, is there a way for me to reproduce this?
can you run anvil with
RUST_LOG=backend,node,miner anviland share the logs?@pedroyan can you please try again with this PR https://github.com/foundry-rs/foundry/pull/2283?
foundryup --pr 2283