** Description changed:

  My XPS 9320 laptop's fans often run at high speeds even when no CPU-
  intensive processes are active. Using htop, I determined that the top
  CPU-consuming process was ding.js (by rastersoft). After disabling the
  ding extension, CPU usage returned to normal levels.
  
  However, when active, system icons seem to be malfunctioning. For
  example, I cannot rename desktop icons.
  
- 
  This is my Ubuntu System:
  Description:  Ubuntu 24.04.1 LTS
  Release:      24.04
  
  The software version:
  gnome-shell-extension-desktop-icons-ng:
-   Installato: 46+really47.0.9-1
-   Candidato:  46+really47.0.9-1
-   Tabella versione:
-  *** 46+really47.0.9-1 500
-         500 http://it.archive.ubuntu.com/ubuntu noble/main amd64 Packages
-         100 /var/lib/dpkg/status
+   Installato: 46+really47.0.9-1
+   Candidato:  46+really47.0.9-1
+   Tabella versione:
+  *** 46+really47.0.9-1 500
+         500 http://it.archive.ubuntu.com/ubuntu noble/main amd64 Packages
+         100 /var/lib/dpkg/status
  
  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: gnome-shell-extension-desktop-icons-ng 46+really47.0.9-1
  ProcVersionSignature: Ubuntu 6.8.0-45.45-generic 6.8.12
  Uname: Linux 6.8.0-45-generic x86_64
  ApportVersion: 2.28.1-0ubuntu3.1
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Thu Sep 19 16:44:20 2024
  InstallationDate: Installed on 2024-04-29 (143 days ago)
  InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
  PackageArchitecture: all
  ProcEnviron:
-  LANG=it_IT.UTF-8
-  PATH=(custom, no user)
-  SHELL=/bin/bash
-  TERM=xterm-256color
+  LANG=it_IT.UTF-8
+  PATH=(custom, no user)
+  SHELL=/bin/bash
+  TERM=xterm-256color
  SourcePackage: gnome-shell-extension-desktop-icons-ng
  UpgradeStatus: No upgrade log present (probably fresh install)
+ 
+ [ Bug ]
+ 
+ The bug is due to resource exhaustion during the creation of the
+ Templates list for desktop icons. Since each folder inside is registered
+ in a GLib Monitor to detect changes and refresh the list, if there are
+ too many folders, the number of open file descriptors will be too big
+ and the desktop icons application will crash.
+ 
+ [ User impact ]
+ 
+ This bug, when produced, not only prevents using the desktop icons, but
+ also produces an annoying effect due to the desktop program resetting
+ over and over again, forcing the user to disable the desktop icons
+ extension.
+ 
+ [ Test plan ]
+ 
+ - Remove the Templates folder
+ - Soft link the home folder (or any other folder with a lot of subfolders) 
with the Templates name: ln -s . Templates
+ - Another way is to copy data inside the Templates folder with more than 1024 
folders
+ - The desktop icons will begin to appear and disappear
+ 
+ [ Risks ]
+ 
+ The risk, in the worst case, is that the templates in the desktop stop
+ working, but at least the rest of the desktop icons would work.
+ 
+ [ Other info ]
+ 
+ The patch sets a limit to the number of templates, to ensure that the
+ number of open file descriptors isn't too much big, and thus avoiding
+ its exhaustion.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2081198

Title:
  ding.js is consuming too much CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-desktop-icons-ng/+bug/2081198/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to