Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application crashes when you change the BPM #239

Closed
rexim opened this issue Jul 29, 2017 · 0 comments
Closed

Application crashes when you change the BPM #239

rexim opened this issue Jul 29, 2017 · 0 comments

Comments

@rexim
Copy link
Member

rexim commented Jul 29, 2017

Reproduction steps

  • $ cargo run looper <input_port> <output_port>
  • Change the BPM by turning the corresponding knob

Observed behaviour

    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
     Running `target/debug/dimooper looper 5 9`
Listening on: 5 Launchkey Mini MIDI 1
Sending recorded events: 9 Synth input port (26979:0)
ControlChange { channel: 0, number: 21, value: 18 }
ControlChange { channel: 0, number: 21, value: 19 }
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: SdlError("Library not initialized")', /checkout/src/libcore/result.rs:859
stack backtrace:
   0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace
   1: std::sys_common::backtrace::_print
   2: std::panicking::default_hook::{{closure}}
   3: std::panicking::default_hook
   4: std::panicking::rust_panic_with_hook
   5: std::panicking::begin_panic
   6: std::panicking::begin_panic_fmt
   7: rust_begin_unwind
   8: core::panicking::panic_fmt
   9: core::result::unwrap_failed
             at /checkout/src/libcore/macros.rs:29
  10: <core::result::Result<T, E>>::unwrap
             at /checkout/src/libcore/result.rs:737
  11: dimooper::ui::popup::Popup::make_text_texture
             at ./src/ui/popup.rs:25
  12: <dimooper::ui::popup::Popup as dimooper::traits::Renderable>::render
             at ./src/ui/popup.rs:62
  13: <dimooper::screen::looper_screen::LooperScreen<NoteTracker> as dimooper::screen::screen::Screen<()>>::render
             at ./src/screen/looper_screen.rs:168
  14: dimooper::screen::event_loop::EventLoop::run
             at ./src/screen/event_loop.rs:57
  15: dimooper::main
             at ./src/main.rs:151
  16: std::panicking::try::do_call
  17: __rust_maybe_catch_panic
  18: std::rt::lang_start
  19: main
  20: __libc_start_main
  21: _start
             at ../sysdeps/x86_64/start.S:120

Expected behaviour

Application doesn't crash and the BPM is changed accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant