Debian Bug report logs - #486674
Consumes too much CPU and memory when D-Bus emmits lot of signals

version graph

Package: system-config-printer; Maintainer for system-config-printer is Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>; Source for system-config-printer is src:system-config-printer (PTS, buildd, popcon).

Reported by: Michal Čihař <nijel@debian.org>

Date: Tue, 17 Jun 2008 14:48:05 UTC

Severity: normal

Found in version system-config-printer/0.7.81-4

Fixed in version system-config-printer/1.0.0-2

Done: Josselin Mouette <joss@debian.org>

Bug is archived. No further changes may be made.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Otavio Salvador <otavio@debian.org>:
Bug#486674; Package system-config-printer. (full text, mbox, link).


Acknowledgement sent to Michal Čihař <nijel@debian.org>:
New Bug report received and forwarded. Copy sent to Otavio Salvador <otavio@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Michal Čihař <nijel@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Consumes too much CPU and memory when D-Bus emmits lot of signals
Date: Tue, 17 Jun 2008 16:45:16 +0200
Package: system-config-printer
Version: 0.7.81-4
Severity: normal
File: /usr/share/system-config-printer/applet.py

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

I did some benchmarking of my D-Bus code which uses signals. After short
time I noticed that printer applet is using lot of CPU and memory. I believe
monitor_session function is responsible for this as it receives *all*
signals on session bus. What is even more funny, it does exactly
*nothing* with all these signals. I do not understand reason of this
code, but please add at least some filtering so that this method is not
called for all signals on session bus.

- -- 
	Michal Čihař | http://cihar.com | http://blog.cihar.com


- -- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (99, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages system-config-printer depends on:
ii  gksu                          2.0.0-5    graphical frontend to su
ii  python                        2.5.2-1    An interactive high-level object-o
ii  python-cups                   1.9.31-1   Python bindings for CUPS
ii  python-dbus                   0.82.4-2   simple interprocess messaging syst
ii  python-elementtree            1.2.6-12   Light-weight toolkit for XML proce
ii  python-glade2                 2.12.1-6   GTK+ bindings: Glade support
ii  python-gnome2                 2.22.0-1   Python bindings for the GNOME desk
ii  python-gtk2                   2.12.1-6   Python bindings for the GTK+ widge
ii  python-notify                 0.1.1-2+b1 Python bindings for libnotify
ii  python-support                0.8.1      automated rebuilding support for P

system-config-printer recommends no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkhXzfwACgkQ3DVS6DbnVgSapgCg46GvsuQ6LfrH6nDp8Ua97aYQ
lCoAniIIQzwJZwrsI22TG+KsiVfcmafK
=I+80
-----END PGP SIGNATURE-----




Reply sent to Josselin Mouette <joss@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Michal Čihař <nijel@debian.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #10 received at 486674-close@bugs.debian.org (full text, mbox, reply):

From: Josselin Mouette <joss@debian.org>
To: 486674-close@bugs.debian.org
Subject: Bug#486674: fixed in system-config-printer 1.0.0-2
Date: Sun, 22 Jun 2008 17:32:11 +0000
Source: system-config-printer
Source-Version: 1.0.0-2

We believe that the bug you reported is fixed in the latest version of
system-config-printer, which is due to be installed in the Debian FTP archive:

python-cupsutils_1.0.0-2_all.deb
  to pool/main/s/system-config-printer/python-cupsutils_1.0.0-2_all.deb
system-config-printer_1.0.0-2.diff.gz
  to pool/main/s/system-config-printer/system-config-printer_1.0.0-2.diff.gz
system-config-printer_1.0.0-2.dsc
  to pool/main/s/system-config-printer/system-config-printer_1.0.0-2.dsc
system-config-printer_1.0.0-2_all.deb
  to pool/main/s/system-config-printer/system-config-printer_1.0.0-2_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 486674@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Josselin Mouette <joss@debian.org> (supplier of updated system-config-printer package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sun, 22 Jun 2008 19:13:39 +0200
Source: system-config-printer
Binary: system-config-printer python-cupsutils
Architecture: source all
Version: 1.0.0-2
Distribution: unstable
Urgency: low
Maintainer: Otavio Salvador <otavio@debian.org>
Changed-By: Josselin Mouette <joss@debian.org>
Description: 
 python-cupsutils - Python utility modules around the CUPS printing system
 system-config-printer - graphical interface to configure the printing system
Closes: 485654 485982 486198 486379 486613 486674
Changes: 
 system-config-printer (1.0.0-2) unstable; urgency=low
 .
   * Switch to quilt for patch management; build-depend on quilt.
   * Merge all translation updates in 02_translations.patch.
   * New translations:
     + Spanish (Javier Fernández-Sanguino Peña)
     + Vietnamese (Clytie Siddall)
     + Russian (Yuri Kozlov), closes: #485654
     + German (Helge Kreutzmann), closes: #485982
     + Basque (Piarres Beobide)
     + simplified Chinese (Deng Xiyue), closes: #486198
     + Turkish (Mert Dirik).
     + Czech (Martin Šín), closes: #486379.
   * Recommend hal-cups-utils.
   * 15_close_shortcut.patch: use gtk-close instead of gtk-quit, so that
     the default shortcuts to close a window are used.
   * 16_dont_monitor_session.patch: don’t blindly listen to any signal
     that goes through the session bus. Gnome-session will know when to
     kill the applet. Closes: #486674, thanks Michal Čihař.
   * 17_new_printer_notification.patch: allow anyone to listen to the new
     printer notification dbus signal. Closes: #486613.
   * 18_debian_packages.patch:
     + List the correct Debian packages that provide the given programs.
     + Use gksu+synaptic to install the packages.
     + Launch gksu+s-c-p to configure the printers from the applet.
   * Install the new debutils.py file.
   * Recommend synaptic.
   * 13_python_paths.patch: also fix the shebangs.
   * 30_install_traceback.patch, 31_browse_hang.patch,
     32_pycups_traceback.patch, 33_dont_strip_Printer.patch: stolen from
     upstream’s git tree. Fix a few crashers.
   * Upload to unstable; drop check-dist include.
Checksums-Sha1: 
 d0392d1a3261d6f25eed81812fd50c159709ab3a 1347 system-config-printer_1.0.0-2.dsc
 536861e29117eb873398ade5aa1277551b278df5 130171 system-config-printer_1.0.0-2.diff.gz
 6bbdead99fea89c872eab3f0edf401608421452c 647114 system-config-printer_1.0.0-2_all.deb
 4618807e5b05bf27994ca9d15942458e726b0d12 61646 python-cupsutils_1.0.0-2_all.deb
Checksums-Sha256: 
 601649c5a7f049e20c032d4978aeaa0899647a0bae64bcbe2f8460dcf23fc7a5 1347 system-config-printer_1.0.0-2.dsc
 ee5a00e72686c3c53075b6751943aaa33a9af1f909c5e35194cc9aafd0d4802a 130171 system-config-printer_1.0.0-2.diff.gz
 6b86286bce1405360927090348802508fe897f39dd0cba5eac1abdabe75e6d7a 647114 system-config-printer_1.0.0-2_all.deb
 79ac7c326e5a37f72c17e463b4cc9d7aa066578a60ca89b337e3fdf5941bad28 61646 python-cupsutils_1.0.0-2_all.deb
Files: 
 7301321e793e1e8e656d22a37ef5e27b 1347 python optional system-config-printer_1.0.0-2.dsc
 dbf73eff18fbfda0266cad1897733554 130171 python optional system-config-printer_1.0.0-2.diff.gz
 2c99f563427e8a9d822b648196b7c238 647114 python optional system-config-printer_1.0.0-2_all.deb
 dcfbadc2dc1bba24dfce9d2955bc2598 61646 python optional python-cupsutils_1.0.0-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFIXomzrSla4ddfhTMRAtgnAJ43LMPTXUGzcfdwZ1zfYnI+oHtnUACfSyNn
SlMaNiWVnN+MfiSyaJcIbzk=
=OBWU
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 01 Aug 2008 07:40:29 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 23 19:34:07 2026; Machine Name: berlioz

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.