Skip to content
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

Errors from MAC, cannot load youcompleteme #3298

Closed
12 tasks done
Doffery opened this issue Jan 17, 2019 · 6 comments
Closed
12 tasks done

Errors from MAC, cannot load youcompleteme #3298

Doffery opened this issue Jan 17, 2019 · 6 comments

Comments

@Doffery
Copy link

Doffery commented Jan 17, 2019

Issue Prelude

Please complete these steps and check these boxes (by putting an x inside
the brackets) before filing your issue:

  • I have read and understood YCM's CONTRIBUTING document.
  • I have read and understood YCM's CODE_OF_CONDUCT document.
  • I have read and understood YCM's README, especially the
    Frequently Asked Questions section.
  • I have searched YCM's issue tracker to find issues similar to the one I'm
    about to report and couldn't find an answer to my problem. (Example Google
    search.
    )
  • If filing a bug report, I have included the output of vim --version.
  • If filing a bug report, I have included the output of :YcmDebugInfo.
  • If filing a bug report, I have attached the contents of the logfiles using
    the :YcmToggleLogs command.
  • If filing a bug report, I have included which OS (including specific OS
    version) I am using.
  • If filing a bug report, I have included a minimal test case that reproduces
    my issue, including what I expected to happen and what actually happened.
  • If filing a installation failure report, I have included the entire output
    of install.py (or cmake/make/ninja) including its invocation
  • I understand this is an open-source project staffed by volunteers and
    that 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.
  • I understand my issue may be closed if it becomes obvious I didn't
    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

After installation, every time I open Vim, I got error:

'Error detected while processing function 64_PollServerReady[7]..64...'

Diagnostic data

Output of vim --version

Place the output here, or a link to a gist.

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Aug 17 2018 17:24:51)
Included patches: 1-503, 505-680, 682-1283
Compiled by root@apple.com
Normal version without GUI.  Features included (+) or not (-):
+acl             +file_in_path    -mouse_sgr       +tag_old_static
-arabic          +find_in_path    -mouse_sysmouse  -tag_any_white
+autocmd         +float           -mouse_urxvt     -tcl
-balloon_eval    +folding         +mouse_xterm     -termguicolors
-browse          -footer          +multi_byte      -terminal
+builtin_terms   +fork()          +multi_lang      +terminfo
+byte_offset     -gettext         -mzscheme        +termresponse
+channel         -hangul_input    +netbeans_intg   +textobjects
+cindent         +iconv           +num64           +timers
-clientserver    +insert_expand   +packages        +title
-clipboard       +job             +path_extra      -toolbar
+cmdline_compl   +jumplist        -perl            +user_commands
+cmdline_hist    -keymap          +persistent_undo +vertsplit
+cmdline_info    +lambda          +postscript      +virtualedit
+comments        -langmap         +printer         +visual
-conceal         +libcall         -profile         +visualextra
+cryptv          +linebreak       +python/dyn      +viminfo
+cscope          +lispindent      -python3         +vreplace
+cursorbind      +listcmds        +quickfix        +wildignore
+cursorshape     +localmap        +reltime         +wildmenu
+dialog_con      -lua             -rightleft       +windows
+diff            +menu            +ruby/dyn        +writebackup
+digraphs        +mksession       +scrollbind      -X11
-dnd             +modify_fname    +signs           -xfontset
-ebcdic          +mouse           +smartindent     -xim
-emacs_tags      -mouseshape      +startuptime     -xpm
+eval            -mouse_dec       +statusline      -xsmp
+ex_extra        -mouse_gpm       -sun_workshop    -xterm_clipboard
+extra_search    -mouse_jsbterm   +syntax          -xterm_save
-farsi           -mouse_netterm   +tag_binary
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X_UNIX  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -L/usr/local/lib -o vim        -lm -lncurses  -liconv -framework Cocoa

Output of YcmDebugInfo

Printing YouCompleteMe debug information...
Error detected while processing function <SNR>64_DebugInfo[2]..<SNR>64_Pyeval:
line    4:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/dong/.vim/bundle/youcompleteme/python/ycm/youcompleteme.py", line 588, in
 DebugInfo
    debug_info += FormatDebugInfoResponse( SendDebugInfoRequest( extra_data ) )
  File "/Users/dong/.vim/bundle/youcompleteme/python/ycm/client/debug_info_request.py",
line 119, in SendDebugInfoRequest
    request.Start()
  File "/Users/dong/.vim/bundle/youcompleteme/python/ycm/client/debug_info_request.py",
line 41, in Start
    display_message = False )
  File "/Users/dong/.vim/bundle/youcompleteme/python/ycm/client/base_request.py", line 1
27, in PostDataToHandler
    BaseRequest.PostDataToHandlerAsync( data, handler, timeout ),
  File "/Users/dong/.vim/bundle/youcompleteme/python/ycm/client/base_request.py", line 1
37, in PostDataToHandlerAsync
    return BaseRequest._TalkToHandlerAsync( data, handler, 'POST', timeout )
  File "/Users/dong/.vim/bundle/youcompleteme/python/ycm/client/base_request.py", line 1
52, in _TalkToHandlerAsync
    return BaseRequest.Session().post(
  File "/Users/dong/.vim/bundle/youcompleteme/python/ycm/client/base_request.py", line 1
96, in Session
    from requests_futures.sessions import FuturesSession
  File "/Users/dong/.vim/bundle/youcompleteme/third_party/requests-futures/requests_futu
res/sessions.py", line 24, in <module>
    from requests import Session
  File "/Users/dong/.vim/bundle/youcompleteme/third_party/requests_deps/requests/request
s/__init__.py", line 95, in <module>
    from urllib3.contrib import pyopenssl
  File "/Users/dong/.vim/bundle/youcompleteme/third_party/requests_deps/urllib3/src/urll
ib3/contrib/pyopenssl.py", line 46, in <module>
    import OpenSSL.SSL
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/OpenS
SL/__init__.py", line 22, in <module>
    import ctypes
  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
E858: Eval did not return a valid python object
-- 0

Contents of YCM, ycmd and completion engine logfiles

Error detected while processing function <SNR>64_ToggleLogs:
line    1:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/dong/.vim/bundle/youcompleteme/python/ycm/youcompleteme.py", line 641, in
 ToggleLogs
    logfiles = self.GetLogfiles()
  File "/Users/dong/.vim/bundle/youcompleteme/python/ycm/youcompleteme.py", line 608, in
 GetLogfiles
    debug_info = SendDebugInfoRequest( extra_data )
  File "/Users/dong/.vim/bundle/youcompleteme/python/ycm/client/debug_info_request.py",
line 119, in SendDebugInfoRequest
    request.Start()
  File "/Users/dong/.vim/bundle/youcompleteme/python/ycm/client/debug_info_request.py",
line 41, in Start
    display_message = False )
  File "/Users/dong/.vim/bundle/youcompleteme/python/ycm/client/base_request.py", line 1
27, in PostDataToHandler
    BaseRequest.PostDataToHandlerAsync( data, handler, timeout ),
  File "/Users/dong/.vim/bundle/youcompleteme/python/ycm/client/base_request.py", line 1
37, in PostDataToHandlerAsync
    return BaseRequest._TalkToHandlerAsync( data, handler, 'POST', timeout )
  File "/Users/dong/.vim/bundle/youcompleteme/python/ycm/client/base_request.py", line 1
52, in _TalkToHandlerAsync
    return BaseRequest.Session().post(
  File "/Users/dong/.vim/bundle/youcompleteme/python/ycm/client/base_request.py", line 1
96, in Session
    from requests_futures.sessions import FuturesSession
  File "/Users/dong/.vim/bundle/youcompleteme/third_party/requests-futures/requests_futu
res/sessions.py", line 24, in <module>
    from requests import Session
  File "/Users/dong/.vim/bundle/youcompleteme/third_party/requests_deps/requests/request
s/__init__.py", line 95, in <module>
    from urllib3.contrib import pyopenssl
  File "/Users/dong/.vim/bundle/youcompleteme/third_party/requests_deps/urllib3/src/urll
ib3/contrib/pyopenssl.py", line 46, in <module>
    import OpenSSL.SSL
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/OpenS
SL/__init__.py", line 22, in <module>
    import ctypes
  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

OS version, distribution, etc.

'Mac Mojave 10.14.2'

@bstaletic
Copy link
Collaborator

Can you do :py import ctypes in vim?

@puremourning
Copy link
Member

puremourning commented Jan 17, 2019 via email

@bstaletic
Copy link
Collaborator

I thought it looked familiar!
#3271
#3200
#3165

@Doffery
Copy link
Author

Doffery commented Jan 20, 2019

Thanks, I reinstall vim with brew.
But I still got
Unexpected exit code -11.

No log, no debug info.

@bstaletic
Copy link
Collaborator

bstaletic commented Jan 20, 2019

Try to rebuild YCM. If that doesn't work, go to gitter.

@Doffery
Copy link
Author

Doffery commented Jan 22, 2019

Problem solved by rebuilding YCM with non-Anaconda python!!! Thanks!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants