cups 2.0.2-1 100% cpu usage

Bug #1426490 reported by Pau
62
This bug affects 12 people
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Fix Released
Undecided
Unassigned
Vivid
Fix Released
Undecided
Unassigned

Bug Description

upgraded from xubuntu 14.10 to 15.04 and now it uses cups 2.x
after every print cupsd starts using 100% cpu and don't close.
have to kill it every time with "sudo pkill cupsd"
printing still works fine

[Impact]

CUPS 2.0.x can suddenly take 100% CPU in certain situations, making the system slow and producing fan noise.

[Test Case]

After printing a job cupsd takes 100% CPU. This does not occur for all users, probably depends on queue type and on timing (computer/network speed).

With the proposed package the problem does not occur any more.

[Regression Potential]

Very low. The patch is very simple.

Description: Ubuntu Vivid Vervet (development branch)
Release: 15.04

cups:
  Installiert: 2.0.2-1ubuntu3
  Installationskandidat: 2.0.2-1ubuntu3
  Versionstabelle:
 *** 2.0.2-1ubuntu3 0
        500 http://de.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in cups (Ubuntu):
status: New → Confirmed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

To find out what is going wrong here more info is needed. Please follow the instructions on https://wiki.ubuntu.com/DebuggingPrintingProblems, especially the section "CUPS error_log". We also need to know which printer(s) you are using and how they are connected.

Changed in cups (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Pau (pausiert) wrote :

Brother DCP-7055w via Wireless connected, printed some simple PDFs when the error occured.

I installed some updates (hplib i think) and that fixed the problem for me.
With the new update i wasn't able to reproduce the high load.

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

If there is anyone still suffering this problem, please follow my instructions of comment #2. Thanks.

Revision history for this message
Dylan Borg (borgdylan) wrote :

For me it happened when booting with systemd. I got 100% use of one of the cores by cupsd on boot. Turning the printer on seems to fix it.

Revision history for this message
Lorenzo Bettini (bettini) wrote :

I'm experiencing a similar problem on a fresh new Kubuntu 15.04, but 100% CPU only takes place when I try to add a printer (e.g., using http://localhost:631)... the only thing I find in the syslog is

Apr 28 10:58:06 bettini-K53SV /hpfax: [8139]: error: Failed to create /var/spool/cups/tmp/.hplip

By the way, when adding a new printer, adding a Samba printer is not proposed (though samba is installed)

Revision history for this message
londumas (helion331990) wrote :

Same here with Ubuntu 15.04

Revision history for this message
Bastian Köcher (bkchr) wrote :

Hi,
I also have this bug. I attached the cups error log, it says "Max clients reached, holding new connections...". Cupsd was eating 100% short after continuing from sleep. This bug is really annoying because it eats up my battery...

Revision history for this message
pureblood (freeseek) wrote :

Same problem here. This is the content of my /var/log/cups/error_log file:
W [26/May/2015:14:10:58 -0400] Max clients reached, holding new connections...
W [26/May/2015:14:10:58 -0400] Max clients reached, holding new connections...
W [26/May/2015:14:10:58 -0400] Max clients reached, holding new connections...
W [26/May/2015:14:10:58 -0400] Max clients reached, holding new connections...
E [26/May/2015:14:14:54 -0400] [Client 310] Local authentication certificate not found.
W [26/May/2015:14:14:54 -0400] Max clients reached, holding new connections...
W [26/May/2015:14:14:56 -0400] Max clients reached, holding new connections...
W [26/May/2015:14:14:56 -0400] Max clients reached, holding new connections...
W [26/May/2015:14:14:56 -0400] Max clients reached, holding new connections...
W [26/May/2015:14:14:56 -0400] Max clients reached, holding new connections...
W [26/May/2015:14:17:21 -0400] Max clients reached, holding new connections...
W [26/May/2015:14:17:21 -0400] Max clients reached, holding new connections...
W [26/May/2015:14:17:21 -0400] Max clients reached, holding new connections...
W [26/May/2015:14:17:21 -0400] Max clients reached, holding new connections...
E [26/May/2015:14:19:55 -0400] [Client 599] Local authentication certificate not found.
W [26/May/2015:14:19:55 -0400] Max clients reached, holding new connections...
W [26/May/2015:14:19:55 -0400] Max clients reached, holding new connections...
W [26/May/2015:14:19:55 -0400] Max clients reached, holding new connections...
W [26/May/2015:14:19:56 -0400] Max clients reached, holding new connections...
W [26/May/2015:14:19:56 -0400] Max clients reached, holding new connections...
W [26/May/2015:14:19:56 -0400] Max clients reached, holding new connections...
W [26/May/2015:14:19:56 -0400] Max clients reached, holding new connections...
W [26/May/2015:14:19:57 -0400] Max clients reached, holding new connections...
W [26/May/2015:14:19:57 -0400] Max clients reached, holding new connections...
W [26/May/2015:14:19:57 -0400] Max clients reached, holding new connections...
W [26/May/2015:14:19:57 -0400] Max clients reached, holding new connections...

Revision history for this message
Bontius (bontius) wrote :

Me too, exploring network printers on every startup on full cpu.

Vivid 15.04
3.19.0-16-generic

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

A possible fix is the patch attached to this upstream bug:

https://www.cups.org/str.php?L4605

The patch is also included in CUPS 2.0.3, released upstream today.

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

Marking as fixed in Wily as there CUPS 2.0.3 is available now.

Changed in cups (Ubuntu):
status: Incomplete → Fix Released
Changed in cups (Ubuntu Vivid):
status: New → In Progress
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

See also this Red Hat bug report:

https://bugzilla.redhat.com/show_bug.cgi?id=1179596

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

Uploaded a fixed package to vivid-proposed. As soon as it is made available by the SRU team a comment with instructions to test it will get posted here. Please test it and tell whether it solves the problem for you. We need your feedback to make the package an official update available for everyone.

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

debdiff of the fix.

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Pau, or anyone else affected,

Accepted cups into vivid-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/cups/2.0.2-1ubuntu3.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in cups (Ubuntu Vivid):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

9 people told here that they are affected by this bug. At least one is needed to test the proposed package and to tell that it fixes the bug. Please, anyone of these 9 people, test the proposed package. Thanks.

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

Anyone still suffering this problem and interested in getting it fixed in 15.04 (Vivid)? If so, please test the proposed package, see comment #17. Thanks.

Revision history for this message
no 0ne (no-0ne-057) wrote :

Dear Till, sorry for not testing it sooner - I was on holiday. However, I'm happy to report that the cups package from proposed seems to have fixed the problem. Good job and thanks!

Revision history for this message
no 0ne (no-0ne-057) wrote :

The version I just tested is 2.0.2-1ubuntu3.2

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cups - 2.0.2-1ubuntu3.2

---------------
cups (2.0.2-1ubuntu3.2) vivid-proposed; urgency=medium

  * debian/patches/cups-busy-loop.patch: Fixed scheduler sometimes
    getting caught in a busy loop (LP: #1426490, CUPS STR #4605).

 -- Till Kamppeter <email address hidden> Fri, 12 Jun 2015 13:18:01 -0300

Changed in cups (Ubuntu Vivid):
status: Fix Committed → Fix Released
Revision history for this message
Chris J Arges (arges) wrote : Update Released

The verification of the Stable Release Update for cups has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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