{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/python-client/issues/80","repository_url":"https://api.github.com/repos/neovim/python-client","labels_url":"https://api.github.com/repos/neovim/python-client/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/neovim/python-client/issues/80/comments","events_url":"https://api.github.com/repos/neovim/python-client/issues/80/events","html_url":"https://github.com/neovim/python-client/issues/80","id":56381597,"number":80,"title":"Segmentation fault with vim-fugitive/github-issues.vim","user":{"login":"ntnn","id":10514301,"avatar_url":"https://avatars.githubusercontent.com/u/10514301?v=3","gravatar_id":"","url":"https://api.github.com/users/ntnn","html_url":"https://github.com/ntnn","followers_url":"https://api.github.com/users/ntnn/followers","following_url":"https://api.github.com/users/ntnn/following{/other_user}","gists_url":"https://api.github.com/users/ntnn/gists{/gist_id}","starred_url":"https://api.github.com/users/ntnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntnn/subscriptions","organizations_url":"https://api.github.com/users/ntnn/orgs","repos_url":"https://api.github.com/users/ntnn/repos","events_url":"https://api.github.com/users/ntnn/events{/privacy}","received_events_url":"https://api.github.com/users/ntnn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"tarruda","id":842846,"avatar_url":"https://avatars.githubusercontent.com/u/842846?v=3","gravatar_id":"","url":"https://api.github.com/users/tarruda","html_url":"https://github.com/tarruda","followers_url":"https://api.github.com/users/tarruda/followers","following_url":"https://api.github.com/users/tarruda/following{/other_user}","gists_url":"https://api.github.com/users/tarruda/gists{/gist_id}","starred_url":"https://api.github.com/users/tarruda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarruda/subscriptions","organizations_url":"https://api.github.com/users/tarruda/orgs","repos_url":"https://api.github.com/users/tarruda/repos","events_url":"https://api.github.com/users/tarruda/events{/privacy}","received_events_url":"https://api.github.com/users/tarruda/received_events","type":"User","site_admin":false},"milestone":null,"comments":15,"created_at":"2015-02-03T14:06:27Z","updated_at":"2016-04-02T18:44:52Z","closed_at":"2016-04-02T18:44:52Z","body":"When using [vim-fugitive](/tpope/vim-fugitive) with `:Gcommit` or [github-issues.vim](/jaxbot/github-issues.vim) with `:Gissues` it produces the output pasted below, leading into a segfault.\r\n\r\nThe problem also appears with github-issues.vim disabled, and the plugins work fine in Vim 7.4.\r\n\r\nNeovim version compiled today (see paste below), python-client 0.0.26:\r\n```\r\n>pip freeze | grep neovim\r\nneovim==0.0.26\r\n```\r\n\r\nNeovim error output, every second 'Press Enter[...]' line removed:\r\n```\r\nException in thread Thread-5:\r\nTraceback (most recent call last):\r\n  File \"/usr/lib64/python2.7/threading.py\", line 813, in __bootstrap_inner\r\n    self.run()\r\n  File \"<string>\", line 317, in run\r\n  File \"<string>\", line 112, in getUpstreamRepoURI\r\n  File \"<string>\", line 32, in getRepoURI\r\n  File \"/home/ntnn/.local/lib/python2.7/site-packages/neovim/api/nvim.py\", line 239, in buffer\r\n    return self._session.request('vim_get_current_buffer')\r\n  File \"/home/ntnn/.local/lib/python2.7/site-packages/neovim/api/common.py\", line 220, in request\r\n    return walk(self._in, self._session.request(name, *args), self, name,\r\n  File \"/home/ntnn/.local/lib/python2.7/site-packages/neovim/msgpack_rpc/session.py\", line 72, in request\r\n    err, rv = self._yielding_request(method, args)\r\n  File \"/home/ntnn/.local/lib/python2.7/site-packages/neovim/msgpack_rpc/session.py\", line 133, in _yielding_request\r\n    return parent.switch()\r\nAttributeError: 'NoneType' object has no attribute 'switch'\r\nPress ENTER or type command to continue\r\nPress ENTER or type command to continue[1]    17965 segmentation fault (core dumped)  NVIM_PYTHON_LOG_LEVEL='INFO' NVIM_PYTHON_LOG_FILE='neovim.log' nvim\r\n```\r\nNeovim logfile set to info:\r\n```\r\n2015-02-03 13:38:54,030 [WARNING @ async_session.py:_on_message:69] 15024 - Traceback (most recent call last):\r\n  File \"/home/ntnn/.local/lib/python2.7/site-packages/neovim/msgpack_rpc/async_session.py\", line 66, in _on_message\r\n    self._handlers.get(msg[0], self._on_invalid_message)(msg)\r\n  File \"/home/ntnn/.local/lib/python2.7/site-packages/neovim/msgpack_rpc/async_session.py\", line 87, in _on_response\r\n    self._pending_requests.pop(msg[1])(msg[2], msg[3])\r\n  File \"/home/ntnn/.local/lib/python2.7/site-packages/neovim/msgpack_rpc/session.py\", line 129, in response_cb\r\n    gr.switch(err, rv)\r\nerror: cannot switch to a different thread\r\n```\r\nNeovim version:\r\n```\r\n>nvim --version\r\nNVIM 0.0.0-alpha+201502021723 (compiled Feb  3 2015 12:51:44)\r\nCommit: 7751cd21f5ae8952f578a0ccd892e32c95a4ae8a\r\nBuild type: Debug\r\nCompilation: /bin/cc -Wconversion -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -I/home/ntnn/prog/neovim/build/config -I/home/ntnn/prog/neovim/src -I/home/ntnn/prog/neovim/.deps/usr/include -I/home/ntnn/prog/neovim/.deps/usr/include -I/home/ntnn/prog/neovim/.deps/usr/include/luajit-2.0 -I/usr/include -I/home/ntnn/prog/neovim/build/src/nvim/auto -I/home/ntnn/prog/neovim/build/include\r\nCompiled by root@Persephone  Features included (+) or not (-):\r\n+acl             +extra_search    +mouse_dec       +tag_binary\r\n+arabic          +farsi           -mouse_gpm       +tag_old_static\r\n+autocmd         +file_in_path    +mouse_netterm   -tag_any_white\r\n-browse          +find_in_path    +mouse_sgr       +terminfo\r\n+byte_offset     +folding         -mouse_sysmouse  +termresponse\r\n+cindent         -footer          +mouse_urxvt     +textobjects\r\n-clipboard       +fork()          +mouse_xterm     +title\r\n+cmdline_compl   +gettext         +multi_byte      -toolbar\r\n+cmdline_hist    +iconv           +multi_lang      +user_commands\r\n+cmdline_info    +insert_expand   +path_extra      +vertsplit\r\n+comments        +jumplist        +persistent_undo +virtualedit\r\n+conceal         +keymap          +postscript      +visual\r\n+cscope          +langmap         +printer         +visualextra\r\n+cursorbind      +libcall         +profile         +viminfo\r\n+cursorshape     +linebreak       +quickfix        +vreplace\r\n+dialog_con      +lispindent      +reltime         +wildignore\r\n+diff            +listcmds        +rightleft       +wildmenu\r\n+digraphs        +localmap        +scrollbind      +windows\r\n-dnd             +menu            +signs           +writebackup\r\n-ebcdic          +mksession       +smartindent     -X11\r\n-emacs_tags      +modify_fname    +startuptime     -xfontset\r\n+eval            +mouse           +statusline      -xsmp\r\n+ex_extra        -mouseshape      +syntax          -xterm_clipboard\r\n   system vimrc file: \"$VIM/nvimrc\"\r\n     user vimrc file: \"$HOME/.nvimrc\"\r\n 2nd user vimrc file: \"~/.nvim/nvimrc\"\r\n      user exrc file: \"$HOME/.exrc\"\r\n  fall-back for $VIM: \"/usr/local/share/nvim\"\r\n\r\n```\r\n\r\nMaybe this helps too:\r\n\r\nOutput of attached python-repl:\r\n```\r\n>>> nvim.command(':Gcommit')\r\nINFO:neovim.msgpack_rpc.session:'Received error: [0, 'Vim(return):Invalid channel \"1\"']\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/home/ntnn/.local/lib/python2.7/site-packages/neovim/api/nvim.py\", line 121, in command\r\n    return self._session.request('vim_command', string)\r\n  File \"/home/ntnn/.local/lib/python2.7/site-packages/neovim/api/common.py\", line 220, in request\r\n    return walk(self._in, self._session.request(name, *args), self, name,\r\n  File \"/home/ntnn/.local/lib/python2.7/site-packages/neovim/msgpack_rpc/session.py\", line 77, in request\r\n    raise self.error_wrapper(err)\r\nneovim.api.nvim.NvimError: Vim(return):Invalid channel \"1\"\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/neovim/python-client/issues/comments/204771562","html_url":"https://github.com/neovim/python-client/issues/80#issuecomment-204771562","issue_url":"https://api.github.com/repos/neovim/python-client/issues/80","id":204771562,"user":{"login":"bfredl","id":1363104,"avatar_url":"https://avatars.githubusercontent.com/u/1363104?v=3","gravatar_id":"","url":"https://api.github.com/users/bfredl","html_url":"https://github.com/bfredl","followers_url":"https://api.github.com/users/bfredl/followers","following_url":"https://api.github.com/users/bfredl/following{/other_user}","gists_url":"https://api.github.com/users/bfredl/gists{/gist_id}","starred_url":"https://api.github.com/users/bfredl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfredl/subscriptions","organizations_url":"https://api.github.com/users/bfredl/orgs","repos_url":"https://api.github.com/users/bfredl/repos","events_url":"https://api.github.com/users/bfredl/events{/privacy}","received_events_url":"https://api.github.com/users/bfredl/received_events","type":"User","site_admin":false},"created_at":"2016-04-02T18:44:52Z","updated_at":"2016-04-02T18:44:52Z","body":"it is documented now the api is not threadsafe, except for `nvim.async_call`."}}