pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.38k stars 81 forks source link

High gjs CPU usage since upgrade to 22.04 related to DING #2358

Open pellepelster opened 2 years ago

pellepelster commented 2 years ago

Distribution: NAME="Pop!_OS" VERSION="22.04 LTS" ID=pop ID_LIKE="ubuntu debian" PRETTY_NAME="Pop!_OS 22.04 LTS" VERSION_ID="22.04" HOME_URL="https://pop.system76.com" SUPPORT_URL="https://support.system76.com" BUG_REPORT_URL="https://github.com/pop-os/pop/issues" PRIVACY_POLICY_URL="https://system76.com/privacy" VERSION_CODENAME=jammy UBUNTU_CODENAME=jammy LOGO=distributor-logo-pop-os

Related Application and/or Package Version gnome-shell-extension-desktop-icons-ng: Installed: 43-2 Candidate: 43-2 Version table: *** 43-2 500 500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages 500 http://us.archive.ubuntu.com/ubuntu jammy/main i386 Packages 100 /var/lib/dpkg/status

Issue/Bug Description: I upgraded my PopOS 21.10 to 22.04. Since then the battery is draining like crazy. Looking at the top output there is always a gjs task with high CPU usage.

looking at the gnome shell log I can see an endless stream of

journalctl -f /usr/bin/gnome-shell

May 04 20:42:38 fry gnome-shell[2876]: DING: (gjs:33404): GLib-ERROR **: 18:42:38.734: Creating pipes for GWakeup: Too many open files
May 04 20:42:40 fry gnome-shell[2876]: DING: Detected async api for thumbnails
May 04 20:42:40 fry gnome-shell[2876]: DING: GNOME nautilus 42.0
May 04 20:42:41 fry gnome-shell[2876]: DING: (gjs:33429): GLib-ERROR **: 18:42:41.113: Creating pipes for GWakeup: Too many open files
May 04 20:42:42 fry gnome-shell[2876]: DING: Detected async api for thumbnails
May 04 20:42:42 fry gnome-shell[2876]: DING: GNOME nautilus 42.0
May 04 20:42:43 fry gnome-shell[2876]: DING: (gjs:33454): GLib-ERROR **: 18:42:43.482: Creating pipes for GWakeup: Too many open files
May 04 20:42:44 fry gnome-shell[2876]: DING: Detected async api for thumbnails
May 04 20:42:44 fry gnome-shell[2876]: DING: GNOME nautilus 42.0
May 04 20:42:46 fry gnome-shell[2876]: DING: (gjs:33479): GLib-ERROR **: 18:42:46.567: Creating pipes for GWakeup: Too many open files
May 04 20:42:48 fry gnome-shell[2876]: DING: Detected async api for thumbnails
May 04 20:42:48 fry gnome-shell[2876]: DING: GNOME nautilus 42.0

Disabling the DING extension via

gnome-extensions disable ding@rastersoft.com

seems to fix the CPU draining.

Expected behavior:

Other Notes:

mmstick commented 2 years ago

Looks like it's stuck in a loop because it ran out of file descriptors. Do you have a lot of files on your desktop?

pellepelster commented 2 years ago

No really, round about ~10 at most. I will remove them all and check again if this changes the problem

hameema commented 2 years ago

I have the same exact issue on ubuntu 22.04

mmstick commented 2 years ago

That would make sense because it's the same package

schirmerp commented 1 year ago

same issue after upgrade to ubuntu 22.04 also

confirm the following is a temporary fix, but you have to do without the desktop items:

gnome-extensions disable ding@rastersoft.com

frericksm commented 1 year ago

gnome-extensions disable ding@rastersoft.com does not mitigate the issue

I think there is some a deeper problem here. i still observe continuous high cpu utilization of 20% by gnome-shell. I use a simple intel-i5-pc with no graphic cards just an onboard graphic chip and the suggested workarounds i found in the web) a) disabling gnome-extensions b) add entries to /etc/environment to activate wayland... did not help so far

klaHoadl commented 1 year ago

Disabling "Show external drives in the desktop" and "Show network drives in the desktop" in Ding settings solved the problem for me

1reverseengineer commented 2 months ago

Disabling the DING extension via

gnome-extensions disable ding@rastersoft.com

seems to fix the CPU draining.

Expected behavior:

Other Notes:

May/2024, this issue is still occurring on every latest POP_OS 22_04 LTS; Gnome 42.9; Linux pop-os 6.8.0 installation.

Can confirm executing gnome-extensions disable ding@rastersoft.com, even to this day, fixes this issue. Immediate drop of ~gjs 24% CPU usage down to 0.0% Live system resource monitoring via bpytop.