Closed michaelmior closed 1 month ago
thanks for reporting; looks like it might be an issue with the clipboard manager: https://github.com/1Password/arboard/issues/153
will investigate
i was able to reproduce in a vm; it looks like extending the timeout for creating the Clipboard instance might help (https://github.com/1Password/arboard/pull/147), so i will try that later to see if that's the issue or if there's a different root cause
in the meantime, i have a pr to fallback to using the textarea's buffer instead of panicking: https://github.com/achristmascarl/rainfrog/pull/81
@achristmascarl Thanks! Confirmed that PR prevents the panic on my machine.
great! i'll close this for now, and continue tracking the X11 clipboard timeout here: https://github.com/achristmascarl/rainfrog/issues/83
Included in release v0.2.1
bug description
When I type "cc" in the query window, rainfrog crashes.
technical details
system info
crash logs
name = "rainfrog" operating_system = "Ubuntu 20.4.0 (focal) [64-bit]" crate_version = "0.2.0" explanation = """ Panic occurred in file '/home/mmior/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rainfrog-0.2.0/src/vim.rs' at line 344 """ cause = 'called
Result::unwrap()
on anErr
value: Unknown { .. } - "Unknown error while interacting with the clipboard: X11 server connection timed out because it was unreachable"' method = "Panic" backtrace = """0: 0x556eb246eddb - rainfrog::components::editor::Editor::transition_vim_state::h3d20a324e016faeb 1: 0x556eb2469670 -::handle_events::h8f0e2253b14231bc
2: 0x556eb25372c3 - rainfrog::app::App::run::{{closure}}::he0d0e37f1050d599
3: 0x556eb2527cb5 - tokio::runtime::runtime::Runtime::block_on::h7a11a1e1f1e03fdf
4: 0x556eb24f508f - rainfrog::main::h95949b0ba75cec25
5: 0x556eb259d463 - std::sys::backtrace::__rust_begin_short_backtrace::h0cf30c58468529e8
6: 0x556eb24f4ca2 - main
7: 0x7f649a4aa083 - __libc_start_main
at /build/glibc-LcI20x/glibc-2.31/csu/../csu/libc-start.c:308
8: 0x556eb2255fee - _start
9: 0x0 - """