Skip to content

Instantly share code, notes, and snippets.

@michaelsproul
Created April 26, 2022 08:54
Show Gist options
  • Save michaelsproul/ac5da03e203d6ffac672423eaf52fb20 to your computer and use it in GitHub Desktop.
Save michaelsproul/ac5da03e203d6ffac672423eaf52fb20 to your computer and use it in GitHub Desktop.
thread 'tokio-runtime-worker' panicked at 'Cannot start a runtime from within a runtime. This happens because a function (like `block_on`) attempted to block the current thread while the thread is being used to drive asynchronous tasks.', /home/seamonkey/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.17.0/src/runtime/enter.rs:39:9
stack backtrace:
0: std::panicking::begin_panic
1: tokio::runtime::enter::enter
2: beacon_chain::beacon_chain::BeaconChain<T>::update_execution_engine_forkchoice_blocking
3: beacon_chain::beacon_chain::BeaconChain<T>::fork_choice
4: beacon_chain::beacon_chain::BeaconChain<T>::process_invalid_execution_payload
5: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
6: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
7: <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll
8: <futures_util::future::future::flatten::Flatten<Fut,<Fut as core::future::future::Future>::Output> as core::future::future::Future>::poll
9: tokio::runtime::task::harness::poll_future
10: tokio::runtime::task::harness::Harness<T,S>::poll
11: std::thread::local::LocalKey<T>::with
12: tokio::runtime::thread_pool::worker::Context::run_task
13: tokio::runtime::thread_pool::worker::Context::run
14: tokio::macros::scoped_tls::ScopedKey<T>::set
15: tokio::runtime::thread_pool::worker::run
16: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll
17: tokio::runtime::task::harness::Harness<T,S>::poll
18: tokio::runtime::blocking::pool::Inner::run
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Apr 11 22:25:05.067 CRIT Task panic. This is a bug! advice: Please check above for a backtrace and notify the developers, message: Cannot start a runtime from within a runtime. This happens because a function (like `block_on`) attempted to block the current thread while the thread is being used to drive asynchronous tasks., task_name: el_fork_choice_update
Apr 11 22:25:05.067 INFO Internal shutdown received reason: Panic (fatal error)
Apr 11 22:25:05.067 INFO Shutting down.. reason: Failure("Panic (fatal error)")
Apr 11 22:25:05.067 WARN Failed to obtain runtime access to shutdown gracefully, error: Runtime { kind: ThreadPool(ThreadPool), handle: Handle { spawner: ThreadPool(Spawner), io_handle: Some(Handle), signal_handle: Some(Handle { inner: (Weak) }), time_handle: Some(Handle), clock: Clock, blocking_spawner: blocking::Spawner }, blocking_pool: BlockingPool }
Panic (fatal error)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment