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

Clarinet devnet panicks after running for a while #1536

Open
vicnicius opened this issue Aug 6, 2024 · 4 comments
Open

Clarinet devnet panicks after running for a while #1536

vicnicius opened this issue Aug 6, 2024 · 4 comments

Comments

@vicnicius
Copy link

vicnicius commented Aug 6, 2024

Describe the bug
Clarinet devnet panicking:

thread 'Chains coordinator' panicked at /private/tmp/clarinet-20240801-9876-lww47q/clarinet-2.8.0/components/stacks-network/src/chains_coordinator.rs:393:25:
internal error: entered unreachable code
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

It happened on every run when I had an error on the contract that was being deployed. I set the contract to use clarity 3 but it had a block-info call, leading to a syntax error. This is what lead to the error I reported on #1534.

There were no patterns in terms of block height.

stacks-node was stuck in ~100% CPU usage. I saw many

2024-08-06 13:50:11 Aug  6 11:50:11.822250 INFO Handled StacksHTTPRequest, verb: GET, path: /v2/info, processing_time_ms: 0, latency_ms: 0, conn_id: 8, peer_addr: 172.27.0.1:50804

entries and also this, that looked a bit more suspicious:

2024-08-06 13:50:08 Aug  6 11:50:08.072583 INFO local.80000000://(bind=127.0.0.1:20444)(pub=Some(1.1.1.1:1234)): Failed to load any initial walk neighbors: NoSuchNeighbor

~ After I fixed the contract the issue is gone, leading me to believe there might be a causation. ~

To Reproduce
Steps to reproduce the behavior:

  1. Run clarinet devnet start with invalid contract
  2. Wait and see error

Expected behavior
No errors, contract just fails to deploy

Environment (please complete the following information):

  • OS (version): macOS 14.5 (23F79) - Apple M2
  • Docker version: 24.0.5
  • Clarinet version: 3.28.0

Update

Right after submitting this issue I saw the error again without an invalid contract. Just took longer ~200 blocks.

@vicnicius vicnicius changed the title Clarinet devnet panicks after running for a while with invalid contract deployment Clarinet devnet panicks after running for a while Aug 6, 2024
@hugocaillard
Copy link
Collaborator

Thanks @vicnicius

Clarinet version: 3.28.0
It's 2.8.0 right?

without an invalid contract

yeah I don't think the invalid contract is the cause here.

2024-08-06 13:50:08 Aug 6 11:50:08.072583 INFO local.80000000://(bind=127.0.0.1:20444)(pub=Some(1.1.1.1:1234)): Failed to load any initial walk neighbors: NoSuchNeighbor

I'm not really concerned with this one.

Is it possible for you to share the github link to a project where this happens?

@vicnicius
Copy link
Author

Sorry but the project is not public currently. I'll see if I can create a reproducible example in a public repo sometime this week.

@hugocaillard
Copy link
Collaborator

Thanks, that would be helpful

@hugocaillard
Copy link
Collaborator

I see that update @vicnicius

"Right after submitting this issue I saw the error again without an invalid contract. Just took longer ~200 blocks."

Does it mean that you can see the issue in a blank project?
So the steps would to reproduce are just

$ clarinet new my-project
$ cd my-project
$ clarinet devnet start

Wait for 200 block and it stops?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants