Closed MaciejTest closed 4 years ago
or
atm single -n 'C:4,D:4,E:4,F:4,G:4,A:4,B:4,C:5' -t test.mid
thread 'main' panicked at 'called Result::unwrap()
on an Err
value: ()', src\libcore\result.rs:1188:5
stack backtrace:
0: 0x7ff65ee4ed59 - backtrace::backtrace::trace_unsynchronized
at C:\Users\VssAdministrator.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.40\src\backtrace\mod.rs:66
1: 0x7ff65ee4ed59 - std::sys_common::backtrace::_print_fmt
at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8\/src\libstd\sys_common\backtrace.rs:84
2: 0x7ff65ee4ed59 - std::sys_common::backtrace::_print::{{impl}}::fmt
at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8\/src\libstd\sys_common\backtrace.rs:61
3: 0x7ff65ee65fbb - core::fmt::write
at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8\/src\libcore\fmt\mod.rs:1025
4: 0x7ff65ee4ba84 - std::io::Write::write_fmt
@MaciejTest are you running on a Windows machine? Is this possibly related to #14 or #15?
Hello. I got the same issue. Trying to run the tool on Debian Buster. It ends up like this all the time:
➜ release git:(master) ./atm
thread 'main' panicked at 'Did not receive directive', src/cli.rs:133:21
stack backtrace:
0: 0x55de543936d4 - backtrace::backtrace::libunwind::trace::he25250f78ba1020d
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
1: 0x55de543936d4 - backtrace::backtrace::trace_unsynchronized::hd7e25f35da233a1e
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
2: 0x55de543936d4 - std::sys_common::backtrace::_print_fmt::h5578a566a4c2ae4e
at src/libstd/sys_common/backtrace.rs:84
3: 0x55de543936d4 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hd4f87054ec86e936
at src/libstd/sys_common/backtrace.rs:61
4: 0x55de543b292c - core::fmt::write::h393d55821fa8e2cb
at src/libcore/fmt/mod.rs:1025
5: 0x55de54391717 - std::io::Write::write_fmt::hc6645302c23e4504
at src/libstd/io/mod.rs:1426
6: 0x55de5439571e - std::sys_common::backtrace::_print::he8a0a3ebec70e1d6
at src/libstd/sys_common/backtrace.rs:65
7: 0x55de5439571e - std::sys_common::backtrace::print::hc2635fd6c7743ade
at src/libstd/sys_common/backtrace.rs:50
8: 0x55de5439571e - std::panicking::default_hook::{{closure}}::h9849388798b72b2b
at src/libstd/panicking.rs:193
9: 0x55de54395411 - std::panicking::default_hook::h66e3afff11b02e47
at src/libstd/panicking.rs:210
10: 0x55de54395d9b - std::panicking::rust_panic_with_hook::hf6d05969fcffff03
at src/libstd/panicking.rs:471
11: 0x55de5431abb5 - std::panicking::begin_panic::hb9b18887a0009a90
12: 0x55de5431a3fd - atm::cli::Cli::run::h5581c54a304e8354
13: 0x55de5431828f - atm::main::h5e3ca24a77bdf494
14: 0x55de54318243 - std::rt::lang_start::{{closure}}::hfe8731b9962fbc1b
15: 0x55de543957e3 - std::rt::lang_start_internal::{{closure}}::h4aedff5d9863b36b
at src/libstd/rt.rs:52
16: 0x55de543957e3 - std::panicking::try::do_call::h0630fe3da32a089b
at src/libstd/panicking.rs:292
17: 0x55de543979ea - __rust_maybe_catch_panic
at src/libpanic_unwind/lib.rs:78
18: 0x55de54396230 - std::panicking::try::hdfbe2fd873ac646c
at src/libstd/panicking.rs:270
19: 0x55de54396230 - std::panic::catch_unwind::hd7a9c10fa2bee1bc
at src/libstd/panic.rs:394
20: 0x55de54396230 - std::rt::lang_start_internal::hb8081e0e7e42ac0d
at src/libstd/rt.rs:51
21: 0x55de543182c2 - main
22: 0x7efe3189b09b - __libc_start_main
23: 0x55de5431817a - _start
24: 0x0 - <unknown>
I have no issues with compiling the tool though. I tried to compile with Rust from Debian repo and also with Rust, installed via rustup, as suggested on the atm-cli Github page.
@eighthkeepa that doesn't look like an error, you just need to specify a directive. Try running ./atm --help
. We are working on a new version that, amongst other things, will display a help menu when no CLI parameters/flags are provided. See #22.
atm single -n 'C:4,D:4,E:4,F:4,G:4,A:4,B:4,C:5' -t test.mid thread 'main' panicked at 'called
at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8\/src\libstd\io\mod.rs:1426
5: std::sys_common::backtrace::_print
at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8\/src\libstd\sys_common\backtrace.rs:65
6: std::sys_common::backtrace::print
at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8\/src\libstd\sys_common\backtrace.rs:50
7: std::panicking::default_hook::{{closure}}
at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8\/src\libstd\panicking.rs:193
8: std::panicking::default_hook
at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8\/src\libstd\panicking.rs:210
9: std::panicking::rust_panic_with_hook
at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8\/src\libstd\panicking.rs:471
10: std::panicking::begin_panic_handler
at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8\/src\libstd\panicking.rs:375
11: core::panicking::panic_fmt
at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8\/src\libcore\panicking.rs:84
12: core::result::unwrap_failed
at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8\/src\libcore\result.rs:1188
13: <alloc::vec::Vec as alloc::vec::SpecExtend<T,I>>::from_iter
14: ::from_str
15: atm::directives::parse_sequence_argument
16: <atm::directives::SingleDirectiveArgs as core::convert::From<&clap::args::arg_matches::ArgMatches>>::from
17: atm::cli::Cli::run
18: core::ptr::real_drop_in_place
19: vtable
20: std::rt::lang_start_internal::{{closure}}
at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8\/src\libstd\rt.rs:52
21: std::panicking::try::do_call<closure-0,i32>
at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8\/src\libstd\panicking.rs:292
22: panic_unwind::rust_maybe_catch_panic
at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8\/src\libpanic_unwind\lib.rs:78
23: std::panicking::try
at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8\/src\libstd\panicking.rs:270
24: std::panic::catch_unwind
at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8\/src\libstd\panic.rs:394
25: std::rt::lang_start_internal
at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8\/src\libstd\rt.rs:51
26: main
27: invoke_main
at d:\agent_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
28: scrt_common_main_seh
at d:\agent_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
29: BaseThreadInitThunk
30: RtlUserThreadStart
note: Some details are omitted, run with
Result::unwrap()
on anErr
value: ()', src\libcore\result.rs:1188:5 stack backtrace: 0: backtrace::backtrace::trace_unsynchronized at C:\Users\VssAdministrator.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.40\src\backtrace\mod.rs:66 1: std::sys_common::backtrace::_print_fmt at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8\/src\libstd\sys_common\backtrace.rs:84 2: std::sys_common::backtrace::_print::{{impl}}::fmt at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8\/src\libstd\sys_common\backtrace.rs:61 3: core::fmt::write at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8\/src\libcore\fmt\mod.rs:1025 4: std::io::Write::write_fmtRUST_BACKTRACE=full
for a verbose backtrace.