-
Notifications
You must be signed in to change notification settings - Fork 328
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
High cpu usage in background #592
Comments
@kkga It's not easy to solve these issues without being able to consistently reproduce it. Indeed, there has been changes in how we suspend ui for shell commands in |
I'm having the same issue since a few days, I can't reproduce the problem either. I'm using arch linux (dwm + st, zsh shell) on a T440p. I've been trying to change my lfrc for a few days without success. Edit : Downgraded to r19, it seems to fix the problem. |
I'm on Void Linux, the shell is fish 3.2.1. Here's my config (quite close to default): https://github.com/kkga/dotfiles/blob/master/.config/lf/lfrc I'm gonna try using a different terminal for a few days to see if it changes anything. |
I am experiencing this every day. I have not figured out any STR. I think that every time before app hijacks whole cpu core, I do navigation to some dir, drop out to shell and after return to lf again |
Can confirm, issue present on MacOS using ldcd.sh to call lf(21) also causes high background CPU usage since the update. |
@ecomaikgolf I tried closing the terminal but still haven't experienced the issue. Can you consistently reproduce it yourself or it happens from time to time? |
Consistently lfcd() -> shell (w) -> xkill -> high bakground cpu usage Before closing/killing it
After killing it, high CPU usage. Maybe the problem is when it detaches from zsh/st when I kill it.
|
@ecomaikgolf Good catch, I'm able to reproduce it myself now. In my case it also happens independent of my terminal and probably window manager as well. Closing the terminal with either window manager shortcut or Indeed the problem is that the process is detached and left behind instead of getting killed. On lf side, we quit when we receive |
Strange behaviour in zsh. Killing itself in a function still completes the function
Wrote this little function in my TRAPEXIT() {
pkill -f "lf -last-dir-path=*"
} http://zsh.sourceforge.net/Doc/Release/Functions.html But how this started happening in r21 update? |
@ecomaikgolf I have tried this with previous versions. It seems that signal is skipped in |
I've been using this since the fix. No issues |
Same here. No issues on Linux/macOS after the fix. |
The issue isn't disappeared macOS, |
The fix may not be released yet. Did you build from source or use the packaged version? |
brew packaged |
I have now released r22 which includes the fix. Closing this issue. |
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 thatlf
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?
The text was updated successfully, but these errors were encountered: