I am using a Mac M2, have installed Rust and installed the program as suggested by the README.
This is the error I get (after exporting RUST_BACKTRACE=full to get more details):
➜ samples ncw-convert 01-F1.ncw 01-F1.wav
thread 'main' panicked at /Users/myuser/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ncw-0.1.2/src/reader.rs:142:53:
index out of bounds: the len is 252928 but the index is 252928
stack backtrace:
0: 0x104720fe8 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h41035ce174e31160
1: 0x104735f98 - core::fmt::write::h7e946826fce7616b
2: 0x10471f250 - std::io::Write::write_fmt::he3645adfefb23e4a
3: 0x104720e40 - std::sys_common::backtrace::print::h2efe9ae66fda73dc
4: 0x104722018 - std::panicking::default_hook::{{closure}}::hd27200b4fbd3bf40
5: 0x104721ce4 - std::panicking::default_hook::hb8656334461229c8
6: 0x1047228c4 - std::panicking::rust_panic_with_hook::h10171cf76e1aed15
7: 0x104722300 - std::panicking::begin_panic_handler::{{closure}}::h9344de43a47cae21
8: 0x10472146c - std::sys_common::backtrace::__rust_end_short_backtrace::h55013ada3ab9c4e8
9: 0x104722070 - _rust_begin_unwind
10: 0x10473c50c - core::panicking::panic_fmt::h0b16bb09366e1f01
11: 0x10473c654 - core::panicking::panic_bounds_check::h0ad4a59c3bde63c5
12: 0x104705dc0 - ncw::reader::NcwReader<R>::decode_samples::haaeadccd20beaad7
13: 0x1047070f8 - ncw_convert::main::hf076c01eb0b19796
14: 0x104704600 - std::sys_common::backtrace::__rust_begin_short_backtrace::h1f125f8a70053eba
15: 0x10470470c - std::rt::lang_start::{{closure}}::h964158c5ee295d5e
16: 0x10471c730 - std::rt::lang_start_internal::h27a134f18d582a1e
17: 0x10470770c - _main
It looks like simple array index issue, but I am not a Rust developer to be sure. I have included the NCW here so you can debug it.
01-F1.ncw.zip
Cheers
I am using a Mac M2, have installed Rust and installed the program as suggested by the README.
This is the error I get (after exporting
RUST_BACKTRACE=fullto get more details):It looks like simple array index issue, but I am not a Rust developer to be sure. I have included the NCW here so you can debug it.
01-F1.ncw.zip
Cheers