After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 768174 - Printers panel and gnome-settings-deamon spinning when cups isn't running (and disabled)
Printers panel and gnome-settings-deamon spinning when cups isn't running (an...
Status: RESOLVED NOTGNOME
Product: gnome-control-center
Classification: Core
Component: Printers
3.20.x
Other Linux
: Normal normal
: ---
Assigned To: Felipe Borges
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-06-29 10:12 UTC by Yanko Kaneti
Modified: 2016-09-20 10:31 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Yanko Kaneti 2016-06-29 10:12:46 UTC
control-center-3.20.1-1.fc25.x86_64
gnome-settings-daemon-3.20.1-3.fc25.x86_64

If the cups daemon is stopped and the scups socket disabled, both control-center/printers and gnome-settings-daemon process are spinning.
Comment 1 Pavlo Rudyi 2016-07-11 11:15:40 UTC
Сonfirm, gnome-settings-daemon without running CUPS eat 25% CPU:

[paul@probook ~]$ ps -eo pcpu,pid,user,args --no-headers | grep -i gnome-settings-daemon
 0.0  1052 gdm      /usr/libexec/gnome-settings-daemon
30.0  1400 paul     /usr/libexec/gnome-settings-daemon
 0.0  2794 paul     grep --color=auto -i gnome-settings-daemon


socket(AF_INET6, SOCK_STREAM, IPPROTO_IP) = 22
setsockopt(22, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
setsockopt(22, SOL_SOCKET, SO_REUSEPORT, [1], 4) = 0
setsockopt(22, SOL_TCP, TCP_NODELAY, [1], 4) = 0
fcntl(22, F_SETFD, FD_CLOEXEC)          = 0
fcntl(22, F_GETFL)                      = 0x2 (flags O_RDWR)
fcntl(22, F_SETFL, O_RDWR|O_NONBLOCK)   = 0
connect(22, {sa_family=AF_INET6, sin6_port=htons(631), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EINPROGRESS (Operation now in progress)
fcntl(22, F_SETFL, O_RDWR)              = 0
poll([{fd=22, events=POLLIN|POLLOUT}], 1, 100) = 1 ([{fd=22, revents=POLLIN|POLLOUT|POLLERR|POLLHUP}])
sendto(22, "POST / HTTP/1.1\r\nContent-Length:"..., 193, 0, NULL, 0) = -1 ECONNREFUSED (Connection refused)
sendto(22, "POST / HTTP/1.1\r\nContent-Length:"..., 193, 0, NULL, 0) = -1 EPIPE (Broken pipe)
--- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=1400, si_uid=1000} ---
sendto(22, "POST / HTTP/1.1\r\nContent-Length:"..., 193, 0, NULL, 0) = -1 EPIPE (Broken pipe)
--- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=1400, si_uid=1000} ---
close(22)
Comment 2 Yanko Kaneti 2016-09-01 13:37:16 UTC
For the record, the corresponding downstream fedora bug throws it to cups (not yet identified change between 2.1 and 2.2) 
https://bugzilla.redhat.com/show_bug.cgi?id=1366775
https://github.com/apple/cups/issues/4870
Comment 3 Marek Kašík 2016-09-20 10:31:35 UTC
Hi,

thank you for this report. But we've found that this is a CUPS issue (which will be fixed soon hopefully). I'm closing this.