Bug: Thread 'tokio-runtime-worker' panicked at 'Externalities not allowed to fail within runtime

2023-07-15 11:25:54 Thread 'tokio-runtime-worker' panicked at 'Externalities not allowed to fail within runtime: "Trie lookup error: Database missing expected key: 0x890901562bfba2a6d2196e3892bcfbb6dd6fe05fbb2b4e01206a8c29558451ea"', /creditcoin-node/.cargo/git/checkouts/substrate-ef6be82d837dee7f/1b1b67e/primitives/state-machine/src/ext.rs:192
2023-07-15 11:25:54 
2023-07-15 11:25:54 This is a bug. Please report it at:
2023-07-15 11:25:54 
2023-07-15 11:25:54     support.anonymous.an

More details

2023-07-15 11:25:54 ====================
2023-07-15 11:25:54 
2023-07-15 11:25:54 Version: 2.222.2-7a6f5caf7d7
2023-07-15 11:25:54 
2023-07-15 11:25:54    0: sp_panic_handler::set::{{closure}}
2023-07-15 11:25:54    1: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
2023-07-15 11:25:54              at /rustc/5cdb7886a5ece816864fab177f0c266ad4dd5358/library/alloc/src/boxed.rs:1987:9
2023-07-15 11:25:54       std::panicking::rust_panic_with_hook
2023-07-15 11:25:54              at /rustc/5cdb7886a5ece816864fab177f0c266ad4dd5358/library/std/src/panicking.rs:695:13
2023-07-15 11:25:54    2: std::panicking::begin_panic_handler::{{closure}}
2023-07-15 11:25:54              at /rustc/5cdb7886a5ece816864fab177f0c266ad4dd5358/library/std/src/panicking.rs:582:13
2023-07-15 11:25:54    3: std::sys_common::backtrace::__rust_end_short_backtrace
2023-07-15 11:25:54              at /rustc/5cdb7886a5ece816864fab177f0c266ad4dd5358/library/std/src/sys_common/backtrace.rs:150:18
2023-07-15 11:25:54    4: rust_begin_unwind
2023-07-15 11:25:54              at /rustc/5cdb7886a5ece816864fab177f0c266ad4dd5358/library/std/src/panicking.rs:578:5
2023-07-15 11:25:54    5: core::panicking::panic_fmt
2023-07-15 11:25:54              at /rustc/5cdb7886a5ece816864fab177f0c266ad4dd5358/library/core/src/panicking.rs:67:14
2023-07-15 11:25:54    6: core::result::unwrap_failed
2023-07-15 11:25:54              at /rustc/5cdb7886a5ece816864fab177f0c266ad4dd5358/library/core/src/result.rs:1687:5
2023-07-15 11:25:54    7: <sp_state_machine::ext::Ext<H,B> as sp_externalities::Externalities>::storage
2023-07-15 11:25:54    8: <&mut dyn sp_externalities::Externalities as sp_io::storage::Storage>::get_version_1
2023-07-15 11:25:54    9: std::thread::local::LocalKey<T>::with
2023-07-15 11:25:54   10: tracing::span::Span::in_scope
2023-07-15 11:25:54   11: sp_io::storage::get_version_1
2023-07-15 11:25:54   12: sp_io::storage::ExtStorageGetVersion1::call
2023-07-15 11:25:54   13: <sc_executor_wasmtime::imports::Registry as sp_wasm_interface::HostFunctionRegistry>::with_function_context
2023-07-15 11:25:54   14: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
2023-07-15 11:25:54   15: <F as wasmtime::func::IntoFunc<T,(wasmtime::func::Caller<T>,A1),R>>::into_func::wasm_to_host_shim
2023-07-15 11:25:54   16: <unknown>
2023-07-15 11:25:54   17: <unknown>
2023-07-15 11:25:54   18: <unknown>
2023-07-15 11:25:54   19: <unknown>
2023-07-15 11:25:54   20: wasmtime_runtime::traphandlers::catch_traps::call_closure
2023-07-15 11:25:54   21: wasmtime_setjmp
2023-07-15 11:25:54   22: wasmtime_runtime::traphandlers::<impl wasmtime_runtime::traphandlers::call_thread_state::CallThreadState>::with
2023-07-15 11:25:54   23: wasmtime_runtime::traphandlers::catch_traps
2023-07-15 11:25:54   24: wasmtime::func::invoke_wasm_and_catch_traps
2023-07-15 11:25:54   25: wasmtime::func::typed::TypedFunc<Params,Results>::call
2023-07-15 11:25:54   26: sc_executor_wasmtime::instance_wrapper::EntryPoint::call
2023-07-15 11:25:54   27: sc_executor_wasmtime::runtime::perform_call
2023-07-15 11:25:54   28: <sc_executor_wasmtime::runtime::WasmtimeInstance as sc_executor_common::wasm_runtime::WasmInstance>::call_with_allocation_stats
2023-07-15 11:25:54   29: sc_executor_common::wasm_runtime::WasmInstance::call_export
2023-07-15 11:25:54   30: std::thread::local::LocalKey<T>::with
2023-07-15 11:25:54   31: sc_executor::native_executor::WasmExecutor<H>::with_instance::{{closure}}
2023-07-15 11:25:54   32: sc_executor::wasm_runtime::RuntimeCache::with_instance
2023-07-15 11:25:54   33: <sc_executor::native_executor::NativeElseWasmExecutor<D> as sp_core::traits::CodeExecutor>::call
2023-07-15 11:25:54   34: sp_state_machine::execution::StateMachine<B,H,Exec>::execute_aux
2023-07-15 11:25:54   35: sp_state_machine::execution::StateMachine<B,H,Exec>::execute_using_consensus_failure_handler
2023-07-15 11:25:54   36: <sc_service::client::call_executor::LocalCallExecutor<Block,B,E> as sc_client_api::call_executor::CallExecutor<Block>>::contextual_call
2023-07-15 11:25:54   37: <sc_service::client::client::Client<B,E,Block,RA> as sp_api::CallApiAt<Block>>::call_api_at
2023-07-15 11:25:54   38: <creditcoin_node_runtime::RuntimeApiImpl<__SrApiBlock__,RuntimeApiImplCall> as sp_consensus_babe::BabeApi<__SrApiBlock__>>::__runtime_api_internal_call_api_at
2023-07-15 11:25:54   39: sp_consensus_babe::BabeApi::configuration
2023-07-15 11:25:54   40: sc_consensus_babe::configuration
2023-07-15 11:25:54   41: creditcoin_node::service::babe_import_initializer::{{closure}}
2023-07-15 11:25:54   42: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
2023-07-15 11:25:54   43: <futures_util::future::select::Select<A,B> as core::future::future::Future>::poll
2023-07-15 11:25:54   44: <tracing_futures::Instrumented<T> as core::future::future::Future>::poll
2023-07-15 11:25:54   45: tokio::runtime::park::CachedParkThread::block_on
2023-07-15 11:25:54   46: tokio::runtime::handle::Handle::block_on
2023-07-15 11:25:54   47: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll
2023-07-15 11:25:54   48: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
2023-07-15 11:25:54   49: tokio::runtime::task::core::Core<T,S>::poll
2023-07-15 11:25:54   50: tokio::runtime::task::harness::Harness<T,S>::poll
2023-07-15 11:25:54   51: tokio::runtime::blocking::pool::Inner::run
2023-07-15 11:25:54   52: std::sys_common::backtrace::__rust_begin_short_backtrace
2023-07-15 11:25:54   53: core::ops::function::FnOnce::call_once{{vtable.shim}}
2023-07-15 11:25:54   54: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
2023-07-15 11:25:54              at /rustc/5cdb7886a5ece816864fab177f0c266ad4dd5358/library/alloc/src/boxed.rs:1973:9
2023-07-15 11:25:54       <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
2023-07-15 11:25:54              at /rustc/5cdb7886a5ece816864fab177f0c266ad4dd5358/library/alloc/src/boxed.rs:1973:9
2023-07-15 11:25:54       std::sys::unix::thread::Thread::new::thread_start
2023-07-15 11:25:54              at /rustc/5cdb7886a5ece816864fab177f0c266ad4dd5358/library/std/src/sys/unix/thread.rs:108:17
2023-07-15 11:25:54   55: <unknown>
2023-07-15 11:25:54   56: __clone

Full log:

3 Likes

Possibly related:

4 Likes