system-config-printer.py crashed with KeyError in on_job_retrieve_activate(): 'document-count'

Bug #1041613 reported by Felix Möller
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
system-config-printer (Ubuntu)
Fix Released
Medium
salman karim

Bug Description

I pressed the "Abrufen" (Call, Access, Fetch) button on an old Job in the print history, because I had no idea what it would do...

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: system-config-printer-gnome 1.3.11+20120807-0ubuntu3
ProcVersionSignature: Ubuntu 3.5.0-11.11-generic 3.5.2
Uname: Linux 3.5.0-11-generic x86_64
ApportVersion: 2.5.1-0ubuntu2
Architecture: amd64
CrashCounter: 1
Date: Sat Aug 25 20:35:21 2012
ExecutablePath: /usr/share/system-config-printer/system-config-printer.py
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120331)
InterpreterPath: /usr/bin/python2.7
Lpstat:
 p11-kit: duplicate configured module: gnome-keyring.module: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so
 device for Generic-PCL-6-PCL-XL: socket://192.168.178.3:9100
 device for Kyocera-Mita-FS-1350DN-KPDL: ipp://laser:631/ipp
MachineType: LENOVO 6474A46
PackageArchitecture: all
Papersize: a4
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
PpdFiles:
 Generic-PCL-6-PCL-XL: Generic PCL 6/PCL XL Printer Foomatic/pxlcolor (recommended)
 Kyocera-Mita-FS-1350DN-KPDL: Kyocera FS-1350DN (KPDL)
ProcCmdline: /usr/bin/python /usr/share/system-config-printer/system-config-printer.py --show-jobs Kyocera-Mita-FS-1350DN-KPDL
ProcEnviron:
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.5.0-11-generic root=UUID=b32d85c9-d1fb-49ca-8c94-c64d321221b3 ro quiet splash vt.handoff=7
PythonArgs: ['/usr/share/system-config-printer/system-config-printer.py', '--show-jobs', 'Kyocera-Mita-FS-1350DN-KPDL']
SourcePackage: system-config-printer
Title: system-config-printer.py crashed with KeyError in on_job_retrieve_activate(): 'document-count'
Traceback:
 Traceback (most recent call last):
   File "/usr/share/system-config-printer/jobviewer.py", line 1376, in on_job_retrieve_activate
     document_count=attrs['document-count']
 KeyError: 'document-count'
UpgradeStatus: Upgraded to quantal on 2012-08-02 (22 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 04/19/2010
dmi.bios.vendor: LENOVO
dmi.bios.version: 7UET86WW (3.16 )
dmi.board.name: 6474A46
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr7UET86WW(3.16):bd04/19/2010:svnLENOVO:pn6474A46:pvrThinkPadT400:rvnLENOVO:rn6474A46:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 6474A46
dmi.product.version: ThinkPad T400
dmi.sys.vendor: LENOVO

Revision history for this message
Felix Möller (felix-derklecks) wrote :
tags: removed: need-duplicate-check
Changed in system-config-printer (Ubuntu):
importance: Undecided → Medium
visibility: private → public
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in system-config-printer (Ubuntu):
status: New → Confirmed
Revision history for this message
Yann Dìnendal (yannbreliere) wrote :

I was trying to resend a job to the printer because nothing was happening... and nothing happened. Except apport that told me I had this bug.

Revision history for this message
Tim Waugh (twaugh) wrote :

I've added a check for this upstream.

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

This bug was fixed in the package system-config-printer - 1.3.12+20130308-0ubuntu1

---------------
system-config-printer (1.3.12+20130308-0ubuntu1) raring; urgency=low

  * New upstream release
     o GIT 1.3.x snapshot from 8 March 2013
     o State of 1.3.12 release plus further development
     o Updated translations
     o Driver auto-download via OpenPrinting
     o GTK-less PolicyKit-only authentication in scp-dbus-service
     o Suppression of discontinued CUPS Feature in "Server Settings"
     o Don't rely on document-count being present (LP: #1041613)
     o Fixed layout of Ink/Toner Levels page (LP: #1108860)
     o Many other bug fixes.
  * debian/patches/07_driver-auto-download-configuration.patch: Configuration
    for driver auto-download via OpenPrinting: Allow installing packages and
    also non-free software.
  * debian/patches/40_driver-autodownload-support-signed-ppd-packages-plus-more-fixes.patch:
    Updated to apply to new upstream source code.
  * debian/patches/15_cupshelpers-openprinting-query-fingerprint-support.patch,
    debian/patches/30_driver-autodownload.patch,
    debian/patches/33_scp-dbus-service-policy-kit-only-auth-on-non-gtk-systems.patch,
    debian/patches/35_server-settings-dont-show-widgets-of-obsolete-cups-features.patch:
    Removed, included upstream.
  * debian/local/70-printers.rules, debian/system-config-printer-udev.install:
    Use old non-systemd UDEV rules.
 -- Till Kamppeter <email address hidden> Fri, 08 Mar 2013 12:22:29 +0100

Changed in system-config-printer (Ubuntu):
status: Confirmed → Fix Released
Changed in system-config-printer (Ubuntu):
assignee: nobody → salman karim (salmankarim1978)
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.