-
Notifications
You must be signed in to change notification settings - Fork 299
OSX - 0.3.6 - Crash on MacOS earlier than 10.12 #2354
Comments
Also, in theory, this test should be catching stuff like this: |
Thanks for the details, @appelgriebsch ! @CrossR saw it might be related to this issue: neovim/neovim#8524 |
We should have our CI build test against earlier OSX versions to help guard against this in the future - https://docs.travis-ci.com/user/reference/osx/#OS-X-Version |
I am running OS X 10.11. I have a working install of neovim (from macports) at /opt/local/bin/nvim. I tried setting the environment variable ONI_NEOVIM_PATH to the macports neovim, as recommended for a Linux install, but it did not work. Is there a way to make this work for OS X ? |
Same for me, OS X 10.10.5. ONI_NEOVIM_PATH env variable is ignored. I compiled new neovim by using
The thing is that prebuilt neovim binary 0.3.0 also crashes on my machine with same error message as mentioned above. |
The quickest fix for this is to download nvim 0.2.2 from neovim: https://github.com/neovim/neovim/releases/tag/v0.2.2 Then add to your config.js the following. I did this by just editing the file in vim (its stored in
You'll want to do it in the That at least gets Oni to launch. I'm having issues with both the nightly release from today as well as the included binary in the release, and building from source. |
Downgrading to I see two next steps here:
|
I've added the CI server settings to my CI PR, using |
And the CI build on 10.11 failed due to not being able to load neovim. The build on 10.12 can be seen here and seems to be doing okay (though the mac CI is flaky at the moment, so it could still fail, but neovim is at least usable.) |
On macOS 10.14 (Mojave) beta, it looks like the neovim binaries (0.3.0, 0.3.1) downloaded from the neovim github releases raise a segmentation fault. Cannot run from the command line, however the same process I'm using ( There must be some issue with the github releases, because copying and pasting the 0.3.0 release from homebrew into |
I've not tried on macOS 10.14 yet, but it looks like with the latest release of NeoVim being merged, 10.11 is working: https://travis-ci.org/onivim/oni/builds/408413986. |
Same issue here with OSX 10.11 and nvim 0.3.0 and 0.3.1 (tried both). "debug.neovimPath": "/usr/local/bin/nvim", |
I've been checking on random CI tests since the merge of neovim When I tried on 10.14, I was still getting errors unfortunately, so we may still have an issue there. |
Same thing happening with me but I have a local neovim as well as a init.vim. |
Latest mojave 10.14.2 here, same issue. Neovim runs fine from terminal, crashes when under onivim. |
I'm able to reproduce this now after upgrading to mojave. Trying to track this down, a few observations:
Because it works from the command line, a locally built Oni works with I see that there is a difference in the |
Finally found the issue with mojave - it's related to this Neovim issue: It seems that the |
However, trying to launch oni from the terminal and verifying that |
Ok, suddenly it works now. Here is what has worked for me.
into
from
|
Oni Version: 0.3.6
Neovim Version (Linux only): 0.3.0
Operating System: OSX
Issue:
Crash on start on OSX, depending on some configurations. This shows as a misleading "Unable to start Neovim error".
This issue was reported on Twitter here: https://twitter.com/appelgriebsch/status/1010942999210151937 and
However, in the dev tools, we see:

It appears that there is a crash in or around here:
oni/browser/src/neovim/NeovimInstance.ts
Line 681 in e46c720
The purpose of this
_checkAndFixIfBlocked
is to handle the case where there was an error spinning upnvim
while loading the config - you'd get a blank screen and a 'Press enter to continue` prompt, which was really confusing for users if their config was incompatible - so we tried to provide a better experience by capturing the error and showing a notification.We don't see the
nvim_get_mode
call return in this case, so it seems likely that our call tonvim_get_mode
is crashing the process. cc @justinmk - maybe you have some ideas here too, if anything changed?** Workaround: **
Until this is fixed, there are a couple of options:
init.vim
- ideally, we could figure out what cases are causing this.nvim
- you can set thedebug.neovimPath
to point to an0.2.2
version ofnvim
.Steps to reproduce:
@CrossR was able to reproduce this on OSX with his configuration: https://github.com/CrossR/dotfiles/blob/master/neovim/.config/nvim/init.vim
In addition to fixing this issue, we should also introduce a regression test that validates against a more in-depth config like @CrossR 's
The text was updated successfully, but these errors were encountered: