jordanmack/ckb-tools

thread 'main' panicked at 'Cannot drop a runtime in a context where blocking is not allowed.

Closed this issue · 1 comments

I am getting this error:
RUST_BACKTRACE=1 RUST_LOG=info ./ckb-indexer -s ./indexer-data
thread 'main' panicked at 'Cannot drop a runtime in a context where blocking is not allowed. This happens when a runtime is dropped from within an asynchronous context.', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.25/src/runtime/blocking/shutdown.rs:51:21
stack backtrace:
0: std::panicking::begin_panic
1: tokio::runtime::blocking::shutdown::Receiver::wait
2: tokio::runtime::blocking::pool::BlockingPool::shutdown
3: <tokio::runtime::blocking::pool::BlockingPool as core::ops::drop::Drop>::drop
4: core::ptr::drop_in_placetokio::runtime::blocking::pool::BlockingPool
5: jsonrpc_http_server::ServerBuilder<M,S>::start_http
6: ckb_indexer::service::Service::start
7: ckb_indexer::main::{{closure}}
8: tokio::runtime::enter::Enter::block_on
9: tokio::runtime::thread_pool::ThreadPool::block_on
10: tokio::runtime::context::enter
11: tokio::runtime::handle::Handle::enter
12: ckb_indexer::main
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.

Hi @freebot, this appears to be an error with ckb-indexer which is unrelated to this project. Could you please report the issue on this repo? https://github.com/nervosnetwork/ckb-indexer

I do not know what causes this problem, but others have reported that restarting the computer sometimes fixes it.