Benchmark prove cannot be executed successfully

Issue Report

Subspace farmer benchmark audit is fine, but prove fails.

Environment

  • Operating System: Ubuntu 22.04
  • Pulsar/Advanced CLI/Docker: CLI

Problem

benchmark prove cannot be executed successfully.

[Paste any errors or relevant logs here]
sh-5.1$ ./target/debug/subspace-farmer benchmark audit /data/farm
Benchmarking audit/plot/rayon/regular
Benchmarking audit/plot/rayon/regular: Warming up for 3.0000 s
Benchmarking audit/plot/rayon/regular: Collecting 10 samples in estimated 5.0000 s (191k iterations)
Benchmarking audit/plot/rayon/regular: Analyzing
audit/plot/rayon/regular
                        time:   [1.9330 µs 2.5927 µs 3.1294 µs]
                        thrpt:  [0.0000   B/s 0.0000   B/s 0.0000   B/s]

sh-5.1$ ./target/debug/subspace-farmer benchmark prove /data/farm
Benchmarking prove/plot/rayon/regular/concurrent-chunks
Benchmarking prove/plot/rayon/regular/concurrent-chunks: Warming up for 3.0000 s
thread 'main' panicked at crates/subspace-farmer/src/bin/subspace-farmer/commands/benchmark.rs:473:45:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

sh-5.1$ RUST_BACKTRACE=1 ./target/debug/subspace-farmer benchmark prove /data/farm
Benchmarking prove/plot/rayon/regular/concurrent-chunks
Benchmarking prove/plot/rayon/regular/concurrent-chunks: Warming up for 3.0000 s
thread 'main' panicked at crates/subspace-farmer/src/bin/subspace-farmer/commands/benchmark.rs:473:45:
called `Option::unwrap()` on a `None` value
stack backtrace:
   0: rust_begin_unwind
             at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/panicking.rs:645:5
   1: core::panicking::panic_fmt
             at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/core/src/panicking.rs:72:14
   2: core::panicking::panic
             at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/core/src/panicking.rs:144:5
   3: core::option::unwrap_failed
             at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/core/src/option.rs:1985:5
   4: core::option::Option<T>::unwrap
             at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/core/src/option.rs:933:21
   5: subspace_farmer::commands::benchmark::prove::{{closure}}::{{closure}}
             at ./crates/subspace-farmer/src/bin/subspace-farmer/commands/benchmark.rs:473:25
   6: criterion::bencher::Bencher<M>::iter_batched
             at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/criterion-0.5.1/src/bencher.rs:249:39
   7: subspace_farmer::commands::benchmark::prove::{{closure}}
             at ./crates/subspace-farmer/src/bin/subspace-farmer/commands/benchmark.rs:464:17
   8: criterion::benchmark_group::BenchmarkGroup<M>::bench_function::{{closure}}
             at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/criterion-0.5.1/src/benchmark_group.rs:254:60
   9: <criterion::routine::Function<M,F,T> as criterion::routine::Routine<M,T>>::warm_up
             at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/criterion-0.5.1/src/routine.rs:270:13
  10: criterion::routine::Routine::sample
             at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/criterion-0.5.1/src/routine.rs:147:38
  11: criterion::analysis::common
             at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/criterion-0.5.1/src/analysis/mod.rs:83:22
  12: criterion::benchmark_group::BenchmarkGroup<M>::run_bench
             at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/criterion-0.5.1/src/benchmark_group.rs:320:21
  13: criterion::benchmark_group::BenchmarkGroup<M>::bench_function
             at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/criterion-0.5.1/src/benchmark_group.rs:254:9
  14: subspace_farmer::commands::benchmark::prove
             at ./crates/subspace-farmer/src/bin/subspace-farmer/commands/benchmark.rs:463:13
  15: subspace_farmer::commands::benchmark::benchmark
             at ./crates/subspace-farmer/src/bin/subspace-farmer/commands/benchmark.rs:76:14
  16: subspace_farmer::main::{{closure}}
             at ./crates/subspace-farmer/src/bin/subspace-farmer/main.rs:90:13
  17: tokio::runtime::park::CachedParkThread::block_on::{{closure}}
             at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/tokio-1.37.0/src/runtime/park.rs:281:63
  18: tokio::runtime::coop::with_budget
             at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/tokio-1.37.0/src/runtime/coop.rs:107:5
  19: tokio::runtime::coop::budget
             at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/tokio-1.37.0/src/runtime/coop.rs:73:5
  20: tokio::runtime::park::CachedParkThread::block_on
             at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/tokio-1.37.0/src/runtime/park.rs:281:31
  21: tokio::runtime::context::blocking::BlockingRegionGuard::block_on
             at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/tokio-1.37.0/src/runtime/context/blocking.rs:66:9
  22: tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}
             at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/tokio-1.37.0/src/runtime/scheduler/multi_thread/mod.rs:87:13
  23: tokio::runtime::context::runtime::enter_runtime
             at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/tokio-1.37.0/src/runtime/context/runtime.rs:65:16
  24: tokio::runtime::scheduler::multi_thread::MultiThread::block_on
             at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/tokio-1.37.0/src/runtime/scheduler/multi_thread/mod.rs:86:9
  25: tokio::runtime::runtime::Runtime::block_on
             at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/tokio-1.37.0/src/runtime/runtime.rs:351:45
  26: subspace_farmer::main
             at ./crates/subspace-farmer/src/bin/subspace-farmer/main.rs:85:5
  27: core::ops::function::FnOnce::call_once
             at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

RUST_BACKTRACE=full ./target/debug/subspace-farmer benchmark prove /data/farm
Benchmarking prove/plot/rayon/regular/concurrent-chunks
Benchmarking prove/plot/rayon/regular/concurrent-chunks: Warming up for 3.0000 s
thread ‘main’ panicked at crates/subspace-farmer/src/bin/subspace-farmer/commands/benchmark.rs:473:45:
called Option::unwrap() on a None value
stack backtrace:
0: 0x5bead7766116 - std::backtrace_rs::backtrace::libunwind::trace::h341f79bffd736d88
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/…/…/backtrace/src/backtrace/libunwind.rs:104:5
1: 0x5bead7766116 - std::backtrace_rs::backtrace::trace_unsynchronized::h699175639bf0c53f
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/…/…/backtrace/src/backtrace/mod.rs:66:5
2: 0x5bead7766116 - std::sys_common::backtrace::_print_fmt::he64554b6b8851325
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/sys_common/backtrace.rs:68:5
3: 0x5bead7766116 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h6f1d81aff3ba783c
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/sys_common/backtrace.rs:44:22
4: 0x5bead7795bcc - core::fmt::rt::Argument::fmt::ha094c70f8a774861
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/core/src/fmt/rt.rs:142:9
5: 0x5bead7795bcc - core::fmt::write::h7f13c4b287d5364f
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/core/src/fmt/mod.rs:1120:17
6: 0x5bead77623bf - std::io::Write::write_fmt::h33c62cb7f1d9ccd2
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/io/mod.rs:1846:15
7: 0x5bead7765ec4 - std::sys_common::backtrace::_print::h5a328173cecd6a17
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/sys_common/backtrace.rs:47:5
8: 0x5bead7765ec4 - std::sys_common::backtrace::print::h40f459d9b04f57e7
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/sys_common/backtrace.rs:34:9
9: 0x5bead776753b - std::panicking::default_hook::{{closure}}::hd2a3df71af903bed
10: 0x5bead7767289 - std::panicking::default_hook::ha092baec2054d09a
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/panicking.rs:292:9
11: 0x5bead77679dd - std::panicking::rust_panic_with_hook::h46c6fddd63cff830
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/panicking.rs:779:13
12: 0x5bead7767879 - std::panicking::begin_panic_handler::{{closure}}::h8abc72b89d98e75c
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/panicking.rs:649:13
13: 0x5bead77665f6 - std::sys_common::backtrace::__rust_end_short_backtrace::h1eafc870bd031abe
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/sys_common/backtrace.rs:171:18
14: 0x5bead77675e4 - rust_begin_unwind
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/panicking.rs:645:5
15: 0x5bead5522335 - core::panicking::panic_fmt::hd079a8afc216673e
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/core/src/panicking.rs:72:14
16: 0x5bead55223f3 - core::panicking::panic::ha6f2fd13eb94b0f3
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/core/src/panicking.rs:144:5
17: 0x5bead55222d6 - core::option::unwrap_failed::h8bcc82fb2e22111c
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/core/src/option.rs:1985:5
18: 0x5bead5bb7624 - core::option::Option::unwrap::h5e9a87d53564cdca
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/core/src/option.rs:933:21
19: 0x5bead5bb7624 - subspace_farmer::commands::benchmark::prove::{{closure}}::{{closure}}::hfef85c13e0ef9484
at /data/subspace/crates/subspace-farmer/src/bin/subspace-farmer/commands/benchmark.rs:473:25
20: 0x5bead5880abe - criterion::bencher::Bencher::iter_batched::h3b0be184ffcf15a8
at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/criterion-0.5.1/src/bencher.rs:249:39
21: 0x5bead5bb737e - subspace_farmer::commands::benchmark::prove::{{closure}}::hbad7f5155e76cdca
at /data/subspace/crates/subspace-farmer/src/bin/subspace-farmer/commands/benchmark.rs:464:17
22: 0x5bead5d32a35 - criterion::benchmark_group::BenchmarkGroup::bench_function::{{closure}}::h46a4d4a495e0d3b3
at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/criterion-0.5.1/src/benchmark_group.rs:254:60
23: 0x5bead5c778ac - <criterion::routine::Function<M,F,T> as criterion::routine::Routine<M,T>>::warm_up::hac159ab063797620
at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/criterion-0.5.1/src/routine.rs:270:13
24: 0x5bead5c7e80e - criterion::routine::Routine::sample::h7f77bb01a299ae8f
at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/criterion-0.5.1/src/routine.rs:147:38
25: 0x5bead55c934b - criterion::analysis::common::h6d82f74f3bd626bf
at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/criterion-0.5.1/src/analysis/mod.rs:83:22
26: 0x5bead5d33829 - criterion::benchmark_group::BenchmarkGroup::run_bench::h0d8313ddd4e1f825
at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/criterion-0.5.1/src/benchmark_group.rs:320:21
27: 0x5bead5d32978 - criterion::benchmark_group::BenchmarkGroup::bench_function::hda68e954120d4b7c
at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/criterion-0.5.1/src/benchmark_group.rs:254:9
28: 0x5bead5d5416e - subspace_farmer::commands::benchmark::prove::h611e9da21d3815d5
at /data/subspace/crates/subspace-farmer/src/bin/subspace-farmer/commands/benchmark.rs:463:13
29: 0x5bead5d51845 - subspace_farmer::commands::benchmark::benchmark::h1b6b1aad7a4077cb
at /data/subspace/crates/subspace-farmer/src/bin/subspace-farmer/commands/benchmark.rs:76:14
30: 0x5bead57c4edd - subspace_farmer::main::{{closure}}::h7f7037cf4ee5c21f
at /data/subspace/crates/subspace-farmer/src/bin/subspace-farmer/main.rs:90:13
31: 0x5bead5828314 - tokio::runtime::park::CachedParkThread::block_on::{{closure}}::hc91b08a80a6e7589
at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/tokio-1.37.0/src/runtime/park.rs:281:63
32: 0x5bead58265a9 - tokio::runtime::coop::with_budget::h1ce117718e3b429e
at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/tokio-1.37.0/src/runtime/coop.rs:107:5
33: 0x5bead58265a9 - tokio::runtime::coop::budget::h3e986959787bf87b
at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/tokio-1.37.0/src/runtime/coop.rs:73:5
34: 0x5bead58265a9 - tokio::runtime::park::CachedParkThread::block_on::h981881bf1b8fa814
at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/tokio-1.37.0/src/runtime/park.rs:281:31
35: 0x5bead5e5f7c2 - tokio::runtime::context::blocking::BlockingRegionGuard::block_on::he7ae88fb05dc9a4a
at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/tokio-1.37.0/src/runtime/context/blocking.rs:66:9
36: 0x5bead5821573 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}::he98a0b9ab747e2dc
at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/tokio-1.37.0/src/runtime/scheduler/multi_thread/mod.rs:87:13
37: 0x5bead58ec1b1 - tokio::runtime::context::runtime::enter_runtime::hcffe1ad418e55d72
at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/tokio-1.37.0/src/runtime/context/runtime.rs:65:16
38: 0x5bead58214fe - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::h7fb47c8f964d59ad
at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/tokio-1.37.0/src/runtime/scheduler/multi_thread/mod.rs:86:9
39: 0x5bead5ad3487 - tokio::runtime::runtime::Runtime::block_on::h255de54630ea2dfe
at /home/qjyu/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/tokio-1.37.0/src/runtime/runtime.rs:351
:45
40: 0x5bead55ea5ec - subspace_farmer::main::h27dcb697236201d4
at /data/subspace/crates/subspace-farmer/src/bin/subspace-farmer/main.rs:85:5
41: 0x5bead58f7a8b - core::ops::function::FnOnce::call_once::h1030dc2c8cc0b265
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/core/src/ops/function.rs:250:5
42: 0x5bead566fbde - std::sys_common::backtrace::__rust_begin_short_backtrace::h488c8e57a4067550
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/sys_common/backtrace.rs:155:18
43: 0x5bead5d0f441 - std::rt::lang_start::{{closure}}::hdbab2a35057d599d
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/rt.rs:166:18
44: 0x5bead7759183 - core::ops::function::impls::<impl core::ops::function::FnOnce for &F>::call_once::h684c9b3e8875c4a5
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/core/src/ops/function.rs:284:13
45: 0x5bead7759183 - std::panicking::try::do_call::h156b92d70eb07584
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/panicking.rs:552:40
46: 0x5bead7759183 - std::panicking::try::ha4fd574bbdb12b0a
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/panicking.rs:516:19
47: 0x5bead7759183 - std::panic::catch_unwind::h45e8176d7fb4b7e7
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/panic.rs:142:14
48: 0x5bead7759183 - std::rt::lang_start_internal::{{closure}}::h832ede6edce6b6fd
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/rt.rs:148:48
49: 0x5bead7759183 - std::panicking::try::do_call::ha161f3bbef4097c4
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/panicking.rs:552:40
50: 0x5bead7759183 - std::panicking::try::h605ccd607067143a
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/panicking.rs:516:19
51: 0x5bead7759183 - std::panic::catch_unwind::h80009e58c8d65335
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/panic.rs:142:14
52: 0x5bead7759183 - std::rt::lang_start_internal::h1441f72356cbe88a
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/rt.rs:148:20
53: 0x5bead5d0f41a - std::rt::lang_start::hc49ea78e7ad2d579
at /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/rt.rs:165:17
54: 0x5bead55ea69e - main
55: 0x7eb8d1e29d90 - __libc_start_call_main
at ./csu/…/sysdeps/nptl/libc_start_call_main.h:58:16
56: 0x7eb8d1e29e40 - __libc_start_main_impl
at ./csu/…/csu/libc-start.c:392:3
57: 0x5bead5522b15 - _start
58: 0x0 -

You already posted the same exact question in Farmer benchmark prove error and already got an answer.

Another possibility I can think of is that he used the unofficial GPU plotter and thus, the sector is not in a valid format; or not having complete data contained. Thus, prove can’t do its job.

Are you using official software?

They didn’t plot anything yet: Farmer benchmark prove error - #5 by nazar-pc