vhakulinen / gnvim

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

gnvim Crashes when editing file with folding. #149

Closed ishan9299 closed 4 years ago

ishan9299 commented 4 years ago

First thing this only happens when I am editing my init.vim I am using the latest neovim from the master branch commit.

When I am editing my init.vim which has vim: foldmethod=marker. After entering the insert mode when I enter the Insert Mode and start typing gnvim crashes.

VERSION:

gnvim 0.1.6

BACKTRACE :

RUST_BACKTRACE=full gnvim --print-nvim-cmd
nvim cmd: ["nvim", "--embed", "--cmd", "let g:gnvim=1", "--cmd", "set termguicolors", "--cmd", "let &rtp.=\',/nix/store/i1kicskprgxfkxq9dxi9jj7k8jls6r6f-gnvim-unwrapped-0.1.6/share/gnvim/runtime\'"]
Cannot get default EGL display: EGL_BAD_PARAMETER
WaylandCompositor requires eglCreateImage and eglDestroyImage.
Nested Wayland compositor could not initialize EGL
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { domain: gdk-pixbuf-error-quark, code: 3, message: "Unrecognized image file format" }', src/ui/popupmenu/completion_item_widget.rs:122:9
stack backtrace:
   0:     0x558a4b102a03 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h849031480159739b
   1:     0x558a4b129f8d - core::fmt::write::h0862b6ec023321b7
   2:     0x558a4b10f7e7 - std::io::Write::write_fmt::hbd587c8b9d015cdb
   3:     0x558a4b109f70 - std::panicking::default_hook::{{closure}}::haeb1cfcdfaa43e7b
   4:     0x558a4b109c84 - std::panicking::default_hook::h6f99de714b4d3ee8
   5:     0x558a4b10a597 - std::panicking::rust_panic_with_hook::hf942dde38ba0d86c
   6:     0x558a4b10a19b - rust_begin_unwind
   7:     0x558a4b129c71 - core::panicking::panic_fmt::hfa91b32cfe176910
   8:     0x558a4b129d03 - core::result::unwrap_failed::h289b9be1bc25379d
   9:     0x558a4af00d38 - gnvim::ui::popupmenu::completion_item_widget::get_icon_pixbuf::h2ce1fc153501cbe6
  10:     0x558a4aeff40b - gnvim::ui::popupmenu::completion_item_widget::CompletionItemWidgetWrap::create::h629c4d0af6adf548
  11:     0x558a4af27fef - glib::source::trampoline::he42b046fb269150e
  12:     0x7f9e1abed31e - g_main_context_dispatch
  13:     0x7f9e1abed6d0 - g_main_context_iterate.isra.0
  14:     0x7f9e1abed75f - g_main_context_iteration
  15:     0x7f9e1af41a3d - g_application_run
  16:     0x558a4aee39be - <O as gio::application::ApplicationExtManual>::run::hced37f06b6f36ef8
  17:     0x558a4aeba04a - gnvim::main::he71d6e3b3cc333fa
  18:     0x558a4aeee6c3 - std::rt::lang_start::{{closure}}::h897f5e2f380560ff
  19:     0x558a4b10a887 - std::rt::lang_start_internal::had8cb6e38bba1df1
  20:     0x558a4aeba5b2 - main
  21:     0x7f9e1a9bec7d - __libc_start_main
  22:     0x558a4aea426a - _start
  23:                0x0 - <unknown>

I am also putting the link to my init.vim as this did not happen when I was editing some markdown files.

vhakulinen commented 4 years ago

Check that you have svg libraries installed so that gtk use svg's. On mac the library is librsvg, not sure what the library is on your system.

ishan9299 commented 4 years ago

Yup seems to be an issue with nix package I was using I will open the issue over there. On compiling from the source it seems to works fine.