ord icon indicating copy to clipboard operation
ord copied to clipboard

thread 'main' panicked at 'range end index 4124 out of range for slice of length 4096'

Open GaloisField2718 opened this issue 1 year ago • 2 comments

Hello everyone,

I updated my ord client with 0.5.2 version. I'm on MacOS X Ventura 13.x

Now I catched this issue after ord --cookie-file=path/.cookie wallet balance :

thread 'main' panicked at 'range end index 4124 out of range for slice of length 4096', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/redb-0.13.0/src/tree_store/btree_base.rs:191:24
stack backtrace:
   0:        0x1106b6b56 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h47bed05ceb7970ee
   1:        0x1106d773a - core::fmt::write::hefd823d99333384a
   2:        0x1106b06ac - std::io::Write::write_fmt::hb978956bb1b85e2b
   3:        0x1106b693a - std::sys_common::backtrace::print::hc9e298c4664da113
   4:        0x1106b8573 - std::panicking::default_hook::{{closure}}::hb97411d6e916e1d2
   5:        0x1106b82c8 - std::panicking::default_hook::hc3ac81176817192f
   6:        0x1106b8caf - std::panicking::rust_panic_with_hook::hc11209fa2686218a
   7:        0x1106b8a74 - std::panicking::begin_panic_handler::{{closure}}::h5bad1bd665ab68a6
   8:        0x1106b6ff8 - std::sys_common::backtrace::__rust_end_short_backtrace::h6f4efa73918edf57
   9:        0x1106b873d - _rust_begin_unwind
  10:        0x11070d193 - core::panicking::panic_fmt::hb5474ac70e328787
  11:        0x1106da3a6 - core::slice::index::slice_end_index_len_fail_rt::h05b56ff76c5e0d5b
  12:        0x11070d649 - core::slice::index::slice_end_index_len_fail::hcac37edb0d1d72d9
  13:        0x10ff77efd - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &mut F>::call_once::h42a35b5e422401f1
  14:        0x10fecd07b - <alloc::vec::Vec<T> as alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter::h9dc830bef3390639
  15:        0x10ffd6388 - <alloc::collections::btree::map::BTreeMap<K,V> as core::iter::traits::collect::FromIterator<(K,V)>>::from_iter::h4a9318a182b0e15e
  16:        0x10ffb49da - ord::index::Index::get_inscriptions::h1fdb0fb3d793a67a
  17:        0x10fe8f28b - ord::subcommand::wallet::balance::run::h3a317990d3c425c3
  18:        0x1100e3957 - ord::subcommand::wallet::Wallet::run::h437299d13141401d
  19:        0x10ff472c7 - ord::subcommand::Subcommand::run::hfafc07341498c3a2
  20:        0x1100e5adb - ord::main::he393a108fb6ec119
  21:        0x10fe49f76 - std::sys_common::backtrace::__rust_begin_short_backtrace::h497992958e3def78
  22:        0x10fe49f4c - std::rt::lang_start::{{closure}}::h33814d4b0671410a
  23:        0x1106aa220 - std::rt::lang_start_internal::h36e955fa8337ef16
  24:        0x10fe49fbc - _main
  25:     0x7ff80976941f - <unknown>

I searched this file /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/redb-0.13.0/src/tree_store/btree_base.rs but it doesn't exist, especially runner user doesn't exist.

Do you have an idea about where this out of bonds error can comes from ?

GaloisField2718 avatar May 24 '23 12:05 GaloisField2718

I already took a look on https://github.com/casey/ord/issues/2092#issue-1714357347 but after reindexing bitcoind and after nothing happened with ord --cookie-file=path/.cookie index still the same error.

Maybe it's an issue related to new version I don't know

GaloisField2718 avatar May 24 '23 12:05 GaloisField2718

I downgraded my ord version to 0.5.1 but still the same issue...

GaloisField2718 avatar Jun 03 '23 10:06 GaloisField2718

This was an error in an upstream library which should be fixed now.

raphjaph avatar Aug 22 '23 16:08 raphjaph