neoclide / coc.nvim

Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Other
24.47k stars 960 forks source link

Randomly crashes nvim when auto completing #2556

Closed AnatoleLucet closed 4 years ago

AnatoleLucet commented 4 years ago

Result from CocInfo

2020-11-04T15:46:54.294 DEBUG (pid:28492) [workspace] - buffer created 2
2020-11-04T15:46:54.297 DEBUG (pid:28492) [workspace] - buffer created 3
2020-11-04T15:46:54.298 DEBUG (pid:28492) [events] - Event: BufEnter [ 2 ]
2020-11-04T15:46:54.309 DEBUG (pid:28492) [events] - Event: BufWinEnter [ 2, 1000 ]
2020-11-04T15:46:54.367 DEBUG (pid:28492) [extensions] - activate: coc-emmet
2020-11-04T15:46:54.391 INFO (pid:28492) [services] - registered service "eslint"
2020-11-04T15:46:54.392 DEBUG (pid:28492) [services] - starting service: eslint
2020-11-04T15:46:54.392 INFO (pid:28492) [services] - eslint langserver state change: stopped => starting
2020-11-04T15:46:54.393 DEBUG (pid:28492) [extensions] - activate: coc-eslint
2020-11-04T15:46:54.661 DEBUG (pid:28492) [extensions] - activate: coc-explorer
2020-11-04T15:46:54.715 INFO (pid:28492) [language-client-index] - eslint started with 28614
2020-11-04T15:46:54.756 DEBUG (pid:28492) [languages] - created service source semantic-commit
2020-11-04T15:46:54.756 DEBUG (pid:28492) [extensions] - activate: coc-git
2020-11-04T15:46:54.778 INFO (pid:28492) [services] - registered service "highlight"
2020-11-04T15:46:54.780 DEBUG (pid:28492) [extensions] - activate: coc-highlight
2020-11-04T15:46:54.791 WARN (pid:28492) [attach] - Plugin not ready when received "highlight" []
2020-11-04T15:46:54.791 DEBUG (pid:28492) [events] - Event: CursorHold [ 2 ]
2020-11-04T15:46:54.794 DEBUG (pid:28492) [extensions] - activate: coc-pairs
2020-11-04T15:46:55.161 DEBUG (pid:28492) [extensions] - activate: coc-prettier
2020-11-04T15:46:55.193 DEBUG (pid:28492) [languages] - created service source snippets
2020-11-04T15:46:55.194 DEBUG (pid:28492) [languages] - created service source snippets-source
2020-11-04T15:46:55.195 DEBUG (pid:28492) [extensions] - activate: coc-snippets
2020-11-04T15:46:55.238 INFO (pid:28492) [services] - registered service "tsserver"
2020-11-04T15:46:55.260 DEBUG (pid:28492) [extensions] - activate: coc-tsserver
2020-11-04T15:46:55.286 INFO (pid:28492) [language-client-index] - highlight started with 28634
2020-11-04T15:46:55.307 DEBUG (pid:28492) [languages] - created service source yank
2020-11-04T15:46:55.307 DEBUG (pid:28492) [extensions] - activate: coc-yank
2020-11-04T15:46:55.312 INFO (pid:28492) [plugin] - coc.nvim 0.0.79-73397d535c initialized with node: v12.18.3 after 1564ms
2020-11-04T15:46:55.332 INFO (pid:28492) [services] - eslint langserver state change: starting => running
2020-11-04T15:46:55.341 INFO (pid:28492) [services] - service eslint started
2020-11-04T15:46:55.372 DEBUG (pid:28492) [languages] - created service source tsserver-typescript
2020-11-04T15:46:55.372 DEBUG (pid:28492) [languages] - created service source typescript-directive
2020-11-04T15:46:55.378 DEBUG (pid:28492) [languages] - created service source tsserver-javascript
2020-11-04T15:46:55.378 DEBUG (pid:28492) [languages] - created service source javascript-directive
2020-11-04T15:46:55.380 INFO (pid:28492) [services] - service tsserver started
2020-11-04T15:46:55.749 DEBUG (pid:28492) [events] - Event: Command [ 'explorer.internal.didVimEvent' ]
2020-11-04T15:46:55.848 DEBUG (pid:28492) [events] - Event: Command [ 'explorer.internal.didVimEvent' ]
2020-11-04T15:46:55.865 DEBUG (pid:28492) [events] - Event: Command [ 'explorer.internal.didVimEvent' ]
2020-11-04T15:46:55.969 INFO (pid:28492) [watchman] - watchman watching project: /home/anatole/dev/zustand
2020-11-04T15:46:57.710 DEBUG (pid:28492) [events] - Event: CursorMoved [ 2, [ 147, 5 ] ]
2020-11-04T15:46:57.841 DEBUG (pid:28492) [events] - Event: CursorMoved [ 2, [ 146, 6 ] ]
2020-11-04T15:46:58.543 DEBUG (pid:28492) [events] - Event: Command [ 'prettier.formatFile' ]
2020-11-04T15:46:59.059 DEBUG (pid:28492) [events] - Event: CursorHold [ 2 ]
2020-11-04T15:46:59.060 DEBUG (pid:28492) [events] - Event: CursorMoved [ 2, [ 142, 6 ] ]
2020-11-04T15:46:59.061 DEBUG (pid:28492) [events] - Event: TextChanged [ 2, 3 ]
2020-11-04T15:46:59.230 DEBUG (pid:28492) [events] - Event: Command [ 'explorer.internal.didVimEvent' ]
2020-11-04T15:46:59.263 DEBUG (pid:28492) [events] - Event: Command [ 'explorer.internal.didVimEvent' ]
2020-11-04T15:46:59.477 DEBUG (pid:28492) [events] - Event: Command [ 'explorer.internal.didVimEvent' ]
2020-11-04T15:46:59.526 DEBUG (pid:28492) [events] - Event: BufWinLeave [ 4, 1003 ]
2020-11-04T15:46:59.528 DEBUG (pid:28492) [events] - Event: BufUnload [ 4 ]
2020-11-04T15:46:59.528 DEBUG (pid:28492) [workspace] - buffer unload 4
2020-11-04T15:46:59.558 DEBUG (pid:28492) [events] - Event: Command [ 'explorer.internal.didVimEvent' ]
2020-11-04T15:46:59.701 DEBUG (pid:28492) [events] - Event: Command [ 'explorer.internal.didVimEvent' ]
2020-11-04T15:46:59.925 DEBUG (pid:28492) [events] - Event: CursorMoved [ 2, [ 143, 6 ] ]
2020-11-04T15:47:00.060 DEBUG (pid:28492) [events] - Event: CursorMoved [ 2, [ 144, 6 ] ]
2020-11-04T15:47:00.301 DEBUG (pid:28492) [events] - Event: CursorMoved [ 2, [ 145, 6 ] ]
2020-11-04T15:47:00.557 DEBUG (pid:28492) [events] - Event: CursorMoved [ 2, [ 146, 6 ] ]
2020-11-04T15:47:01.066 DEBUG (pid:28492) [events] - Event: CursorHold [ 2 ]
2020-11-04T15:47:02.438 DEBUG (pid:28492) [events] - Event: InsertEnter [ 2 ]
2020-11-04T15:47:02.455 DEBUG (pid:28492) [events] - Event: CursorMovedI [ 2, [ 146, 5 ] ]
2020-11-04T15:47:02.457 DEBUG (pid:28492) [events] - Event: TextChangedI [ 2, { lnum: 146, col: 5, changedtick: 5, pre: '\t\t\t\t' } ]
2020-11-04T15:47:02.829 DEBUG (pid:28492) [events] - Event: CursorHoldI [ 2 ]
2020-11-04T15:47:02.835 DEBUG (pid:28492) [events] - Event: InsertCharPre [ 'c' ]
2020-11-04T15:47:02.846 DEBUG (pid:28492) [events] - Event: CursorMovedI [ 2, [ 146, 6 ] ]
2020-11-04T15:47:02.847 DEBUG (pid:28492) [events] - Event: TextChangedI [ 2, { lnum: 146, col: 6, changedtick: 6, pre: '\t\t\t\tc' } ]
2020-11-04T15:47:02.891 DEBUG (pid:28492) [events] - Event: InsertCharPre [ 'o' ]
2020-11-04T15:47:02.911 DEBUG (pid:28492) [events] - Event: CursorMovedI [ 2, [ 146, 7 ] ]
2020-11-04T15:47:02.911 DEBUG (pid:28492) [events] - Event: TextChangedI [ 2, { lnum: 146, col: 7, changedtick: 7, pre: '\t\t\t\tco' } ]
2020-11-04T15:47:02.949 DEBUG (pid:28492) [completion] - trigger completion with {
  word: 'co',
  bufnr: 2,
  col: 4,
  synname: 'typescriptBlock',
  filepath: '/home/anatole/dev/zustand/src/middleware.ts',
  blacklist: [],
  line: '\t\t\t\tco',
  filetype: 'typescript',
  linenr: 146,
  input: 'co',
  colnr: 7,
  changedtick: 7,
  triggerCharacter: 'c'
}
2020-11-04T15:47:02.951 DEBUG (pid:28492) [completion] - trigger completion with {
  word: 'co',
  bufnr: 2,
  col: 4,
  synname: 'typescriptBlock',
  filepath: '/home/anatole/dev/zustand/src/middleware.ts',
  blacklist: [],
  line: '\t\t\t\tco',
  filetype: 'typescript',
  linenr: 146,
  input: 'co',
  colnr: 7,
  changedtick: 7,
  triggerCharacter: 'o'
}
2020-11-04T15:47:03.015 DEBUG (pid:28492) [completion-complete] - Source "around" takes 2ms
2020-11-04T15:47:03.016 DEBUG (pid:28492) [completion-complete] - Source "buffer" takes 3ms
2020-11-04T15:47:03.016 DEBUG (pid:28492) [completion-complete] - Source "file" takes 2ms
2020-11-04T15:47:03.016 DEBUG (pid:28492) [completion-complete] - Source "typescript-directive" takes 3ms
2020-11-04T15:47:03.021 DEBUG (pid:28492) [completion-complete] - Source "snippets" takes 12ms
2020-11-04T15:47:03.022 DEBUG (pid:28492) [completion-complete] - Source "yank" cancelled
2020-11-04T15:47:03.022 DEBUG (pid:28492) [completion-complete] - Source "tsserver-typescript" cancelled
2020-11-04T15:47:03.026 DEBUG (pid:28492) [completion-complete] - Source "around" takes 1ms
2020-11-04T15:47:03.026 DEBUG (pid:28492) [completion-complete] - Source "buffer" takes 1ms
2020-11-04T15:47:03.026 DEBUG (pid:28492) [completion-complete] - Source "file" takes 0ms
2020-11-04T15:47:03.027 DEBUG (pid:28492) [completion-complete] - Source "typescript-directive" takes 2ms
2020-11-04T15:47:03.029 DEBUG (pid:28492) [completion-complete] - Source "snippets" takes 5ms
2020-11-04T15:47:03.036 DEBUG (pid:28492) [completion-complete] - Source "yank" takes 12ms
2020-11-04T15:47:03.054 DEBUG (pid:28492) [events] - Event: InsertCharPre [ 'n' ]
2020-11-04T15:47:03.068 DEBUG (pid:28492) [events] - Event: CursorMovedI [ 2, [ 146, 8 ] ]
2020-11-04T15:47:03.069 DEBUG (pid:28492) [events] - Event: TextChangedI [ 2, { lnum: 146, col: 8, changedtick: 8, pre: '\t\t\t\tcon' } ]
2020-11-04T15:47:03.077 DEBUG (pid:28492) [events] - Event: MenuPopupChanged [
  {
    col: 14,
    row: 65,
    scrollbar: false,
    completed_item: {
      word: 'const',
      menu: '[YANK]',
      user_data: '{"cid":0,"source":"yank","index":1}',
      info: '``` typescript\nconst\n```',
      kind: 'S',
      abbr: 'const'
    },
    width: 53,
    height: 7,
    size: 7
  },
  64
]
2020-11-04T15:47:03.080 DEBUG (pid:28492) [events] - Event: TextChangedP [ 2, { lnum: 146, col: 8, changedtick: 8, pre: '\t\t\t\tcon' } ]
2020-11-04T15:47:03.134 DEBUG (pid:28492) [events] - Event: InsertCharPre [ 's' ]
2020-11-04T15:47:03.154 DEBUG (pid:28492) [events] - Event: MenuPopupChanged [
  {
    col: 14,
    row: 65,
    scrollbar: false,
    completed_item: {
      word: 'const',
      menu: '[YANK]',
      user_data: '{"cid":0,"source":"yank","index":1}',
      info: '``` typescript\nconst\n```',
      kind: 'S',
      abbr: 'const'
    },
    width: 53,
    height: 7,
    size: 7
  },
  64
]
2020-11-04T15:47:03.154 DEBUG (pid:28492) [events] - Event: TextChangedP [ 2, { lnum: 146, col: 9, changedtick: 17, pre: '\t\t\t\tcons' } ]
2020-11-04T15:47:03.159 DEBUG (pid:28492) [events] - Event: CompleteDone [ {} ]
2020-11-04T15:47:03.189 DEBUG (pid:28492) [completion-complete] - Source "tsserver-typescript" takes 165ms
2020-11-04T15:47:03.190 INFO (pid:28492) [completion-complete] - Results from: snippets,yank,around,buffer,tsserver-typescript
2020-11-04T15:47:03.206 DEBUG (pid:28492) [events] - Event: MenuPopupChanged [
  {
    col: 14,
    row: 65,
    scrollbar: false,
    completed_item: {
      word: 'const',
      menu: '[YANK]',
      user_data: '{"cid":0,"source":"yank","index":1}',
      info: '``` typescript\nconst\n```',
      kind: 'S',
      abbr: 'const'
    },
    width: 53,
    height: 4,
    size: 4
  },
  64
]
2020-11-04T15:47:03.206 DEBUG (pid:28492) [events] - Event: CompleteDone [ {} ]
2020-11-04T15:47:03.206 DEBUG (pid:28492) [events] - Event: MenuPopupChanged [
  {
    col: 14,
    row: 54,
    scrollbar: false,
    completed_item: {
      word: 'const',
      menu: '[TSC]',
      user_data: '{"cid":1604501223,"source":"tsserver-typescript","index":100}',
      info: '',
      kind: 'k',
      abbr: 'const'
    },
    width: 53,
    height: 10,
    size: 10
  },
  64
]
2020-11-04T15:47:03.267 DEBUG (pid:28492) [events] - Event: InsertCharPre [ 'o' ]
2020-11-04T15:47:03.282 DEBUG (pid:28492) [events] - Event: MenuPopupChanged [
  {
    col: 14,
    row: 54,
    scrollbar: false,
    completed_item: {
      word: 'const',
      menu: '[TSC]',
      user_data: '{"cid":1604501223,"source":"tsserver-typescript","index":100}',
      info: '',
      kind: 'k',
      abbr: 'const'
    },
    width: 53,
    height: 10,
    size: 10
  },
  64
]
2020-11-04T15:47:03.283 DEBUG (pid:28492) [events] - Event: TextChangedP [ 2, { lnum: 146, col: 10, changedtick: 28, pre: '\t\t\t\tconso' } ]
2020-11-04T15:47:03.289 DEBUG (pid:28492) [events] - Event: CompleteDone [ {} ]
2020-11-04T15:47:03.353 DEBUG (pid:28492) [events] - Event: MenuPopupChanged [
  {
    col: 14,
    row: 65,
    scrollbar: false,
    completed_item: {
      word: 'console',
      menu: '[TSC]',
      user_data: '{"cid":1604501223,"source":"tsserver-typescript","index":99}',
      info: '',
      kind: 'v',
      abbr: 'console'
    },
    width: 53,
    height: 4,
    size: 4
  },
  64
]
2020-11-04T15:47:03.358 DEBUG (pid:28492) [events] - Event: BufWinLeave [ 7, 1006 ]
2020-11-04T15:47:03.359 DEBUG (pid:28492) [events] - Event: BufUnload [ 7 ]
2020-11-04T15:47:03.359 DEBUG (pid:28492) [workspace] - buffer unload 7
2020-11-04T15:47:03.361 DEBUG (pid:28492) [events] - Event: Command [ 'explorer.internal.didVimEvent' ]
2020-11-04T15:47:03.402 DEBUG (pid:28492) [events] - Event: InsertCharPre [ 'l' ]
2020-11-04T15:47:03.416 DEBUG (pid:28492) [events] - Event: MenuPopupChanged [
  {
    col: 14,
    row: 65,
    scrollbar: false,
    completed_item: {
      word: 'console',
      menu: '[TSC]',
      user_data: '{"cid":1604501223,"source":"tsserver-typescript","index":99}',
      info: '',
      kind: 'v',
      abbr: 'console'
    },
    width: 53,
    height: 4,
    size: 4
  },
  64
]
2020-11-04T15:47:03.417 DEBUG (pid:28492) [events] - Event: TextChangedP [ 2, { lnum: 146, col: 11, changedtick: 41, pre: '\t\t\t\tconsol' } ]
2020-11-04T15:47:03.429 DEBUG (pid:28492) [events] - Event: CompleteDone [ {} ]
2020-11-04T15:47:03.447 DEBUG (pid:28492) [events] - Event: MenuPopupChanged [
  {
    col: 14,
    row: 65,
    scrollbar: false,
    completed_item: {
      word: 'console',
      menu: '[TSC]',
      user_data: '{"cid":1604501223,"source":"tsserver-typescript","index":99}',
      info: '',
      kind: 'v',
      abbr: 'console'
    },
    width: 53,
    height: 3,
    size: 3
  },
  64
]
2020-11-04T15:47:03.462 DEBUG (pid:28492) [events] - Event: InsertCharPre [ 'e' ]
2020-11-04T15:47:03.474 DEBUG (pid:28492) [events] - Event: MenuPopupChanged [
  {
    col: 14,
    row: 65,
    scrollbar: false,
    completed_item: {
      word: 'console',
      menu: '[TSC]',
      user_data: '{"cid":1604501223,"source":"tsserver-typescript","index":99}',
      info: '',
      kind: 'v',
      abbr: 'console'
    },
    width: 53,
    height: 3,
    size: 3
  },
  64
]
2020-11-04T15:47:03.474 DEBUG (pid:28492) [events] - Event: TextChangedP [ 2, { lnum: 146, col: 12, changedtick: 56, pre: '\t\t\t\tconsole' } ]
2020-11-04T15:47:03.477 DEBUG (pid:28492) [events] - Event: CompleteDone [ {} ]
2020-11-04T15:47:03.478 DEBUG (pid:28492) [events] - Event: MenuPopupChanged [
  {
    col: 14,
    row: 65,
    scrollbar: false,
    completed_item: {
      word: 'console',
      menu: '[TSC]',
      user_data: '{"cid":1604501223,"source":"tsserver-typescript","index":99}',
      info: '',export NVIM_COC_LOG_LEVEL=debug && export NVIM_COC_LOG_FILE=/tmp/coc.log
      kind: 'v',
      abbr: 'console'
    },
    width: 53,
    height: 3,
    size: 3
  },
  64
]
2020-11-04T15:47:03.708 DEBUG (pid:28492) [events] - Event: CompleteDone [ {} ]
2020-11-04T15:47:03.709 DEBUG (pid:28492) [events] - Event: InsertCharPre [ '.' ]
2020-11-04T15:47:03.730 DEBUG (pid:28492) [events] - Event: CursorMovedI [ 2, [ 146, 13 ] ]
2020-11-04T15:47:03.732 DEBUG (pid:28492) [events] - Event: TextChangedI [ 2, { lnum: 146, col: 13, changedtick: 57, pre: '\t\t\t\tconsole.' } ]
2020-11-04T15:47:03.755 DEBUG (pid:28492) [completion] - trigger completion with {
  word: '',
  bufnr: 2,
  col: 12,
  synname: '',
  filepath: '/home/anatole/dev/zustand/src/middleware.ts',
  blacklist: [],
  line: '\t\t\t\tconsole.',
  filetype: 'typescript',
  linenr: 146,
  input: '',
  colnr: 13,
  changedtick: 57,
  triggerCharacter: '.'
}
2020-11-04T15:47:03.799 ERROR (pid:28492) [node-client] - request error 0 on "nvim_call_function" [ 'coc#util#pumvisible', [] ] Pum not visible Error
    at NvimTransport.resumeNotification (/home/anatole/.vim/plugged/coc.nvim/build/index.js:15742:21)
    at NeovimClient.resumeNotification (/home/anatole/.vim/plugged/coc.nvim/build/index.js:12004:47)
    at Floating.showDocumentationFloating (/home/anatole/.vim/plugged/coc.nvim/build/index.js:87720:30)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Floating.show (/home/anatole/.vim/plugged/coc.nvim/build/index.js:87706:9)
    at async Completion.onPumChange (/home/anatole/.vim/plugged/coc.nvim/build/index.js:43081:13)
2020-11-04T15:47:03.840 DEBUG (pid:28492) [completion-complete] - Source "tsserver-typescript" takes 33ms
2020-11-04T15:47:03.840 INFO (pid:28492) [completion-complete] - Results from: tsserver-typescript
2020-11-04T15:47:03.846 DEBUG (pid:28492) [events] - Event: MenuPopupChanged [
  {
    col: 22,
    row: 39,
    scrollbar: false,
    completed_item: {
      word: 'warn',
      menu: '[TSC]',
      user_data: '{"cid":1604501223,"source":"tsserver-typescript","index":24}',
      info: '',
      kind: 'f',
      abbr: 'warn~'
    },
    width: 24,
    height: 25,
    size: 25
  },
  64
]
2020-11-04T15:47:03.847 DEBUG (pid:28492) [events] - Event: TextChangedP [ 2, { lnum: 146, col: 13, changedtick: 57, pre: '\t\t\t\tconsole.' } ]
2020-11-04T15:47:05.307 DEBUG (pid:28492) [events] - Event: InsertCharPre [ 'e' ]
2020-11-04T15:47:05.329 DEBUG (pid:28492) [events] - Event: MenuPopupChanged [
  {
    col: 22,
    row: 39,
    scrollbar: false,
    completed_item: {
      word: 'warn',
      menu: '[TSC]',
      user_data: '{"cid":1604501223,"source":"tsserver-typescript","index":24}',
      info: '',
      kind: 'f',
      abbr: 'warn~'
    },
    width: 24,
    height: 25,
    size: 25
  },
  64
]
2020-11-04T15:47:05.330 DEBUG (pid:28492) [events] - Event: TextChangedP [
  2,
  { lnum: 146, col: 14, changedtick: 60, pre: '\t\t\t\tconsole.e' }
]
2020-11-04T15:47:05.335 DEBUG (pid:28492) [events] - Event: CompleteDone [ {} ]
2020-11-04T15:47:05.385 DEBUG (pid:28492) [events] - Event: MenuPopupChanged [
  {
    col: 22,
    row: 46,
    scrollbar: false,
    completed_item: {
      word: 'error',
      menu: '[TSC]',
      user_data: '{"cid":1604501223,"source":"tsserver-typescript","index":8}',
      info: '',
      kind: 'f',
      abbr: 'error~'
    },
    width: 24,
    height: 18,
    size: 18
  },
  64
]
2020-11-04T15:47:05.390 DEBUG (pid:28492) [events] - Event: BufWinLeave [ 9, 1008 ]
2020-11-04T15:47:05.390 DEBUG (pid:28492) [events] - Event: BufUnload [ 9 ]
2020-11-04T15:47:05.391 DEBUG (pid:28492) [workspace] - buffer unload 9
2020-11-04T15:47:05.392 DEBUG (pid:28492) [events] - Event: Command [ 'explorer.internal.didVimEvent' ]
2020-11-04T15:47:05.495 DEBUG (pid:28492) [events] - Event: InsertCharPre [ 'r' ]
2020-11-04T15:47:05.508 DEBUG (pid:28492) [events] - Event: MenuPopupChanged [
  {
    col: 22,
    row: 46,
    scrollbar: false,
    completed_item: {
      word: 'error',
      menu: '[TSC]',
      user_data: '{"cid":1604501223,"source":"tsserver-typescript","index":8}',
      info: '',
      kind: 'f',
      abbr: 'error~'
    },
    width: 24,
    height: 18,
    size: 18
  },
  64
]
2020-11-04T15:47:05.509 DEBUG (pid:28492) [events] - Event: TextChangedP [
  2,
  { lnum: 146, col: 15, changedtick: 65, pre: '\t\t\t\tconsole.er' }
]
2020-11-04T15:47:05.513 DEBUG (pid:28492) [events] - Event: CompleteDone [ {} ]
2020-11-04T15:47:05.532 DEBUG (pid:28492) [events] - Event: MenuPopupChanged [
  {
    col: 22,
    row: 65,
    scrollbar: false,
    completed_item: {
      word: 'error',
      menu: '[TSC]',
      user_data: '{"cid":1604501223,"source":"tsserver-typescript","index":8}',
      info: '',
      kind: 'f',
      abbr: 'error~'
    },
    width: 16,
    height: 2,
    size: 2
  },
  64
]
2020-11-04T15:47:05.677 DEBUG (pid:28492) [events] - Event: InsertCharPre [ 'r' ]
2020-11-04T15:47:05.692 DEBUG (pid:28492) [events] - Event: MenuPopupChanged [
  {
    col: 22,
    row: 65,
    scrollbar: false,
    completed_item: {
      word: 'error',
      menu: '[TSC]',
      user_data: '{"cid":1604501223,"source":"tsserver-typescript","index":8}',
      info: '',
      kind: 'f',
      abbr: 'error~'
    },
    width: 16,
    height: 2,
    size: 2
  },
  64
]
2020-11-04T15:47:05.693 DEBUG (pid:28492) [events] - Event: TextChangedP [
  2,
  { lnum: 146, col: 16, changedtick: 72, pre: '\t\t\t\tconsole.err' }
]
2020-11-04T15:47:05.696 DEBUG (pid:28492) [events] - Event: CompleteDone [ {} ]
2020-11-04T15:47:05.741 DEBUG (pid:28492) [events] - Event: MenuPopupChanged [
  {
    col: 22,
    row: 65,
    scrollbar: false,
    completed_item: {
      word: 'error',
      menu: '[TSC]',
      user_data: '{"cid":1604501223,"source":"tsserver-typescript","index":8}',
      info: '',
      kind: 'f',
      abbr: 'error~'
    },
    width: 15,
    height: 1,
    size: 1
  },
  64
]
2020-11-04T15:47:05.744 DEBUG (pid:28492) [events] - Event: BufWinLeave [ 11, 1010 ]
2020-11-04T15:47:05.745 DEBUG (pid:28492) [events] - Event: BufUnload [ 11 ]
2020-11-04T15:47:05.745 DEBUG (pid:28492) [workspace] - buffer unload 11
2020-11-04T15:47:05.747 DEBUG (pid:28492) [events] - Event: Command [ 'explorer.internal.didVimEvent' ]
2020-11-04T15:47:05.764 ERROR (pid:28492) [node-client] - request error 0 on "nvim_call_function" [ 'coc#util#win_gotoid', [ 1012 ] ] Vim(let):E315: ml_get: invalid lnum: 1 Error
    at NvimTransport.resumeNotification (/home/anatole/.vim/plugged/coc.nvim/build/index.js:15742:21)
    at NeovimClient.resumeNotification (/home/anatole/.vim/plugged/coc.nvim/build/index.js:12004:47)
    at Floating.showDocumentationFloating (/home/anatole/.vim/plugged/coc.nvim/build/index.js:87741:20)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Floating.show (/home/anatole/.vim/plugged/coc.nvim/build/index.js:87706:9)
    at async Completion.onPumChange (/home/anatole/.vim/plugged/coc.nvim/build/index.js:43081:13)
2020-11-04T15:47:05.764 ERROR (pid:28492) [node-client] - request error 0 on "nvim_call_function" [
  'coc#float#create_float_win',
  [
    1012,
    11,
    {
      autohide: true,
      col: 37,
      row: 65,
      relative: 'editor',
      width: 58,
      height: 1
    }
  ]
] Vim(call):E16: Invalid range:   call coc#float#close_auto_hide_wins(a:winid) Error
    at NvimTransport.resumeNotification (/home/anatole/.vim/plugged/coc.nvim/build/index.js:15742:21)
    at NeovimClient.resumeNotification (/home/anatole/.vim/plugged/coc.nvim/build/index.js:12004:47)
    at Floating.showDocumentationFloating (/home/anatole/.vim/plugged/coc.nvim/build/index.js:87720:30)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Floating.show (/home/anatole/.vim/plugged/coc.nvim/build/index.js:87706:9)
    at async Completion.onPumChange (/home/anatole/.vim/plugged/coc.nvim/build/index.js:43081:13)

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:

call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', { 'branch': 'release' }
call plug#end()

Screenshots (optional)

Peek 2020-11-04 15-38

AnatoleLucet commented 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.

Peek 2020-11-04 16-01

oblitum commented 4 years ago

Your CocInfo output seems cut, there's no information on coc version and other relevant data.

AnatoleLucet commented 4 years ago

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?

chemzqm commented 4 years ago

Need more info, run :CocInfo just after vim open

AnatoleLucet commented 4 years ago

@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)
chemzqm commented 4 years ago

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

AnatoleLucet commented 4 years ago

Check :h coc_process_pid for kill node process on VimLeave

This is for the memory usage, right?

jrop commented 4 years ago

NeoVim is crashing for me, randomly when CoC attempts to display popup windows for warnings/errors (when my cursor is over the offending code).

jrop commented 4 years ago

(PS: this started happening recently, withing the past few days)

chemzqm commented 4 years ago

Unable to reproduce, try minimal vimrc or debug your neovim.

fannheyward commented 4 years ago

@jrop do you have any CocAction in your vimrc ? https://github.com/neoclide/coc.nvim/issues/2557

chemzqm commented 4 years ago

I have connection lost issue with latest neovim when typing fast, should be another issue, but we need avoid it if possible.

AnatoleLucet commented 4 years ago

@chemzqm it also seems like the crashes happens when typing relatively fast

b12f commented 4 years ago

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
jrop commented 4 years ago

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.

jrop commented 4 years ago

I've narrowed this problem down: for me other programs were hogging memory, causing neovim to not be able to allocate memory.

Frederick888 commented 4 years ago

Possibly related: neovim/neovim#13208

chemzqm commented 4 years ago

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.

jrop commented 4 years ago

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.

chemzqm commented 4 years ago

@jrop upgrade neovim or use stable release