abrt 1.0.0 detected a crash. How to reproduce ----- 1. Just went to print over network server 2. 3. backtrace ----- Summary: TBbdaa6caf statereason.py:129:get_description:RuntimeError: cupsGetPPD2 failed Traceback (most recent call last): File "/usr/share/system-config-printer/applet.py", line 436, in <module> trayicon=trayicon) File "/usr/share/system-config-printer/jobviewer.py", line 317, in __init__ encryption=self.encryption) File "/usr/share/system-config-printer/monitor.py", line 166, in __init__ self.refresh () File "/usr/share/system-config-printer/monitor.py", line 583, in refresh self.update_jobs (jobs) File "/usr/share/system-config-printer/monitor.py", line 713, in update_jobs self.check_state_reasons (my_printers, printer_jobs) File "/usr/share/system-config-printer/monitor.py", line 292, in check_state_reasons self.watcher.state_reason_added (self, reason) File "/usr/share/system-config-printer/jobviewer.py", line 1380, in state_reason_added (title, text) = reason.get_description () File "/usr/share/system-config-printer/statereason.py", line 129, in get_description f = self.connection.getPPD(self.printer) RuntimeError: cupsGetPPD2 failed Local variables in innermost frame: self: <statereason.StateReason (WARNING,i865,com.apple.print.recoverable)> messages: {'media-low': ('Paper low', "Printer '%s' is low on paper."), 'toner-empty': ('Toner empty', "Printer '%s' has no toner left."), 'connecting-to-device': ('Not connected?', "Printer '%s' may not be connected."), 'door-open': ('Door open', "The door is open on printer '%s'."), 'media-empty': ('Out of paper', "Printer '%s' is out of paper."), 'marker-supply-empty': ('Ink empty', "Printer '%s' has no ink left."), 'toner-low': ('Toner low', "Printer '%s' is low on toner."), 'cover-open': ('Cover open', "The cover is open on printer '%s'."), 'marker-supply-low': ('Ink low', "Printer '%s' is low on ink."), 'other': ('Printer error', "There is a problem on printer '%s'."), 'offline': ('Printer off-line', "Printer '%s' is currently off-line.")} title: Printer warning cmdline: python /usr/share/system-config-printer/applet.py component: system-config-printer executable: /usr/share/system-config-printer/applet.py kernel: 2.6.31.6-145.fc12.i686.PAE package: system-config-printer-1.1.13-10.fc12 uuid: bdaa6caf
Created attachment 375796 [details] File: backtrace
Thanks for the report. If it is reproducible please run the printing troubleshooter. System->Administration->Printing, then Help->Troubleshoot from the menu bar. Select your printer, enable debugging, try to print test page and save the diagnostic output. Attach the output to this bug report. Thanks.
I've found the problem actually: although StateReason.get_description() handles cups.IPPError exceptions, the cups.getPPD call can additionally raise a RuntimeError exception if the underlying cupsGetPPD2 function fails without there being any IPP error status. This can happen if (for example) there is no PPD for the queue, or if we failed to connect to the remote CUPS server. I've added RuntimeError to the 'except' line to catch this.
Affects: Fedora 11, Fedora 12, Fedora devel.
system-config-printer-1.1.15-3.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-10893
system-config-printer-1.1.15-3.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-12094
system-config-printer-1.1.15-6.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.
system-config-printer-1.1.15-6.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.