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

spawn_blocking hangs in TestViewGenerator #2664

Open
mrain opened this issue Feb 21, 2025 · 0 comments
Open

spawn_blocking hangs in TestViewGenerator #2664

mrain opened this issue Feb 21, 2025 · 0 comments

Comments

@mrain
Copy link
Contributor

mrain commented Feb 21, 2025

Quoted from Brendon:

What's happen is:

  • We create a TestViewGenerator stream
  • call next().await to get the next (first view)
  • This creates a future and calls poll_next code Chengyu linked abov
  • This creates a future which calls TestView::genesis
  • This future calls spawn_blocking
  • When we await the spawned calc the future returns Pending
  • Eventually the calculation concludes and we can re poll poll_next and that creates a brand new future calling TestView::genesis and thus the loop

https://github.com/EspressoSystems/espresso-sequencer/blob/29bb98ee2e2e1cc75dd1daa355e7d7918272044b/hotshot-testing/src/view_generator.rs#L649-L667

sveitser pushed a commit that referenced this issue Mar 7, 2025
Bumps [dyn-clone](https://github.com/dtolnay/dyn-clone) from 1.0.16 to 1.0.17.
- [Release notes](https://github.com/dtolnay/dyn-clone/releases)
- [Commits](dtolnay/dyn-clone@f2f0a02...51bf881)

---
updated-dependencies:
- dependency-name: dyn-clone
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant