lf: High cpu usage in background
I often open a child shell in the current directory (by pressing w) and lf keeps running as a parent process.
I’ve been using this for years, since I switched to lf and never had any problems.
Recently (I think it started happening after updating to r21), I started noticing that lf often uses 100% of CPU. I can’t reproduce what exactly makes it run like this, but it does happen multiple times a day.
Any tips on how to avoid this?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 4
- Comments: 17 (5 by maintainers)
Commits related to this issue
- handle ui suspend/resume errors cc #592 — committed to gokcehan/lf by gokcehan 3 years ago
@ecomaikgolf I have tried this with previous versions. It seems that signal is skipped in
zshwith previous versions as well. But we were usingInitfunction to resume ui before and we simply exit when it fails to initialize the screen. In r21, we switched toSuspend/Resumeand I forgot to add error handling for these functions. Now we also exit whenResumefails so the issue should be fixed with the latest commit.I have now released r22 which includes the fix. Closing this issue.
The issue isn’t disappeared Screen
macOS, lf version r21