launcher icon indicating copy to clipboard operation
launcher copied to clipboard

Desktop looks like it might burn CPU if the required gnome extension is missing

Open directionless opened this issue 2 years ago • 3 comments

I'm not wholly sure here, but some diagnosing on slack makes me think desktop can burn a bunch of CPU if the required gnome extension is missing. We shouldn't burn CPU. Probably shouldn't start desktop.

Not sure how to detect this. I don't love needing another exec.

Relates to #1325

directionless avatar Sep 01 '23 17:09 directionless

I'm seeing this issue on all of my Ubuntu-based machines: 23.04, 23.10 beta, etc.

It just pegs a single CPU core to 100% on every login, kicking the fan speeds all the way to max and staying there.

I've resorted to SIGKILL'ing the process from htop on every login :/

tomaspinho avatar Sep 26 '23 12:09 tomaspinho

@tomaspinho, we've seen this issue happen before when ubuntu-appindicators is disabled. Can you check to see if it's enabled using gnome-extensions show [email protected] if not enabled can you enable with gnome-extensions enable [email protected]?

James-Pickett avatar Sep 26 '23 14:09 James-Pickett

Shouldn't the systemd unit have the target WantedBy=xdg-desktop-autostart.target for the desktop launcher? I also see a CPU getting eaten by the launcher sometimes and I have he appindicator extension enabled, so it isn't just that.

 /usr/lib/systemd/system/launcher.kolide-k2.service
[Unit]
Description=The Kolide Launcher
After=network.service syslog.service

[Service]
ExecStart=/usr/local/kolide-k2/bin/launcher \
-config \
/etc/kolide-k2/launcher.flags
Restart=on-failure
RestartSec=3
CPUQuota=50% # limit the impact of this issue until it is resolved

[Install]
WantedBy=xdg-desktop-autostart.target # don't start until the desktop has loaded

dooferlad avatar Jun 04 '24 11:06 dooferlad