Bug 541882 - [abrt] marker-levels=None causes traceback
Summary: [abrt] marker-levels=None causes traceback
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-printer
Version: 12
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:fbe0d1ae
: 550394 (view as bug list)
Depends On:
Blocks: 553310
TreeView+ depends on / blocked
 
Reported: 2009-11-27 12:19 UTC by piio
Modified: 2010-01-18 10:29 UTC (History)
13 users (show)

Fixed In Version: 1.1.16-8.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 553310 (view as bug list)
Environment:
Last Closed: 2010-01-15 22:04:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (608 bytes, text/plain)
2009-11-27 12:19 UTC, piio
no flags Details
strace results as asked for (231.46 KB, text/plain)
2010-01-06 04:08 UTC, Michal Jaegermann
no flags Details
strace results for a different printer (342.30 KB, text/plain)
2010-01-06 06:15 UTC, Michael Greenberg
no flags Details
system-config-printer --debug output (1.67 KB, text/plain)
2010-01-06 14:05 UTC, Michael Greenberg
no flags Details

Description piio 2009-11-27 12:19:36 UTC
abrt detected a crash.

Attached file: backtrace
cmdline: python /usr/share/system-config-printer/system-config-printer.py 
component: system-config-printer
executable: /usr/share/system-config-printer/system-config-printer.py
kernel: 2.6.31.5-127.fc12.i686.PAE
package: system-config-printer-1.1.13-10.fc12
uuid: fbe0d1ae

Comment 1 piio 2009-11-27 12:19:40 UTC
Created attachment 374208 [details]
File: backtrace

Comment 2 Tim Waugh 2009-11-27 12:38:02 UTC
Please copy and paste this into a terminal window:

python <<"EOF"
import cups
c=cups.Connection()
p=c.getPrinters()
for printer in p.keys():
     attrs = c.getPrinterAttributes(printer)
     keys = filter (lambda x: x.startswith ('marker-'), attrs.keys ())
     print attrs.fromkeys (keys)
EOF

What output do you get?

Comment 3 piio 2009-11-27 12:50:01 UTC
{'marker-change-time': None}
{'marker-names': None, 'marker-types': None, 'marker-levels': None, 'marker-colors': None, 'marker-change-time': None}

Comment 4 Tim Waugh 2009-11-27 13:43:04 UTC
Please attach the /var/cache/cups/*.ipp file corresponding to the queue which caused the system-config-printer crash (or both if you aren't sure which it is).

Comment 5 Tim Waugh 2010-01-04 15:30:35 UTC
*** Bug 550394 has been marked as a duplicate of this bug. ***

Comment 6 Michal Jaegermann 2010-01-04 19:48:29 UTC
HP-LaserJet-4250.ipp for bug 550394 available as attachment (id=381625).

Comment 7 Tim Waugh 2010-01-05 10:22:15 UTC
OK, that doesn't contain those attributes as I'd hoped. :-(

Please copy and paste this into a terminal window:

strace -s2048 2>strace.txt python <<"EOF"
import cups
c=cups.Connection()
p=c.getPrinters()
for printer in p.keys():
     attrs = c.getPrinterAttributes(printer)
EOF

and attach the resulting strace.txt file.

Comment 8 Michal Jaegermann 2010-01-06 04:08:22 UTC
Created attachment 381909 [details]
strace results as asked for 

> ... attach the resulting strace.txt file

Here we go.

Comment 9 Michael Greenberg 2010-01-06 06:15:31 UTC
Created attachment 381919 [details]
strace results for a different printer

strace results for a different printer causing in:
python /usr/share/system-config-printer/system-config-printer.py

Summary: TBfbe0d1ae gtkinklevel.py:66:draw:TypeError: unsupported operand type(s) for /: 'NoneType' and 'float'

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'

Comment 10 Tim Waugh 2010-01-06 13:55:28 UTC
Could you show me the output of 'system-config-printer --debug' when viewing ink levels for the printer that causes the problem please?  I'd like to test a fix, but would like to see this output first...

Comment 11 Michael Greenberg 2010-01-06 14:05:57 UTC
Created attachment 381993 [details]
system-config-printer --debug output

system-config-printer --debug output

Comment 12 Fedora Update System 2010-01-08 19:58:44 UTC
system-config-printer-1.1.16-6.fc12 has been pushed to the Fedora 12 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/F12/FEDORA-2009-13156

Comment 13 Fedora Update System 2010-01-08 20:14:54 UTC
system-config-printer-1.1.16-5.fc11 has been pushed to the Fedora 11 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/F11/FEDORA-2009-13579

Comment 14 Michal Jaegermann 2010-01-09 19:46:19 UTC
system-config-printer-1.1.16-6.fc12 indeed fixes for me that backtrace

Comment 15 Fedora Update System 2010-01-12 23:36:53 UTC
system-config-printer-1.1.16-8.fc11 has been pushed to the Fedora 11 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/F11/FEDORA-2009-13579

Comment 16 Fedora Update System 2010-01-12 23:38:40 UTC
system-config-printer-1.1.16-8.fc12 has been pushed to the Fedora 12 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/F12/FEDORA-2009-13156

Comment 17 Fedora Update System 2010-01-15 22:03:30 UTC
system-config-printer-1.1.16-8.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 18 Fedora Update System 2010-01-15 22:12:00 UTC
system-config-printer-1.1.16-8.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.