system-config-printer/applet.py should be implemented with a binary executable

Bug #1074286 reported by Jérôme on 2012-11-02
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
system-config-printer (Ubuntu)
Low
Unassigned

Bug Description

After loging into XFCE environment, I see with "top" that /usr/share/system-config-printer/applet.py consumes 22MB of physical memory, just behind X.

Most of the time, the printer applet does nothing and thus wastes memory.

I think that this applet should be implemented with a compiler which create a binary executable instead of writing a python script or python byte code which will never reach the performances of a binary executable (speed and memory).

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: system-config-printer-gnome 1.3.11+20120807-0ubuntu10
ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5
Uname: Linux 3.5.0-17-generic x86_64
ApportVersion: 2.6.1-0ubuntu6
Architecture: amd64
CurrentDmesg: [ 913.672003] mtrr: no MTRR for e0000000,1000000 found
Date: Fri Nov 2 10:32:45 2012
InstallationDate: Installed on 2012-10-20 (12 days ago)
InstallationMedia: Xubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.1)
Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: No destinations added.
Lsusb: Error: command ['lsusb'] failed with exit code 1: unable to initialize libusb: -99
MachineType: innotek GmbH VirtualBox
MarkForUpload: True
PackageArchitecture: all
Papersize: a4
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.5.0-17-generic root=UUID=cd43b074-5f0e-46e5-8362-13424056d921 ro quiet splash vt.handoff=7
SourcePackage: system-config-printer
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/01/2006
dmi.bios.vendor: innotek GmbH
dmi.bios.version: VirtualBox
dmi.modalias: dmi:bvninnotekGmbH:bvrVirtualBox:bd12/01/2006:svninnotekGmbH:pnVirtualBox:pvr1.2:
dmi.product.name: VirtualBox
dmi.product.version: 1.2
dmi.sys.vendor: innotek GmbH
---
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
CupsErrorLog: Error: [Errno 13] Permission non accordée: '/var/log/cups/error_log'
CurrentDesktop: XFCE
DistroRelease: Ubuntu 16.04
Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: No destinations added.
MachineType: Dell Inc. Latitude E6430
Package: system-config-printer (not installed)
Papersize: a4
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-137-generic root=UUID=19fbf7a9-ba26-43ce-9f73-2ffc42922043 ro quiet
ProcVersionSignature: Ubuntu 4.4.0-137.163-generic 4.4.144
Tags: xenial
Uname: Linux 4.4.0-137-generic x86_64
UpgradeStatus: Upgraded to xenial on 2017-09-02 (398 days ago)
UserGroups: audio cdrom fuse plugdev sudo vboxusers video
_MarkForUpload: True
dmi.bios.date: 10/08/2012
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A07
dmi.board.name: 08R94K
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 9
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA07:bd10/08/2012:svnDellInc.:pnLatitudeE6430:pvr01:rvnDellInc.:rn08R94K:rvr:cvnDellInc.:ct9:cvr:
dmi.product.name: Latitude E6430
dmi.product.version: 01
dmi.sys.vendor: Dell Inc.

Jérôme (jerome-bouat) wrote :
gf (gf-interlinks) wrote :

Hello Jérôme,
Thank you for submitting this bug and reporting a problem with the system-config-printer package. You made this bug report in 2012 and Ubuntu and the system-config-printer package have been updated since then.

Could you confirm that this is no longer a problem and that we can close the ticket?
If it is still a problem, are you still interested in finding a solution to this bug?
If you are, could you let us know and, in the current version, could you run the following (only once):
apport-collect 1074286
and upload the updated logs and and any other logs that are relevant for this particular issue.

Thank you again for helping make Ubuntu better.
G
[Ubuntu Bug Squad volunteer triager]

Changed in system-config-printer (Ubuntu):
status: New → Incomplete

apport information

tags: added: apport-collected xenial
description: updated

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

gf (gf-interlinks) wrote :

Hi Jérôme,
For the ease of the programmers, I will add a summery here to complete the bug report. Please feel free to add any corrections.
Could you also attach a screen print of the output from Top showing the problem?
-----------------------

SUMMARY:
Ubuntu version: Ubuntu 16.04.10
system-Package: system-config-printer-gnome 1.3.11+20120807-0ubuntu10
Problem is reproducable by the reporter.

Steps to reproduce:
1. in XFCE, open terminal
2. run command “Top”
3. type “M” to sort list with highest usage on the top
4. note /usr/share/system-config-printer/applet.py is taking 22MB of memory when not in use.

Actual behaviour: Applet.py takes 22 MB of memory, when not in use.

Expected behaviour: Applet.py should take less memory when not in use.

Additional notes:
Bug triager is unable to reproduce this issue.

Thanks
G

gf (gf-interlinks) on 2018-10-06
Changed in system-config-printer (Ubuntu):
status: Incomplete → New
Jérôme (jerome-bouat) wrote :

The total resident memory is ~30 MB including 14 MB of shared memory.

gf (gf-interlinks) wrote :

Thanks for the screen shot, Jérôme.
:)
G

Programmers: in the attached screen shot, it is the third line in the list.

gf (gf-interlinks) wrote :

Could someone in the bug control team change this bug to "triaged" and "low," please? :)
Thanks
G

summary: - applet should be implemented with a binary executable
+ system-config-printer/applet.py should be implemented with a binary
+ executable
C de-Avillez (hggdh2) wrote :

Setting to Triaged/Low as requested.

Changed in system-config-printer (Ubuntu):
importance: Undecided → Low
status: New → Triaged
To post a comment you must log in.