oni icon indicating copy to clipboard operation
oni copied to clipboard

New windows of Oni 0.3.6 are unable to launch Neovim after local Neovim is updated to 0.3.1

Open zr0z opened this issue 8 years ago • 14 comments

Oni Version: 0.3.6 Operating System: Mac OS 10.14 Mojave

Issue: After upgrade of local Neovim to version 0.3.1, new windows of Oni are unable to launch Neovim

Expected behavior: Oni is supposed to be able to open Neovim 0.2.1+

Actual behavior: The Neovim binary bundled with Oni crashes.

Steps to reproduce:

  • Install Neovim with Homebrew
  • OR Update Neovim using Homebrew to last version
  • Open a new window of Oni

oni_ui

OSX crash log: nvim_2018-09-28-104313.txt

Thank you for that great software!

zr0z avatar Sep 28 '18 01:09 zr0z

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.

oni-bot avatar Sep 28 '18 01:09 oni-bot

Nvim crash should be reported to Nvim issue tracker. I've never seen this before , very strange. init_locale doesn't look risky...

It crashed in macOS generationCountFromListOfSources, how could that be a Nvim bug?

Mojave has generated numerous weird bug reports for Vim as well.

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   CoreFoundation                	0x0000000101547d43 generationCountFromListOfSources + 195
1   CoreFoundation                	0x00000001016c38fd -[CFPrefsSearchListSource alreadylocked_generationCountFromListOfSources:count:] + 413
2   CoreFoundation                	0x0000000101547770 -[CFPrefsSearchListSource alreadylocked_copyDictionary] + 336
3   CoreFoundation                	0x000000010154f97f -[CFPrefsSource copyDictionary] + 47
4   CoreFoundation                	0x000000010154f93c ____CFXPreferencesCopyCurrentApplicationState_block_invoke + 28
5   CoreFoundation                	0x00000001016c556c -[_CFXPreferences(SearchListAdditions) withSnapshotSearchList:] + 172
6   CoreFoundation                	0x000000010154f8bb __CFXPreferencesCopyCurrentApplicationState + 123
7   CoreFoundation                	0x000000010154f4dc _CFLocaleCopyCurrentGuts + 268
8   libintl.8.dylib               	0x0000000101c4ad97 _nl_locale_name_default + 47
9   libintl.8.dylib               	0x0000000101c4b1bc libintl_setlocale + 169
10  nvim                          	0x0000000101254bd2 early_init + 210
11  nvim                          	0x0000000101254dd3 main + 323
12  libdyld.dylib                 	0x00007fff71614085 start + 1

justinmk avatar Sep 28 '18 05:09 justinmk

Thank you for the quick answer!

The issue is with the bundled oni-neovim-binaries/bin/nvim-osx64/bin/nvim I wonder if there is a collision between that binary and the one installed locally by Homebrew, because after uninstalling the one from Homebrew, I don't have the error anymore. They should run in isolation

Thanks a lot!

zr0z avatar Oct 01 '18 01:10 zr0z

I've also been having this problem. I'm on a linux (Debian testing) + Neovim 0.3.1 + Oni 3.7-beta3. If I build from source Oni loads properly, it's the .deb bundle that fails.

BobobUnicorn avatar Oct 02 '18 20:10 BobobUnicorn

@BobobUnicorn backtrace?

justinmk avatar Oct 02 '18 20:10 justinmk

I also have this issue after updating to Mojave. Worked fine before.

archlemon avatar Oct 03 '18 09:10 archlemon

@justinmk How do I get that?

BobobUnicorn avatar Oct 03 '18 12:10 BobobUnicorn

I'm having the same issue here 🤚

gomezhyuuga avatar Oct 04 '18 03:10 gomezhyuuga

image

gomezhyuuga avatar Oct 04 '18 08:10 gomezhyuuga

There is a "fix" over here: https://github.com/onivim/oni/issues/2396

The error is the same as what was happening with Oni when we updated nvim to 0.3.1, which we discussed over here: https://github.com/onivim/oni/issues/2354 (and this nvim issue https://github.com/neovim/neovim/issues/8524)

CrossR avatar Oct 04 '18 11:10 CrossR

Thank! By specifying nvim's path the error is gone.

gomezhyuuga avatar Oct 04 '18 11:10 gomezhyuuga

Great so it's clearly a duplicate, I will close the issue now.

I have been able to fix it as well by following #2396

I pointed the path to the symlink using /usr/local/bin and not the cellar itself, so hopefully I won't need to update it when Neovim gets updated.

    "debug.neovimPath": "/usr/local/bin/nvim",

Thanks @CrossR for spotting it!

zr0z avatar Oct 05 '18 06:10 zr0z

Regarding the original report, I still wonder if the "universal" macOS binaries that we (Nvim core) build on Travis CI have problem with macOS "Mojave".

justinmk avatar Oct 05 '18 07:10 justinmk

@justinmk No it doesn't seem so. Navigating to /Applications/Oni.app/Contents/Resources/app/node_modules/oni-neovim-binaries/bin/nvim-osx64/bin and running that particular nvim works in a cli environment.

local vs system nvim

zr0z avatar Oct 05 '18 09:10 zr0z