arteme / pod-ui

A modern GTK+ UI for controlling Line6 POD family of devices via MIDI. Supported devices: POD 1.0, POD 2.0, POD Pro, PocketPOD, PODxt, PODxt Pro, PODxt Live, Bass PODxt, Bass PODxt Pro, Bass PODxt Live
https://arteme.github.io/pod-ui/
GNU General Public License v3.0
31 stars 2 forks source link

Crash unwrapping a `None` in a logic callback #39

Closed arteme closed 1 year ago

arteme commented 1 year ago

Sentry: https://artem-egorkine.sentry.io/issues/4286249953/events/7393912c86e148488a456d3868310eea/

OS Version: macOS 10.16.0 (21G646)
Report Version: 104

Application Specific Information:
called `Option::unwrap()` on a `None` value

Thread 0 Crashed:
0   pod-gui                         0x103072e88         std::sys_common::backtrace::__rust_end_short_backtrace (backtrace.rs:137)
1   pod-gui                         0x1030743f1         rust_begin_unwind (panicking.rs:575)
2   pod-gui                         0x1030b7502         core::panicking::panic_fmt (panicking.rs:64)
3   pod-gui                         0x1030b75d6         core::panicking::panic (panicking.rs:111)
4   pod-gui                         0x102e5a13d         pod_gtk::logic::LogicWithDataOnBuilder<T>::run::{{closure}}
5   pod-gui                         0x102e377a6         [inlined] pod_gui::controller_rx_handler::{{closure}} (main.rs:434)
6   pod-gui                         0x102e377a6         pod_gui::start_controller_rx::{{closure}} (main.rs:464)
7   pod-gui                         0x102d11724         [inlined] glib::main_context_futures::FutureWrapper::poll
8   pod-gui                         0x102d11724         [inlined] glib::main_context_futures::TaskSource::poll::{{closure}} (main_context_futures.rs:233)
9   pod-gui                         0x102d11724         [inlined] glib::main_context::<T>::with_thread_default (main_context.rs:156)
10  pod-gui                         0x102d11724         [inlined] glib::main_context_futures::TaskSource::poll (main_context_futures.rs:226)
11  pod-gui                         0x102d11724         glib::main_context_futures::TaskSource::dispatch (main_context_futures.rs:67)
12  libglib-2.0.0.dylib             0x10e5b976a         _g_main_context_dispatch
13  libglib-2.0.0.dylib             0x10e5b9a59         _g_main_context_iterate
14  libglib-2.0.0.dylib             0x10e5b9c98         _g_main_loop_run
15  libgtk-3.0.dylib                0x10cfcdc8c         _gtk_main
16  pod-gui                         0x102e3eafc         pod_gui::main::{{closure}} (main.rs:1186)
17  pod-gui                         0x102e3b63a         [inlined] tokio::runtime::park::CachedParkThread::block_on::{{closure}} (park.rs:283)
18  pod-gui                         0x102e3b63a         [inlined] tokio::runtime::coop::with_budget (coop.rs:102)
19  pod-gui                         0x102e3b63a         [inlined] tokio::runtime::coop::budget (coop.rs:68)
20  pod-gui                         0x102e3b63a         [inlined] tokio::runtime::park::CachedParkThread::block_on (park.rs:283)
21  pod-gui                         0x102e3b63a         [inlined] tokio::runtime::context::BlockingRegionGuard::block_on (context.rs:315)
22  pod-gui                         0x102e3b63a         [inlined] tokio::runtime::scheduler::multi_thread::MultiThread::block_on (mod.rs:66)
23  pod-gui                         0x102e3b63a         [inlined] tokio::runtime::runtime::Runtime::block_on (runtime.rs:284)
24  pod-gui                         0x102e3b63a         pod_gui::main (main.rs:1189)
25  pod-gui                         0x102dc4a15         [inlined] core::ops::function::FnOnce::call_once (function.rs:507)
26  pod-gui                         0x102dc4a15         std::sys_common::backtrace::__rust_begin_short_backtrace (backtrace.rs:121)
27  pod-gui                         0x102dc4a30         std::rt::lang_start::{{closure}} (rt.rs:166)
28  pod-gui                         0x1030678b7         [inlined] core::ops::function::impls::<T>::call_once (function.rs:606)
29  pod-gui                         0x1030678b7         [inlined] std::panicking::try::do_call (panicking.rs:483)
30  pod-gui                         0x1030678b7         [inlined] std::panicking::try (panicking.rs:447)
31  pod-gui                         0x1030678b7         [inlined] std::panic::catch_unwind (panic.rs:137)
32  pod-gui                         0x1030678b7         [inlined] std::rt::lang_start_internal::{{closure}} (rt.rs:148)
33  pod-gui                         0x1030678b7         [inlined] std::panicking::try::do_call (panicking.rs:483)
34  pod-gui                         0x1030678b7         [inlined] std::panicking::try (panicking.rs:447)
35  pod-gui                         0x1030678b7         [inlined] std::panic::catch_unwind (panic.rs:137)
36  pod-gui                         0x1030678b7         std::rt::lang_start_internal (rt.rs:148)