Bug 615727

Summary: [abrt] crash in system-config-printer-1.2.3-3.fc13: jobviewer.py:136:_map_printer:KeyError
Product: [Fedora] Fedora Reporter: Gabriel PREDA <gabriel>
Component: system-config-printerAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: jpopelka, prinseer, tomek, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: abrt_hash:6d2d6e2b
Fixed In Version: system-config-printer-1.2.4-2.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-15 05:28:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace none

Description Gabriel PREDA 2010-07-18 10:02:35 UTC
abrt 1.1.1 detected a crash.

architecture: x86_64
cmdline: python /usr/share/system-config-printer/applet.py
component: system-config-printer
executable: /usr/share/system-config-printer/applet.py
kernel: 2.6.33.6-147.fc13.x86_64
package: system-config-printer-1.2.3-3.fc13
reason: jobviewer.py:136:_map_printer:KeyError
release: Fedora release 13 (Goddard)

backtrace
-----
jobviewer.py:136:_map_printer:KeyError

Traceback (most recent call last):
  File "/usr/share/system-config-printer/monitor.py", line 483, in get_notifications
    fn (*args)
  File "/usr/share/system-config-printer/jobviewer.py", line 1746, in job_event
    self.update_job (jobid, jobdata)
  File "/usr/share/system-config-printer/jobviewer.py", line 925, in update_job
    self.update_sensitivity ()
  File "/usr/share/system-config-printer/jobviewer.py", line 1115, in update_sensitivity
    printer = self.printer_uri_index.lookup (uri)
  File "/usr/share/system-config-printer/jobviewer.py", line 110, in lookup
    return self._map_printer (uri=uri, connection=connection)
  File "/usr/share/system-config-printer/jobviewer.py", line 136, in _map_printer
    raise KeyError
KeyError

Local variables in innermost frame:
self: <jobviewer.PrinterURIIndex instance at 0x1c59e60>
connection: <cups.Connection object for /var/run/cups/cups.sock at 0x1e183f0>
r: ['printer-name', 'printer-uri-supported', 'printer-more-info']
name: None
uri: u'ipp://hp.e-radical.ro:0/printers/HP-Officejet-5600-series'

Comment 1 Gabriel PREDA 2010-07-18 10:02:38 UTC
Created attachment 432683 [details]
File: backtrace

Comment 3 tomek 2010-08-12 23:17:49 UTC
Package: system-config-printer-1.2.3-3.fc13
Architecture: x86_64
OS Release: Fedora release 13 (Goddard)


How to reproduce
-----
1.Addition of printers in LAN without accepting authentication
2.Marked one of printers as default for system
3.Ordered to print test page
4.Task was waiting for execution
5.After an hour i clicked printing info in top right corner of the screen

Comment 4 Fedora Update System 2010-08-26 11:53:18 UTC
system-config-printer-1.2.4-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/system-config-printer-1.2.4-1.fc13

Comment 5 Fedora Update System 2010-08-26 11:55:50 UTC
system-config-printer-1.2.4-1.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/system-config-printer-1.2.4-1.fc14

Comment 6 Fedora Update System 2010-08-26 18:36:14 UTC
system-config-printer-1.2.4-1.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update system-config-printer'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/system-config-printer-1.2.4-1.fc14

Comment 7 Fedora Update System 2010-09-13 18:08:22 UTC
system-config-printer-1.2.4-2.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/system-config-printer-1.2.4-2.fc14

Comment 8 Fedora Update System 2010-09-15 05:27:58 UTC
system-config-printer-1.2.4-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2010-09-15 07:17:18 UTC
system-config-printer-1.2.4-2.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.