cupsd uses 100% CPU

Bug #1687436 reported by Šarūnas Burdulis
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
cups-filters (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

cupsd constantly uses 100% of CPU (one core) when cups-browsed is running too. Network printer queues are autodetected and available. Printer listing is usually delayed by approx. 30s.

lsb_release -rd:
Description: Ubuntu 17.04
Release: 17.04

apt-cache policy cups
cups:
  Installed: 2.2.2-1ubuntu1
  Candidate: 2.2.2-1ubuntu1
  Version table:
 *** 2.2.2-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 Packages
        100 /var/lib/dpkg/status

apt-cache policy cups-browsed
cups-browsed:
  Installed: 1.13.4-1ubuntu1
  Candidate: 1.13.4-1ubuntu1
  Version table:
 *** 1.13.4-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu zesty/main amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Šarūnas Burdulis (sarunas) wrote :
Revision history for this message
Šarūnas Burdulis (sarunas) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cups-filters (Ubuntu):
status: New → Confirmed
Revision history for this message
Chrescht (sekateur) wrote :

For me nothing worked but to disable the cups-browsed service:
sudo systemctl disable cups-browsed

It disables the excessively active service to add any found network printers(!)

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I have done several fixes in cups-browsed upstream to avoid high CPU load, infinite loops and crashes.

The fixes are in the 1.21.6 release:

https://github.com/OpenPrinting/cups-filters/releases/tag/release-1-21-6

This release should be available in Disco.

Changed in cups-filters (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Marco Gaiarin (marcogaio) wrote :

I think i'm hitting this bug too.

cups go CPU 100%, until i restart them.

Ubuntu Bionic, cups 2.2.7-1ubuntu2.3, cups-filters 1.20.2-0ubuntu3.

I can safely install disco packages on bionic? There will be some backports? Or some workaround for bionic.

Thanks.

Revision history for this message
gpothier (gpothier) wrote :

I'm having this issue on Disco. Stopping cups-browsed solves the issue, restarting it makes the issue reappear after a few seconds.
I'm seeing this in the error log:
W [20/Aug/2019:18:46:37 -0400] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'KONICA_MINOLTA_C368Series_cali_sys-CMYK..\' already exists
E [20/Aug/2019:18:46:53 -0400] [Client 608] Returning IPP client-error-bad-request for CUPS-Add-Modify-Printer (ipp://localhost:631/printers/KONICA_MINOLTA_C368Series_cali_sys) from localhost.
W [20/Aug/2019:18:46:53 -0400] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'KONICA_MINOLTA_C368Series_cali_sys-Gray..\' already exists
W [20/Aug/2019:18:46:53 -0400] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'KONICA_MINOLTA_C368Series_cali_sys-CMYK..\' already exists
E [20/Aug/2019:18:47:09 -0400] [Client 611] Returning IPP client-error-bad-request for CUPS-Add-Modify-Printer (ipp://localhost:631/printers/KONICA_MINOLTA_C368Series_cali_sys) from localhost.
W [20/Aug/2019:18:47:09 -0400] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'KONICA_MINOLTA_C368Series_cali_sys-Gray..\' already exists
W [20/Aug/2019:18:47:09 -0400] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'KONICA_MINOLTA_C368Series_cali_sys-CMYK..\' already exists
E [20/Aug/2019:18:47:24 -0400] [Client 612] Returning IPP client-error-bad-request for CUPS-Add-Modify-Printer (ipp://localhost:631/printers/KONICA_MINOLTA_C368Series_cali_sys) from localhost.
W [20/Aug/2019:18:47:24 -0400] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'KONICA_MINOLTA_C368Series_cali_sys-Gray..\' already exists
W [20/Aug/2019:18:47:24 -0400] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'KONICA_MINOLTA_C368Series_cali_sys-CMYK..\' already exists
E [20/Aug/2019:18:47:40 -0400] [Client 613] Returning IPP client-error-bad-request for CUPS-Add-Modify-Printer (ipp://localhost:631/printers/KONICA_MINOLTA_C368Series_cali_sys) from localhost.
W [20/Aug/2019:18:47:40 -0400] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'KONICA_MINOLTA_C368Series_cali_sys-Gray..\' already exists
W [20/Aug/2019:18:47:40 -0400] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'KONICA_MINOLTA_C368Series_cali_sys-CMYK..\' already exists

Revision history for this message
Marco Gaiarin (marcogaio) wrote :

I can confirm that.

CUPS got 100% CPU in an environment where i've some KONICA-MINOLTA MFP, and i've the same errors in logs:

W [02/Aug/2019:13:01:21 +0200] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'Konica_Minolta_BizHub_C224e_vdmsv1-Gray..\' already exists
W [02/Aug/2019:13:01:21 +0200] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'Konica_Minolta_BizHub_C224e_vdmsv1-CMYK..\' already exists
W [02/Aug/2019:13:01:27 +0200] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'Konica_Minolta_BizHub_C454e_vdmsv1-Gray..\' already exists
W [02/Aug/2019:13:01:27 +0200] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'Konica_Minolta_BizHub_C454e_vdmsv1-CMYK..\' already exists
W [02/Aug/2019:13:01:33 +0200] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'Konica_Minolta_BizHub_C458_vdmsv1-Gray..\' already exists
W [02/Aug/2019:13:01:33 +0200] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'Konica_Minolta_BizHub_C458_vdmsv1-CMYK..\' already exists

Note that i move my PC between at least 3 environment (home, work site 1, work site 2) with similar configuration, and only on 'site 1' (where i've KONICA-MINOLTA MFP i got 100% CPU.

Revision history for this message
Corentin (jackylejacky) wrote :

Same problem for me only on the local network of my work.

cupsd -l is using a 100% of one CPU.

W [17/Sep/2019:10:40:36 +0200] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'KonicaMinoltaC308_2_[here the IP adress]-CMYK..\' already exists

"service cups restart" give me a little break but it restarts each time.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.