-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Update macOS Mojave 10.14.2, terminal VIm:Caught deadly signal SEGV #3271
Comments
We've had tons of reports of broken vim/python on macos, so let's start from there. |
@bstaletic sorry, I can't , because when i run |
If that is happening even without YCM, then that is definitely not caused by YCM. |
@bstaletic Yea, I remove YCM and run |
What about |
@bstaletic Nothing happened |
@bstaletic Why does this happen ? Maybe when i update OS, environment variable change and YCM get error ? or others ? |
What is the output of |
@puremourning I input |
Are you able to join our Gitter channel? It might be easier to debug interactively? There are a few steps I would like to check through that would be easier in a chat. |
@puremourning yeah, I can, what Gitter channel's name ? |
@puremourning ok, I'm in |
I can reproduce this with system Vim on Mojave.
Historically, system Vim has not been new enough to run YCM so most users use homebrew or MacVim. It's highly possible that this is some incompatibility or nonstandard build of Vim supplied in the OS. It wouldn't be the first time. Our readme still says to use MacVim, so I would recommend doing that. Alternatively, homebrew Vim (e.g. |
It seems we're not the only ones seeing Note also, duplicates |
I can repro without using any YCM code. The error happens when instantiating python requests-futures:
repro with |
actually it happens importing
|
Interesting. Without
This boils down further to:
Interestingly, this doesn't cause the segfault, but the memory error is clearly an issue with urllib3/pyopenssl on in that environment. It's not a YCM issue per se, but I wonder if there is a workaround we might be able to apply. |
Not sure if this is still applicable but I have been able to reproduce the error in MacVim v8.1.557. I installed the plugin using Vundle and if I comment out loading of YouCompleteMe macvim starts up. With it in I get the same Same configuration was working fine on an older version of MacOS but just updated to Mojave 10.14.2 to make my weekend more interesting. I direct YouCompleteMe to use a version of python3 installed using macports instead of the native implementation. |
@droghio It's not clear from your report if you are seeing the exact same issue or not. Do you have specific evidence? Can you try the minimal repro here : (replace
|
I update vim by |
Had the same issue with the System Vim but as @boxi79 reported: with the homebrew version everything is fine @MrZhang123 If you have future trouble with your configuration of vim (i.e. plugins that are failing) you can use |
This is not a YCM issue, it's clearly a Vim and/or macOS issue, so closing this. Using Vim or macVim from homerbew is recommended. |
This occurs only when installing YCM, in my case. If I remove YCM plugin from .vimrc, vim comes up fine. powerline/powerline#1947 (comment) helped address it. |
For posterity, here's a simpler way to reproduce the :py import ctypes resulting in Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 555, in <module>
_reset_cache()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 279, in _reset_cache
CFUNCTYPE(c_int)(lambda: None)
MemoryError |
For posterity (since I just used this to fix my install of youcompleteme), the commands are now: brew install vim Or, to include the graphical interface too: brew install macvim Brew has removed options from most formula; the |
Issue Prelude
Please complete these steps and check these boxes (by putting an
x
insidethe brackets) before filing your issue:
[Frequently Asked Questions][faq] section.
about to report and couldn't find an answer to my problem. ([Example Google
search.][search])
vim --version
.:YcmDebugInfo
.the
:YcmToggleLogs
command.version) I am using.
my issue, including what I expected to happen and what actually happened.
of
install.py
(orcmake
/make
/ninja
) including its invocationthat any help I receive is a selfless, heartfelt gift of their free time. I
know I am not entitled to anything and will be polite and courteous.
actually perform all of these steps.
Thank you for adhering to this process! It ensures your issue is resolved
quickly and that neither your nor our time is needlessly wasted.
Issue Details
I upgrade macOS Mojave for 10.14.2, and install last version YouCompleteMe, then run
./install.py --ts-completer
, every things is ok, when i run$ vim
,I get error like this:if i remove YCM, everything is ok, but when i installed it ,I get problem. This problem only have in terminal vim , macvim is ok,
my terminal vim is macos default vim , not use brew install vim and
vim --version
isDiagnostic data
Output of
vim --version
I wonder why this happened and how to fix it ?
The text was updated successfully, but these errors were encountered: