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

100% cpu usage #685

Closed
wedens opened this issue Aug 14, 2014 · 3 comments
Closed

100% cpu usage #685

wedens opened this issue Aug 14, 2014 · 3 comments

Comments

@wedens
Copy link

wedens commented Aug 14, 2014

after some update (i dont know which exactly) unite started use 100% when called second time.
on first run after vim startup it works fine, but second run freezes vim with 100% cpu usage.
vim version: 7.4;
unite latest revision;
unite settings:

if executable('ag')
  let g:unite_source_grep_command = 'ag'
  let g:unite_source_grep_default_opts = '--nogroup --nocolor --column'
  let g:unite_source_grep_recursive_opt = ''
  let g:unite_source_rec_async_command= 'ag --nocolor --nogroup -g ""'
endif
let g:unite_force_overwrite_statusline = 0
let g:unite_source_history_yank_enable = 1
call unite#filters#sorter_default#use(['sorter_rank'])
call unite#custom_source('file_rec/async',
      \ 'ignore_pattern', join([
      \ '\.git/',
      \ 'target/',
      \ '\.idea/',
      \ '\.idea_modules/',
      \ ], '\|'))
call unite#filters#matcher_default#use(['matcher_fuzzy'])
let g:unite_source_file_rec_max_cache_files = 0
let g:unite_source_mru_update_interval = 300
let g:unite_source_file_mru_limit = 20
let g:unite_kind_file_vertical_preview=1
autocmd FileType unite call s:unite_my_settings()
function! s:unite_my_settings()
  nnoremap <silent><buffer><expr> s     unite#do_action('vsplit')
  nnoremap <silent><buffer><expr> p
        \ empty(filter(range(1, winnr('$')),
        \ 'getwinvar(v:val, "&previewwindow") != 0')) ?
        \ unite#do_action('preview') : ":\<C-u>pclose!\<CR>"
endfunction
@wedens
Copy link
Author

wedens commented Aug 14, 2014

looks like it's not freezing anymore after removing ~/.unite. i'll close the issue if it will not reproduce?

@wedens wedens closed this as completed Aug 15, 2014
@Shougo
Copy link
Owner

Shougo commented Aug 15, 2014

OK.

@brandonbloom
Copy link

I'm experiencing this too. I upgraded to the latest MacVim, unite, and vimproc. After using unite for file_rec/async two-ish times, the whole editor freezes for 3 or 4 seconds at 100% CPU.

adambiggs pushed a commit to adambiggs/spf13-vim that referenced this issue Oct 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants