availproject / avail

772 stars 529 forks source link

bug: Thread 'tokio-runtime-worker' panicked at 'Bad input data provided to validate_transaction #619

Closed foolstack-omg closed 1 month ago

foolstack-omg commented 1 month ago

Version: 2.1.5-ec9b97c3b9c

0: sp_panic_handler::set::{{closure}} 1: <alloc::boxed::Box<F,A> as core::ops::function::Fn>::call at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2021:9 std::panicking::rust_panic_with_hook at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:783:13 2: std::panicking::begin_panic_handler::{{closure}} at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:657:13 3: std::sys_common::backtrace::rust_end_short_backtrace at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:170:18 4: rust_begin_unwind at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5 5: core::panicking::panic_fmt at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14 6: da_runtime::apis::api::dispatch 7: sp_externalities::scope_limited::ext::using 8: sc_executor::executor::WasmExecutor::with_instance::{{closure}} 9: sc_executor::wasm_runtime::RuntimeCache::with_instance 10: <sc_executor::executor::NativeElseWasmExecutor as sp_core::traits::CodeExecutor>::call 11: sp_state_machine::execution::StateMachine<B,H,Exec>::execute 12: <sc_service::client::client::Client<B,E,Block,RA> as sp_api::CallApiAt>::call_api_at 13: <da_runtime::apis::RuntimeApiImpl<SrApiBlock__,RuntimeApiImplCall> as sp_offchain::OffchainWorkerApi<__SrApiBlock__>>::runtime_api_internal_call_api_at 14: sp_transaction_pool::runtime_api::TaggedTransactionQueue::validate_transaction 15: tracing::span::Span::in_scope 16: sc_transaction_pool::api::validate_transaction_blocking 17: <sc_transaction_pool::api::FullChainApi<Client,Block> as sc_transaction_pool::graph::pool::ChainApi>::validate_transaction::{{closure}}::{{closure}} 18: sc_transaction_pool::api::spawn_validation_pool_task::{{closure}} 19: <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll 20: <sc_service::task_manager::prometheus_future::PrometheusFuture as core::future::future::Future>::poll 21: <futures_util::future::select::Select<A,B> as core::future::future::Future>::poll 22: <tracing_futures::Instrumented as core::future::future::Future>::poll 23: tokio::runtime::context::blocking::BlockingRegionGuard::block_on 24: <tokio::runtime::blocking::task::BlockingTask as core::future::future::Future>::poll 25: tokio::runtime::task::core::Core<T,S>::poll 26: tokio::runtime::task::harness::Harness<T,S>::poll 27: tokio::runtime::blocking::pool::Inner::run 28: std::sys_common::backtrace::rust_begin_short_backtrace 29: core::ops::function::FnOnce::call_once{{vtable.shim}} 30: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce>::call_once at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9 <alloc::boxed::Box<F,A> as core::ops::function::FnOnce>::call_once at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9 std::sys::unix::thread::Thread::new::thread_start at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys/unix/thread.rs:108:17 31: 32:

Thread 'tokio-runtime-worker' panicked at 'Bad input data provided to validate_transaction: Could not decode RuntimeCall, variant doesn't exist', runtime/src/apis.rs:78

This is a bug. Please report it at:

    https://github.com/availproject/avail/issues/new/choose
Leouarz commented 1 month ago

Hey, this just mean your node received an invalid transaction and it was correctly rejected, the specific spawned thread was close normally.