cellular-automaton.nvim icon indicating copy to clipboard operation
cellular-automaton.nvim copied to clipboard

E903: Process failed to start: too many open files: "/bin/zsh"

Open 0-issue opened this issue 2 years ago • 4 comments

When I run it, I do see it work but then it opens this error at the bottom:

Error executing vim.schedule lua callback: ...ed/cellular-automaton.nvim/lua/cellular-automaton/ui.lua:61: Vim(le
t):E903: Process failed to start: too many open files: "/bin/zsh"
stack traceback:
        [C]: in function 'nvim_win_set_buf'
        ...ed/cellular-automaton.nvim/lua/cellular-automaton/ui.lua:61: in function 'render_frame'
        ...llular-automaton.nvim/lua/cellular-automaton/manager.lua:13: in function 'process_frame'
        ...llular-automaton.nvim/lua/cellular-automaton/manager.lua:23: in function ''
        vim/_editor.lua: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>
Press ENTER or type command to continue

machine: macOS 13.1 Ventura nvim --version:

NVIM v0.9.0-dev-3345+g922075530-dirty
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by [email protected]

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/HEAD-9220755/share/nvim"

Run :checkhealth for more info

0-issue avatar Jan 14 '23 00:01 0-issue

I'm on holidays right now, I'll be able to check it next week. It might be an issue caused by a newest nvim version

Eandrju avatar Jan 14 '23 01:01 Eandrju

Okey I'm back. It looks like you are hitting your OS file limit. I'm not sure exactly why as I can't reproduce it with the same setup. Plugin uses two buffers to make the animation smooth - it shows the first one, updates the second and only after 2nd is ready it swaps them (and repeats that for ever). My best guess is that you have specific BufEnter or BugWinEnter auto command defined (or one of your other plugins has) that does something expensive (and opens some file in the process). Animations swaps buffers 20 times per second, so it might stack up.

Do you have nvim-lualine plugin installed? I see related issue in their repo, apparently they run some git commands on BufEnter events: https://github.com/nvim-lualine/lualine.nvim/issues/699

Eandrju avatar Jan 22 '23 00:01 Eandrju

@Eandrju Sorry I missed updating you in time, yes it is a BufEnter. Is there a way I can disable it just for this plugin? I can't disable the BufEnter entirely for all of my nvim usage.

I don't use nvim-lualine, it's my own auto command definition.

0-issue avatar Jan 22 '23 00:01 0-issue

Unfortunately, AFAIK nvim API doesn't yet support disabling autocmds for buffer swapping. There is a noautocmd option for opening a window, but not for setting the buffer.

Eandrju avatar Jan 27 '23 15:01 Eandrju