-
-
Notifications
You must be signed in to change notification settings - Fork 972
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
Kitty v26 consuming a lot of CPU if started by keyboard shortcut #5444
Comments
What is in this desktop file you are launching with? |
Actually I think I know the cause. Your desktop launcher is launching kitty with broken stdio stream stdout/stderr/stdin. This causes the new prewarming code to fail. You can work around it by changing the kitty.desktop file to use Exec=sh -c "kitty > /dev/null 2> /dev/null </dev/null" You might need to instead create a wrapper script f it doesnt like complex args in the Exec field. I suppose I will have to detect this brokenness in the kitty launcher and redirect the stdio streams to /dev/null before starting up python. Sigh. |
I just meant to say that I was launching kitty via the usual app launcher / krunner, nothing special going on
Gonna try later and let you know, thanks! |
Ok, using a wrapper to start kitty solves the issue, thanks! |
Can confirm that version 0.26.2 fixes the issue. Thanks a lot! |
Describe the bug
Apparently every time I start kitty v26 via keyboard shortcut it starts consuming a lot of CPU (with a crash reported in the background) regardless of the config file used.
Starting kitty from command line makes it work fine with no crash.
To Reproduce
Steps to reproduce the behavior:
Screenshots
/usr/bin/kitty
is the one started via keyboard shortcut, whilekitty
is the one started via command line (or even via.desktop
file).Here the CPU temp spike can also be seen, in the same conditions by just closing
/usr/bin/kitty
the CPU temps fall down to 40 Celsius.Environment details
Additional context
Here's the crash popping up in
journalctl -f
every time kitty is started via keyboard shortcut:Also yes, I tried starting it with
kitty --config NONE
but obviously the issue won't show there since starting kitty from the command line makes it work just fine, but I tried deleting the config file altogether and starting it from keyboard shortcut still causes this issue.The text was updated successfully, but these errors were encountered: