vhakulinen / gnvim

GUI for neovim, without any web bloat
MIT License
1.84k stars 69 forks source link

`assertion failed: min <= max` at `gnvim::components::shell::Shell::handle_float_pos` #212

Closed diamondburned closed 1 year ago

diamondburned commented 1 year ago

This seems to happen when I hit K to pop up nvim-lsp's details window.

(this window in the TUI) ![image](https://github.com/vhakulinen/gnvim/assets/8463786/7f07fe6e-71f6-441d-819c-686f2293a325)

This seems to only happen to this particular type, presumably because the pop-up window is too large? Popping up the details window on another type doesn't cause this crash.

Stack trace:

thread 'main' panicked at 'assertion failed: min <= max', /build/rustc-1.69.0-src/library/core/src/num/f32.rs:1394:9
stack backtrace:
   0:     0x557314d23ada - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h1792633461806265
   1:     0x557314d4e5ce - core::fmt::write::h86858dfe747be413
   2:     0x557314d35fb5 - std::io::Write::write_fmt::h74e0842d6f1ebf1a
   3:     0x557314d238a5 - std::sys_common::backtrace::print::h18201883e81727b4
   4:     0x557314d3693f - std::panicking::default_hook::{{closure}}::he7684422edfb8e5d
   5:     0x557314d36605 - std::panicking::default_hook::h0f55305c4c7e7f71
   6:     0x557314d36e08 - std::panicking::rust_panic_with_hook::hb89fb9ee5a2c564f
   7:     0x557314d24162 - std::panicking::begin_panic_handler::{{closure}}::hc641e1ce95f25c1f
   8:     0x557314d23be6 - std::sys_common::backtrace::__rust_end_short_backtrace::h6a9bb70d00ab18d8
   9:     0x557314d36af2 - rust_begin_unwind
  10:     0x557314bc7393 - core::panicking::panic_fmt::h71a20a5609c5aabf
  11:     0x557314bc742d - core::panicking::panic::h6358615eb4eff706
  12:     0x557314bda456 - gnvim::components::shell::Shell::handle_float_pos::h1af7faf4b90eea2e
  13:     0x557314c3bb92 - gnvim::components::appwindow::imp::AppWindow::handle_ui_event::hca37e32a0fe6e3da
  14:     0x557314c1548e - glib::main_context_futures::<impl glib::auto::main_context::MainContext>::spawn_local_with_priority::{{closure}}::h569467aa43163a3e
  15:     0x557314d124cd - std::panicking::try::hf48bb147dd3c1dd3
  16:     0x557314d11fe2 - glib::main_context::<impl glib::auto::main_context::MainContext>::with_thread_default::h363eb9de3e9b4541
  17:     0x557314d15ce8 - glib::main_context_futures::TaskSource::dispatch::hcfd516076968f569
  18:     0x7f23510cedbd - g_main_context_dispatch
  19:     0x7f23510cf068 - g_main_context_iterate.constprop.0
  20:     0x7f23510cf0fc - g_main_context_iteration
  21:     0x7f23512ff53d - g_application_run
  22:     0x557314c46c13 - <O as gio::application::ApplicationExtManual>::run_with_args::h19e7e09453c5f80c
  23:     0x557314bea607 - gnvim::main::hf5513111884a5019
  24:     0x557314bf30c3 - std::sys_common::backtrace::__rust_begin_short_backtrace::had88623c962ce061
  25:     0x557314be4029 - std::rt::lang_start::{{closure}}::h00f5c83aba9b566f
  26:     0x557314d2d088 - std::rt::lang_start_internal::h34bd518f25d68bbe
  27:     0x557314bea9a5 - main
  28:     0x7f2350dadace - __libc_start_call_main
  29:     0x7f2350dadb89 - __libc_start_main@@GLIBC_2.34
  30:     0x557314bc7895 - _start
  31:                0x0 - <unknown>

Nvim config: init.vim

vhakulinen commented 1 year ago

Should be fixed now.