Closed alexteal closed 4 months ago
Thanks for the bug report and thorough investigation! I'll see if I can reproduce this on my end and find the issue. Is there a specific repo I can test with, or a file with a certain amount of lines?
Hi, @alexteal! Thanks for the detailed bug report! This seems similar to https://github.com/f-person/git-blame.nvim/issues/108 (which is also related to https://github.com/f-person/git-blame.nvim/issues/83). Does this also happen when there's no .git
or on uncommitted files for you, or is this the case everywhere? In the former case, I'll eventually get to this, but there's a temporary fix in https://github.com/f-person/git-blame.nvim/issues/108#issuecomment-1767756548, in case it bothers you too much for now!
Oh, didn't realize there were tickets with this already. Thanks for getting back to me on this btw!
Yeah, just tested it and it appears to happen in both directories with and without a .git
.
I just made a large file with for i in {0..9999}; do echo -e "CONTENTCONTENTCONTENT\n" >> test.txt; done
Scrolled around some, and I got the same error:
Error detected while processing CursorMoved Autocommands for "*":
Error executing lua callback: Vim:E903: Process failed to start: too many open files: "/bin/zsh"
stack traceback:
[C]: in function 'jobstart'
...te/pack/packer/opt/git-blame.nvim/lua/gitblame/utils.lua:43: in function 'start_job'
...site/pack/packer/opt/git-blame.nvim/lua/gitblame/git.lua:11: in function 'check_is_ignored'
...ite/pack/packer/opt/git-blame.nvim/lua/gitblame/init.lua:328: in function 'get_blame_text'
...ite/pack/packer/opt/git-blame.nvim/lua/gitblame/init.lua:411: in function 'show_blame_info'
...ite/pack/packer/opt/git-blame.nvim/lua/gitblame/init.lua:431: in function <...ite/pack/packer/opt/git-blame.nvim/lua/gitblame/init.lua:416>
I was just able to reproduce this with your example, thank you! I'll take a look at this when I have some spare time :)
Problem
An error gets thrown if you scroll up and down too fast. I've run into this a lot when handling large files and scrolling with the mouse too quickly. I'm going to attempt to find a fix for this, but I figured I'd make it known before I tried to do anything in case this is a known issue, or if someone else knows a fix.
config
The problem machine I've got is running OSX, with Neovim
NVIM v0.9.1
.I actually tried this on a headless ubuntu machine I've got over ssh, and seems like it's ok? I can scroll around on a 2000+ line file with no problems. It's
Jetson Nano
, so arm based:model name : ARMv8 Processor rev 1 (v8l)
And, I think it's a problem on Mint linux machine I've got. Haven't tested it in a while, but when I have a chance I'll update this post with the info if necessary.
Error message
Checkhealth
Here's my
checkhealth
in case anyone knows where things are going wrong: