Bug 550394

Summary: system-config-printer spills a backtrace
Product: [Fedora] Fedora Reporter: Michal Jaegermann <michal>
Component: system-config-printerAssignee: Tim Waugh <twaugh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: jpopelka, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-04 15:30:35 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
HP-LaserJet-4250.ipp from /var/cache/cups none

Description Michal Jaegermann 2009-12-24 22:55:25 UTC
Description of problem:

The following error shows up:

Traceback (most recent call last):
  File "/usr/share/system-config-printer/gtkinklevel.py", line 60, in expose_event
    self.draw (ctx)
  File "/usr/share/system-config-printer/gtkinklevel.py", line 66, in draw
    fill_point = self._level / 100.0
TypeError: unsupported operand type(s) for /: 'NoneType' and 'float'

It happens when one tries to look at "Ink/Toner Levels" for HP LaserJet 4250 printer.  A visual effect is that one gets three colums and there are "level" icons in the first two with labels underneath ("Black Cartridge ...", "Maitenance Kit ..." and only a label in the third one.  That label happens to be "220V-Q5422A".

Version-Release number of selected component (if applicable):
system-config-printer-1.1.15-6.fc12

How reproducible:
Every time in circumstances described above.

Additional information:
Very far from beeing a showstopper.

Comment 1 Tim Waugh 2010-01-04 15:30:35 UTC
Please attach the /var/cache/cups/*.ipp file corresponding to the queue which
caused the system-config-printer crash.

*** This bug has been marked as a duplicate of bug 541882 ***

Comment 2 Michal Jaegermann 2010-01-04 19:45:48 UTC
Created attachment 381625 [details]
HP-LaserJet-4250.ipp from /var/cache/cups

> Please attach the /var/cache/cups/*.ipp file