Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

tokio-runtime-worker panicked at 'supplied instant is later than self' #4096

Closed
HanaaAbbas opened this issue Oct 16, 2021 · 0 comments · Fixed by paritytech/substrate#10042
Closed

Comments

@HanaaAbbas
Copy link

HanaaAbbas commented Oct 16, 2021

Hello,

What is the cause of this error? It terminates the Polkadot node and happens frequently.
These are the run options I was using:
--chain=polkadot --rpc-external --rpc-cors=all --rpc-methods=Unsafe --pruning=archive
Running on Ubuntu 20.04 LTS.

Version: 0.9.11-eb9f107e3-x86_64-linux-gnu

   0: sp_panic_handler::set::{{closure}}
   1: std::panicking::rust_panic_with_hook
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:626:17
   2: std::panicking::begin_panic_handler::{{closure}}
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:519:13
   3: std::sys_common::backtrace::__rust_end_short_backtrace
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/sys_common/backtrace.rs:141:18
   4: rust_begin_unwind
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:515:5
   5: core::panicking::panic_fmt
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/core/src/panicking.rs:92:14
   6: core::option::expect_failed
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/core/src/option.rs:1578:5
   7: core::option::Option<T>::expect
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/core/src/option.rs:685:21
      std::time::Instant::duration_since
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/time.rs:281:9
      <std::time::Instant as core::ops::arith::Sub>::sub
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/time.rs:406:9
      std::time::Instant::elapsed
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/time.rs:345:9
   8: <sc_client_db::Backend<Block> as sc_client_api::backend::Backend<Block>>::usage_info
   9: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
  10: <sc_service::task_manager::prometheus_future::PrometheusFuture<T> as core::future::future::Future>::poll
  11: <futures_util::future::select::Select<A,B> as core::future::future::Future>::poll
  12: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
  13: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
  14: tokio::runtime::task::core::CoreStage<T>::poll
  15: tokio::runtime::task::harness::Harness<T,S>::poll
  16: std::thread::local::LocalKey<T>::with
  17: tokio::runtime::thread_pool::worker::Context::run_task
  18: tokio::runtime::thread_pool::worker::Context::run
  19: tokio::macros::scoped_tls::ScopedKey<T>::set
  20: tokio::runtime::thread_pool::worker::run
  21: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
  22: tokio::runtime::task::harness::Harness<T,S>::poll
  23: tokio::runtime::blocking::pool::Inner::run
  24: std::sys_common::backtrace::__rust_begin_short_backtrace
  25: core::ops::function::FnOnce::call_once{{vtable.shim}}
  26: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/alloc/src/boxed.rs:1572:9
      <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/alloc/src/boxed.rs:1572:9
      std::sys::unix::thread::Thread::new::thread_start
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/sys/unix/thread.rs:74:17
  27: start_thread
             at /build/glibc-S9d2JN/glibc-2.27/nptl/pthread_create.c:463
  28: __GI___clone
             at /build/glibc-S9d2JN/glibc-2.27/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95


Thread 'tokio-runtime-worker' panicked at 'supplied instant is later than self', library/std/src/time.rs:281

This is a bug. Please report it at:

	https://github.com/paritytech/polkadot/issues/new

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant