-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nvim segfaults #134
Comments
I'm closing this since I'm pretty sure that it's not an issue with this package but a configuration problem. But we can figure out the problem here anyway.
|
I've got a similar issue here.
I'd add I'm using archlinux. Here is the result of the core dump obtained via
Seems like the core dump, if it's the same issue, is more related to how 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. |
Oh, so Nvim segfaults.
|
I guess it's this bug: neovim/neovim#11052 Although there's nothing I can do about it, I let this open for a while, since it's likely that others experience this issue as well. I can't look into it myself, since I can't reproduce it neither with macOS 10.15 nor in an Ubuntu VM. Maybe you can help Justin out there in that issue? :) |
In the mean time, @mhinz, what version of NVIM are you working with? I want to downgrade because I love nvr. I'm using v0.4.3 |
When forking a new process, nvr defaults to whatever I tried:
|
It seems like it is related to neovim/neovim#11052 indeed. In my case however, coc.nvim is not at fault, but it is deoplete. Removing that plugin from my plugin list make nvim works fine when launched by nvr. For reference, I'm using nvim 0.4.3 version and deoplete version 5.2 nvim with nvr was working fine with an earlier version of nvim and/or with an earlier version of deoplete (that I updated quite recently too...) |
Seems like everything works fine until deoplete commit Shougo/deoplete.nvim@eab0bf6 I don't know if it's a neovim or Deoplete issue. And I still don't get why nvim is working fine with deoplete when nvr is not involved. |
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. |
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:
|
It's sad to hear that so many people experience this bug, but I don't see any way to fix this from neovim-remote. This needs to be fixed in Nvim. You get a segfault if there is a What you could all try is using TCP by default. E.g. by putting |
I should have clarified, I don't think removing the stale files and folders in /tmp fixed the segfault, but it did fix the IIRC, to fix the segfault, I think the issue was I hadn't added After that, upon trying to start neovim with |
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 The version of
Now I have the following instals.
|
+1 @haoyun suggestion to downgrade pynvim to 0.3.2 worked for me as well |
@haoyun suggestion works also for me Thanks |
I use the following script: if [ -S $NVIM_LISTEN_ADDRESS ]; then
nvr --remote-wait -s "$@"
else
$NVR_CMD --nofork -- "$@"
fi It simply spawn |
Solution to mhinz/neovim-remote#134
Can confirm @Shatur95 suggestion works great; I have this in .bashrc:
@mhinz any downside if nvr started providing said check? |
This helps avoids errors when using `nvr`. See mhinz/neovim-remote#134 (comment)
fresh install of neovim-remote. Installed via
pip3 install neovim-remote
running via
python ~/.local/bin/nvr
reveals thatThanks
EDIT:
python ~/.local/bin/nvr
is a mistake on my part. It should bepython3 ~/.local/bin/nvr
which then reveals the same issueabore (core dump) nvr
For clarification and future readers, here is my NVIM info:
The text was updated successfully, but these errors were encountered: