pallet_supersig benchmarking panic when testing in Kabocha runtime
decentration opened this issue · 0 comments
decentration commented
I am adding benchmarking for supersig to Kabocha runtime:
following this guide
running this command:
./target/release/parachain-collator benchmark pallet \
--chain dev \
--pallet pallet_supersig \
--extrinsic '*' \
--steps 20 \
--repeat 10 \
--output pallets/pallet-supersig/src/weights.rs
get this error:
2022-09-06 20:52:42 assembling new collators for new session 0 at #0
2022-09-06 20:52:42 assembling new collators for new session 1 at #0
====================
Version: 0.1.0-563fce5df61
0: backtrace::capture::Backtrace::new
1: sp_panic_handler::set::{{closure}}
2: std::panicking::rust_panic_with_hook
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/panicking.rs:702:17
3: std::panicking::begin_panic_handler::{{closure}}
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/panicking.rs:588:13
4: std::sys_common::backtrace::__rust_end_short_backtrace
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/sys_common/backtrace.rs:138:18
5: rust_begin_unwind
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/panicking.rs:584:5
6: core::panicking::panic_fmt
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/panicking.rs:142:14
7: core::result::unwrap_failed
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/result.rs:1805:5
8: <pallet_supersig::benchmarking::SelectedBenchmark as frame_benchmarking::utils::BenchmarkingSetup<T>>::instance
9: pallet_supersig::benchmarking::<impl frame_benchmarking::utils::Benchmarking for pallet_supersig::pallet::Pallet<T>>::run_benchmark
10: <kabocha_runtime::Runtime as frame_benchmarking::utils::runtime_decl_for_Benchmark::Benchmark<sp_runtime::generic::block::Block<sp_runtime::generic::header::Header<u32,sp_runtime::traits::BlakeTwo256>,sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic<sp_runtime::multiaddress::MultiAddress<<<sp_runtime::MultiSignature as sp_runtime::traits::Verify>::Signer as sp_runtime::traits::IdentifyAccount>::AccountId,()>,kabocha_runtime::Call,sp_runtime::MultiSignature,(frame_system::extensions::check_non_zero_sender::CheckNonZeroSender<kabocha_runtime::Runtime>,frame_system::extensions::check_spec_version::CheckSpecVersion<kabocha_runtime::Runtime>,frame_system::extensions::check_tx_version::CheckTxVersion<kabocha_runtime::Runtime>,frame_system::extensions::check_genesis::CheckGenesis<kabocha_runtime::Runtime>,frame_system::extensions::check_mortality::CheckMortality<kabocha_runtime::Runtime>,frame_system::extensions::check_nonce::CheckNonce<kabocha_runtime::Runtime>,frame_system::extensions::check_weight::CheckWeight<kabocha_runtime::Runtime>,pallet_transaction_payment::ChargeTransactionPayment<kabocha_runtime::Runtime>)>>>>::dispatch_benchmark
11: kabocha_runtime::api::dispatch
12: std::thread::local::LocalKey<T>::with
13: sc_executor::native_executor::WasmExecutor<H>::with_instance::{{closure}}
14: sc_executor::wasm_runtime::RuntimeCache::with_instance
15: <sc_executor::native_executor::NativeElseWasmExecutor<D> as sp_core::traits::CodeExecutor>::call
16: sp_state_machine::execution::StateMachine<B,H,Exec>::execute_aux
17: sp_state_machine::execution::StateMachine<B,H,Exec>::execute
18: frame_benchmarking_cli::pallet::command::<impl frame_benchmarking_cli::pallet::PalletCmd>::run
19: sc_cli::runner::Runner<C>::sync_run
20: parachain_collator::command::run
21: std::sys_common::backtrace::__rust_begin_short_backtrace
22: std::rt::lang_start::{{closure}}
23: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/ops/function.rs:280:13
std::panicking::try::do_call
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/panicking.rs:492:40
std::panicking::try
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/panicking.rs:456:19
std::panic::catch_unwind
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/panic.rs:137:14
std::rt::lang_start_internal::{{closure}}
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/rt.rs:128:48
std::panicking::try::do_call
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/panicking.rs:492:40
std::panicking::try
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/panicking.rs:456:19
std::panic::catch_unwind
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/panic.rs:137:14
std::rt::lang_start_internal
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/rt.rs:128:20
24: _main
Thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ()', /Users/ramsey/.cargo/git/checkouts/pallet_supersig-691740f35ac90aee/9a34504/src/benchmarking.rs:31
This is a bug. Please report it at:
https://github.com/paritytech/cumulus/issues/new
Error: Input("Error executing and verifying runtime benchmark: Runtime panicked: called `Result::unwrap()` on an `Err` value: ()")
2022-09-06 20:52:43 Evicting failed runtime instance error=Runtime panicked: called `Result::unwrap()` on an `Err` value: ()