chaosprint / asak

A cross-platform audio recording/playback CLI tool with TUI, written in Rust.
MIT License
135 stars 3 forks source link

Playback crash #15

Open lmerz1 opened 1 week ago

lmerz1 commented 1 week ago

On macOS Ventura, asak 0.3.3.

lm@neutrino Downloads % RUST_BACKTRACE=full asak play 12\ Isarflimmern.wav
thread 'main' panicked at src/playback.rs:300:45:
index out of bounds: the len is 8072128 but the index is 8101366
stack backtrace:
0:        0x10083996c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h7fda799bfa435f0f
1:        0x100844934 - core::fmt::write::h149c43f8c649a127
2:        0x10082a82c - std::io::Write::write_fmt::hc658f220ee6401ee
3:        0x1008397c0 - std::sys_common::backtrace::print::hd320cb51e23d85e7
4:        0x100835760 - std::panicking::default_hook::{{closure}}::h2a019217d59e304e
5:        0x10083547c - std::panicking::default_hook::h7115745ac0da2b42
6:        0x100835afc - std::panicking::rust_panic_with_hook::hcaae50c6a8446a46
7:        0x100839d48 - std::panicking::begin_panic_handler::{{closure}}::h3511e01278c0eee1
8:        0x100839b98 - std::sys_common::backtrace::__rust_end_short_backtrace::hb40ac48f98b88c7f
9:        0x100835844 - _rust_begin_unwind
10:        0x10085acd4 - core::panicking::panic_fmt::hd81673e1b116ffee
11:        0x10085ae1c - core::panicking::panic_bounds_check::hc81bd72e43e4b29a
12:        0x10076c4e4 - ratatui::terminal::terminal::Terminal<B>::draw::hb8831a3bf92146a5
13:        0x10075c970 - asak::playback::play_audio::heb81761218f536ce
14:        0x100773d3c - asak::main::h20e2bf02a7677445
15:        0x100748c18 - std::sys_common::backtrace::__rust_begin_short_backtrace::h703d3d2757c553a3
16:        0x100777dfc - std::rt::lang_start::{{closure}}::hd475ac4a0ad9792e
17:        0x100835798 - std::panicking::try::hd72586cf9ddb09aa
18:        0x100823cc4 - std::rt::lang_start_internal::ha2b1bf612bcbfcfb
19:        0x100776cb0 - _main

This is a track that was not recorded using asak. Let me know if you need the file for testing and I will try uploading somewhere or sharing it by email… although I had issues with several files.

Recording seemed to work great, as well as playback of asak recordings, thank you for the development of this! :-)

chaosprint commented 1 week ago

do you mind sharing the wav via google drive or onedrive? or you can send it to my email: chaosprint@gmail.com