Closed AnatoleLucet closed 4 years ago
It also seems like a lot of coc process are draining my memory even tho I don't have any vim instance open.
Your CocInfo output seems cut, there's no information on coc version and other relevant data.
Because my vim crashed, I used this command NVIM_COC_LOG_LEVEL=debug NVIM_COC_LOG_FILE=/tmp/coc.log nvim <file>
(that I've found on another issue) so I can get the logs after the crash.
Maybe there's a better way?
Need more info, run :CocInfo just after vim open
@chemzqm there you go:
## versions
vim version: NVIM v0.5.0-dev
node version: v12.18.3
coc.nvim version: 0.0.79-73397d535c
coc.nvim directory: /home/anatole/.vim/plugged/coc.nvim
term: st-256color
platform: linux
## Log of coc.nvim
2020-11-04T17:42:56.682 INFO (pid:68093) [services] - registered service "eslint"
2020-11-04T17:42:56.685 INFO (pid:68093) [services] - eslint langserver state change: stopped => starting
2020-11-04T17:42:57.087 INFO (pid:68093) [services] - registered service "highlight"
2020-11-04T17:42:57.107 WARN (pid:68093) [attach] - Plugin not ready when received "highlight" []
2020-11-04T17:42:57.120 INFO (pid:68093) [language-client-index] - eslint started with 68235
2020-11-04T17:42:57.139 INFO (pid:68093) [language-client-index] - highlight started with 68241
2020-11-04T17:42:57.503 INFO (pid:68093) [services] - registered service "tsserver"
2020-11-04T17:42:57.596 INFO (pid:68093) [plugin] - coc.nvim 0.0.79-73397d535c initialized with node: v12.18.3 after 2766ms
2020-11-04T17:42:57.626 WARN (pid:68093) [watchman] - opendir(/home/anatole/dev/zustand) -> The user limit on the total number of inotify watches was reached; increase the fs.inotify.max_user_watches sysctl. Marking this portion of the tree deleted
To clear this warning, run:
`watchman watch-del /home/anatole/dev/zustand ; watchman watch-project /home/anatole/dev/zustand`
2020-11-04T17:42:57.626 INFO (pid:68093) [watchman] - watchman watching project: /home/anatole/dev/zustand
2020-11-04T17:42:57.628 INFO (pid:68093) [services] - eslint langserver state change: starting => running
2020-11-04T17:42:57.634 INFO (pid:68093) [services] - service eslint started
2020-11-04T17:42:57.652 ERROR (pid:68093) [filesystem-watcher] - watchman initialize failed
2020-11-04T17:42:57.652 ERROR (pid:68093) [filesystem-watcher] - Error: A non-recoverable condition has triggered. Watchman needs your help!
The triggering condition was at timestamp=1604508177: inotify-add-watch(/home/anatole/dev/zustand) -> The user limit on the total number of inotify watches was reached; increase the fs.inotify.max_user_watches sysctl
All requests will continue to fail with this message until you resolve
the underlying problem. You will find more information on fixing this at
https://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch
at BunserBuf.<anonymous> (/home/anatole/.vim/plugged/coc.nvim/build/index.js:39394:23)
at BunserBuf.emit (events.js:315:20)
at BunserBuf.process (/home/anatole/.vim/plugged/coc.nvim/build/index.js:39919:10)
at /home/anatole/.vim/plugged/coc.nvim/build/index.js:39874:12
at processTicksAndRejections (internal/process/task_queues.js:79:11)
2020-11-04T17:42:57.670 INFO (pid:68093) [services] - service tsserver started
2020-11-04T17:42:57.702 ERROR (pid:68093) [filesystem-watcher] - watchman initialize failed
2020-11-04T17:42:57.702 ERROR (pid:68093) [filesystem-watcher] - Error: A non-recoverable condition has triggered. Watchman needs your help!
The triggering condition was at timestamp=1604508177: inotify-add-watch(/home/anatole/dev/zustand) -> The user limit on the total number of inotify watches was reached; increase the fs.inotify.max_user_watches sysctl
All requests will continue to fail with this message until you resolve
the underlying problem. You will find more information on fixing this at
https://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch
at BunserBuf.<anonymous> (/home/anatole/.vim/plugged/coc.nvim/build/index.js:39394:23)
at BunserBuf.emit (events.js:315:20)
at BunserBuf.process (/home/anatole/.vim/plugged/coc.nvim/build/index.js:39919:10)
at /home/anatole/.vim/plugged/coc.nvim/build/index.js:39874:12
at processTicksAndRejections (internal/process/task_queues.js:79:11)
2020-11-04T17:42:57.708 ERROR (pid:68093) [filesystem-watcher] - watchman initialize failed
2020-11-04T17:42:57.709 ERROR (pid:68093) [filesystem-watcher] - Error: A non-recoverable condition has triggered. Watchman needs your help!
The triggering condition was at timestamp=1604508177: inotify-add-watch(/home/anatole/dev/zustand) -> The user limit on the total number of inotify watches was reached; increase the fs.inotify.max_user_watches sysctl
All requests will continue to fail with this message until you resolve
the underlying problem. You will find more information on fixing this at
https://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch
at BunserBuf.<anonymous> (/home/anatole/.vim/plugged/coc.nvim/build/index.js:39394:23)
at BunserBuf.emit (events.js:315:20)
at BunserBuf.process (/home/anatole/.vim/plugged/coc.nvim/build/index.js:39919:10)
at /home/anatole/.vim/plugged/coc.nvim/build/index.js:39874:12
at processTicksAndRejections (internal/process/task_queues.js:79:11)
2020-11-04T17:42:57.807 ERROR (pid:68093) [filesystem-watcher] - watchman initialize failed
2020-11-04T17:42:57.808 ERROR (pid:68093) [filesystem-watcher] - Error: A non-recoverable condition has triggered. Watchman needs your help!
The triggering condition was at timestamp=1604508177: inotify-add-watch(/home/anatole/dev/zustand) -> The user limit on the total number of inotify watches was reached; increase the fs.inotify.max_user_watches sysctl
All requests will continue to fail with this message until you resolve
the underlying problem. You will find more information on fixing this at
https://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch
at BunserBuf.<anonymous> (/home/anatole/.vim/plugged/coc.nvim/build/index.js:39394:23)
at BunserBuf.emit (events.js:315:20)
at BunserBuf.process (/home/anatole/.vim/plugged/coc.nvim/build/index.js:39919:10)
at /home/anatole/.vim/plugged/coc.nvim/build/index.js:39874:12
at processTicksAndRejections (internal/process/task_queues.js:79:11)
2020-11-04T17:42:57.864 ERROR (pid:68093) [filesystem-watcher] - watchman initialize failed
2020-11-04T17:42:57.864 ERROR (pid:68093) [filesystem-watcher] - Error: A non-recoverable condition has triggered. Watchman needs your help!
The triggering condition was at timestamp=1604508177: inotify-add-watch(/home/anatole/dev/zustand) -> The user limit on the total number of inotify watches was reached; increase the fs.inotify.max_user_watches sysctl
All requests will continue to fail with this message until you resolve
the underlying problem. You will find more information on fixing this at
https://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch
at BunserBuf.<anonymous> (/home/anatole/.vim/plugged/coc.nvim/build/index.js:39394:23)
at BunserBuf.emit (events.js:315:20)
at BunserBuf.process (/home/anatole/.vim/plugged/coc.nvim/build/index.js:39919:10)
at /home/anatole/.vim/plugged/coc.nvim/build/index.js:39874:12
at processTicksAndRejections (internal/process/task_queues.js:79:11)
2020-11-04T17:42:57.895 ERROR (pid:68093) [filesystem-watcher] - watchman initialize failed
2020-11-04T17:42:57.895 ERROR (pid:68093) [filesystem-watcher] - Error: A non-recoverable condition has triggered. Watchman needs your help!
The triggering condition was at timestamp=1604508177: inotify-add-watch(/home/anatole/dev/zustand) -> The user limit on the total number of inotify watches was reached; increase the fs.inotify.max_user_watches sysctl
All requests will continue to fail with this message until you resolve
the underlying problem. You will find more information on fixing this at
https://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch
at BunserBuf.<anonymous> (/home/anatole/.vim/plugged/coc.nvim/build/index.js:39394:23)
at BunserBuf.emit (events.js:315:20)
at BunserBuf.process (/home/anatole/.vim/plugged/coc.nvim/build/index.js:39919:10)
at /home/anatole/.vim/plugged/coc.nvim/build/index.js:39874:12
at processTicksAndRejections (internal/process/task_queues.js:79:11)
2020-11-04T17:42:57.904 ERROR (pid:68093) [filesystem-watcher] - watchman initialize failed
2020-11-04T17:42:57.905 ERROR (pid:68093) [filesystem-watcher] - Error: A non-recoverable condition has triggered. Watchman needs your help!
The triggering condition was at timestamp=1604508177: inotify-add-watch(/home/anatole/dev/zustand) -> The user limit on the total number of inotify watches was reached; increase the fs.inotify.max_user_watches sysctl
All requests will continue to fail with this message until you resolve
the underlying problem. You will find more information on fixing this at
https://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch
at BunserBuf.<anonymous> (/home/anatole/.vim/plugged/coc.nvim/build/index.js:39394:23)
at BunserBuf.emit (events.js:315:20)
at BunserBuf.process (/home/anatole/.vim/plugged/coc.nvim/build/index.js:39919:10)
at /home/anatole/.vim/plugged/coc.nvim/build/index.js:39874:12
at processTicksAndRejections (internal/process/task_queues.js:79:11)
2020-11-04T17:42:57.911 ERROR (pid:68093) [filesystem-watcher] - watchman initialize failed
2020-11-04T17:42:57.911 ERROR (pid:68093) [filesystem-watcher] - Error: A non-recoverable condition has triggered. Watchman needs your help!
The triggering condition was at timestamp=1604508177: inotify-add-watch(/home/anatole/dev/zustand) -> The user limit on the total number of inotify watches was reached; increase the fs.inotify.max_user_watches sysctl
All requests will continue to fail with this message until you resolve
the underlying problem. You will find more information on fixing this at
https://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch
at BunserBuf.<anonymous> (/home/anatole/.vim/plugged/coc.nvim/build/index.js:39394:23)
at BunserBuf.emit (events.js:315:20)
at BunserBuf.process (/home/anatole/.vim/plugged/coc.nvim/build/index.js:39919:10)
at /home/anatole/.vim/plugged/coc.nvim/build/index.js:39874:12
at processTicksAndRejections (internal/process/task_queues.js:79:11)
request error 0 on "nvim_call_function" [ 'coc#util#win_gotoid', [ 1012 ] ] Vim(let):E315: ml_get: invalid lnum: 1 Error
Crash should be caused by this error, but don't know how could it happens.
Check :h coc_process_pid
for kill node process on VimLeave
Check :h coc_process_pid for kill node process on VimLeave
This is for the memory usage, right?
NeoVim is crashing for me, randomly when CoC attempts to display popup windows for warnings/errors (when my cursor is over the offending code).
(PS: this started happening recently, withing the past few days)
Unable to reproduce, try minimal vimrc or debug your neovim.
@jrop do you have any CocAction
in your vimrc ? https://github.com/neoclide/coc.nvim/issues/2557
I have connection lost issue with latest neovim when typing fast, should be another issue, but we need avoid it if possible.
@chemzqm it also seems like the crashes happens when typing relatively fast
I've also been getting segfaults recently. The only stuff in :CocInfo
that seemed like it could be relevant was the following:
2020-11-05T15:31:36.091 ERROR (pid:99961) [node-client] - request error 0 on "nvim_call_function" [ 'coc#util#pumvisible', [] ] Pum not visible Error
at NvimTransport.resumeNotification (/home/ben/.local/share/nvim/plugged/coc.nvim/build/index.js:15742:21)
at NeovimClient.resumeNotification (/home/ben/.local/share/nvim/plugged/coc.nvim/build/index.js:12004:47)
at Floating.showDocumentationFloating (/home/ben/.local/share/nvim/plugged/coc.nvim/build/index.js:87327:30)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Floating.show (/home/ben/.local/share/nvim/plugged/coc.nvim/build/index.js:87313:9)
at async Completion.onPumChange (/home/ben/.local/share/nvim/plugged/coc.nvim/build/index.js:42675:13)
Versions:
## versions
vim version: NVIM v0.4.4
node version: v14.5.0
coc.nvim version: 0.0.79-3e5fbe3a93
coc.nvim directory: /home/ben/.local/share/nvim/plugged/coc.nvim
term: xterm-256color
platform: linux
I've reverted CoC to this commit: 047a87b01d7d2df2ee1f08ef988ef419051778c1
I have not had any issues since reverting. I'm hoping to get some time to perform a git bisect
, but today I've been too busy to actually perform that.
I've narrowed this problem down: for me other programs were hogging memory, causing neovim to not be able to allocate memory.
Possibly related: neovim/neovim#13208
I've changed BufUnload
event from request to notification and make bufhidden
option to hidden
for buffer of reuse window.
Should be fixed now, upload the log with :CocInfo
if it still happens.
This error just returned for me again:
Error detected while processing CursorHold Autocommands for "*":
E16: Invalid range: silent call CocActionAsync('highlight')
Press ENTER or type command to continue
Error detected while processing CursorHold Autocommands for "*":
E16: Invalid range: call gitgutter#process_buffer(bufnr(''), 0)
Press ENTER or type command to continue
Error detected while processing CursorHold Autocommands for "*":
E16: Invalid range: call coc#float#check_related()
Press ENTER or type command to continue
Error detected while processing CursorHold Autocommands for "*":
E16: Invalid range: call s:Autocmd('CursorHold', +expand('<abuf>'))
Press ENTER or type command to continue
Error detected while processing CursorHold Autocommands for "*":
E16: Invalid range: call <sid>ws_refresh()
Press ENTER or type command to continuefish: 'nvim -S Session.vim' terminated by signal SIGSEGV (Address boundary error)
I'll try updating and see if that helps.
@jrop upgrade neovim or use stable release
Result from CocInfo
Describe the bug
My vim randomly crashes when auto completing.
Reproduce the bug
We will close your issue when you don't provide minimal vimrc and we can't reproduce it
I was able to have the issue by only plugging coc.nvim using vimplug in my vimrc:
Screenshots (optional)