Thursday, August 20, 2020

Electrum is rust "Panic" Errors - HELP very much appreciated!

Hi All!

I ma trying to setup a Electrum in rust implementation for Bitcoin node, using the guide here

Installing rust and compiling the project went smoothly, yet during the run I get panic error:

DEBUG - applying 644588 new headers from height 0

thread 'bulk_index' panicked at 'index 134216189 out of range for slice of length 134177704', src/bulk.rs:150:41

stack backtrace:

0: backtrace::backtrace::libunwind::trace

at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/libunwind.rs:86

1: backtrace::backtrace::trace_unsynchronized

at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/mod.rs:66

2: std::sys_common::backtrace::_print_fmt

at src/libstd/sys_common/backtrace.rs:78

3: <std::sys\_common::backtrace::\_print::DisplayBacktrace as core::fmt::Display>::fmt

at src/libstd/sys_common/backtrace.rs:59

4: core::fmt::write

at src/libcore/fmt/mod.rs:1076

5: std::io::Write::write_fmt

at src/libstd/io/mod.rs:1537

6: std::sys_common::backtrace::_print

at src/libstd/sys_common/backtrace.rs:62

7: std::sys_common::backtrace::print

at src/libstd/sys_common/backtrace.rs:49

8: std::panicking::default_hook::

at src/libstd/panicking.rs:198

9: std::panicking::default_hook

at src/libstd/panicking.rs:218

10: std::panicking::rust_panic_with_hook

at src/libstd/panicking.rs:486

11: rust_begin_unwind

at src/libstd/panicking.rs:388

12: core::panicking::panic_fmt

at src/libcore/panicking.rs:101

13: core::slice::slice_index_len_fail

at src/libcore/slice/mod.rs:2751

note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

The process continues with the initial indexing till the end and then throws another error which terminates the execution:

thread 'main' panicked at 'indexer panicked: Any', src/bulk.rs:256:9

stack backtrace:

0: backtrace::backtrace::libunwind::trace

at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/libunwind.rs:86

1: backtrace::backtrace::trace_unsynchronized

at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/mod.rs:66

2: std::sys_common::backtrace::_print_fmt

at src/libstd/sys_common/backtrace.rs:78

3: <std::sys\_common::backtrace::\_print::DisplayBacktrace as core::fmt::Display>::fmt

at src/libstd/sys_common/backtrace.rs:59

4: core::fmt::write

at src/libcore/fmt/mod.rs:1076

5: std::io::Write::write_fmt

at src/libstd/io/mod.rs:1537

6: std::sys_common::backtrace::_print

at src/libstd/sys_common/backtrace.rs:62

7: std::sys_common::backtrace::print

at src/libstd/sys_common/backtrace.rs:49

8: std::panicking::default_hook::

at src/libstd/panicking.rs:198

9: std::panicking::default_hook

at src/libstd/panicking.rs:218

10: std::panicking::rust_panic_with_hook

at src/libstd/panicking.rs:486

11: rust_begin_unwind

at src/libstd/panicking.rs:388

12: core::panicking::panic_fmt

at src/libcore/panicking.rs:101

13: core::option::expect_none_failed

at src/libcore/option.rs:1272

14: electrs::bulk::index_blk_files

15: electrs::main

16: std::rt::lang_start_internal::::

at src/libstd/rt.rs:52

note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Since I am new to rust, any help in deciphering what can be the cause of the behavior depicted will be very much appreciated!

I am running a Rapsberry Pi 4, latest Raspi OS, and latest rust.



No comments:

Post a Comment