neovim-remote: Nvim segfaults
fresh install of neovim-remote. Installed via
pip3 install neovim-remote
running via python ~/.local/bin/nvr reveals that
Traceback (most recent call last): File “.local/bin/nvr”, line 6, in <module> from nvr.nvr import main ImportError: No module named nvr.nvr
Thanks
EDIT: python ~/.local/bin/nvr is a mistake on my part. It should be python3 ~/.local/bin/nvr which then reveals the same issue abore (core dump) nvr
For clarification and future readers, here is my NVIM info:
NVIM v0.4.3
Build type: RelWithDebInfo
LuaJIT 2.0.5
Compilation: /usr/bin/gcc-5 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -g -DMIN_LOG_LEVEL=3 -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/home/travis/build/neovim/bot-ci/build/neovim/build/config -I/home/travis/build/neovim/bot-ci/build/neovim/src -I/home/travis/build/neovim/bot-ci/build/neovim/.deps/usr/include -I/usr/include -I/home/travis/build/neovim/bot-ci/build/neovim/build/src/nvim/auto -I/home/travis/build/neovim/bot-ci/build/neovim/build/include
Compiled by travis@travis-job-9a287301-34f2-4b86-92e3-462594f51f36
Features: +acl +iconv +tui
See ":help feature-compile"
   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/share/nvim"
About this issue
- Original URL
 - State: open
 - Created 5 years ago
 - Reactions: 4
 - Comments: 17 (9 by maintainers)
 
Commits related to this issue
- fix: nvr socket bug Solution to https://github.com/mhinz/neovim-remote/issues/134 — committed to filipekiss/zsh by filipekiss 4 years ago
 - Set `NVIM_LISTEN_ADDRESS` even outside of tmux This helps avoids errors when using `nvr`. See https://github.com/mhinz/neovim-remote/issues/134#issuecomment-565840645 — committed to carlocab/tmux-nvr by carlocab 4 years ago
 
Also experiencing this issue on Ubuntu 19.10, running nvim v0.3.8, but I don’t have deoplete installed.
Removing the nvimsocket file as well as any existing nvim folders from /tmp fixed it for me:
Despite that the bug has been identified as mentioned above, and that I have no idea what the problem really is, I would like to share some of my own experience.
I am on Fedora 30, and installed neovim from the copr repository
agriffis/neovim-nightly. I started to have this problem long time ago. I regularly dosudo dnf upgradeso I am always using the latest version of neovim. At certain point, I got thecore dumpproblem. After some experiment, I found that if I do not upgrade thepython3-neovimpackage, I would have no problem. After that I started to do my upgrade by always excludingpython3-neovim. Today I did something wrong and messed everything up. So I want to do a fresh install ofneovimandneovim-remote. After quite lots of tries, I found that if I use thepynvim-0.3.2, then the problem disappears.The version of
pynviminstalled bypip3 install neovim-remotewould be the latest0.4.1. The version ofpython3-neovim(fedora packagedpynvim) fromagriffis/neovim-nightlyis0.4.0.0.git.567.2cbc135. Neither of them work with my latest nvim install. So I uninstalled the pynvim-0.4.1, and installed 0.3.2, then the problem solved.Now I have the following instals.
I’ve got a similar issue here.
pip show neovim-remote | grep LocationI’d add I’m using archlinux.
Here is the result of the core dump obtained via
coredumpctl info <PID>:Seems like the core dump, if it’s the same issue, is more related to how
nvimis launched maybe ?Also, I would add, the core dump only happens on first launch after boot, then, nvim starts, but I get a message (printed to stdout) that says :
At this point it is possible to use nvr if you specify an existing nvim socket, like so for example :
EDIT: after the first core dump, a file called /tmp/nvimsocket is created. If I delete this file and try to launch nvr without any argument again, I get a new core dump.
Can confirm @Shatur95 suggestion works great; I have this in .bashrc:
@mhinz any downside if nvr started providing said check?
I use the following script:
It simply spawn
nvronly if neovim is launched, otherwise it just start neovim ($NVR_CMDisneovim-qton my machine). It works perfectly for me without any crashes. I think that such check should be by default.@haoyun suggestion works also for me
Thanks
+1
@haoyun suggestion to downgrade pynvim to 0.3.2 worked for me as well
Well, whatever the plugins are doing, they trigger a condition that makes Nvim segfault and Nvim should never segfault. And according to this comment, the problem is understood. It just needs someone to come up with a fix.