system-config-printer crashes during configuration

Bug #925870 reported by Carthik Sharma
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
system-config-printer (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

system-config-printer crashes when trying to configure printers.

Here's the output when it was started from the command line using:
system-config-printer

$ system-config-printer
params.c:OpenConfFile() - Unable to open configuration file "/home/user/.smb/smb.conf":
       No such file or directory
params.c:OpenConfFile() - Unable to open configuration file "/home/user/.smb/smb.conf.append":
       No such file or directory
params.c:OpenConfFile() - Unable to open configuration file "/home/user/.smb/smb.conf":
       No such file or directory
params.c:OpenConfFile() - Unable to open configuration file "/home/user/.smb/smb.conf.append":
       No such file or directory
got no contact to IPC$
Caught non-fatal exception. Traceback:
File "/usr/share/system-config-printer/newprinter.py", line 1975, in on_tvSMBBrowser_row_expanded
   smbc_auth.failed (e)
File "/usr/share/system-config-printer/pysmb.py", line 182, in failed
   raise exc
TimedOutError: (110, 'Connection timed out')
Continuing anyway..

**** Incorrect IEEE 1284 Device ID: [u'drv:///hpcups.drv/hp-color_laserjet_cp2025dn-pcl3.ppd', u'drv:///hpijs.drv/hp-color_laserjet_cp2025dn-hpijs-pcl3.ppd', u'hplip:0/ppd/hplip/HP/hp-color_laserjet_cp2025dn-ps.ppd']
**** Actual ID is MFG:Hewlett-Packard;MDL:HP Color LaserJet CP2025dn;
**** Please report a bug against the HPLIP component
**** Incorrect IEEE 1284 Device ID: [u'drv:///hpcups.drv/hp-color_laserjet_cp2025dn-pcl3.ppd', u'drv:///hpijs.drv/hp-color_laserjet_cp2025dn-hpijs-pcl3.ppd', u'hplip:0/ppd/hplip/HP/hp-color_laserjet_cp2025dn-ps.ppd']
**** Actual ID is MFG:Hewlett-Packard;MDL:HP Color LaserJet CP2025dn;
**** Please report a bug against the HPLIP component
Traceback (most recent call last):
 File "/usr/share/system-config-printer/asyncipp.py", line 197, in send_reply
   handler (self._conn, result)
 File "/usr/share/system-config-printer/asyncconn.py", line 93, in reply_handler
   self._reply_handler (self, self._reply_data, *args)
 File "/usr/share/system-config-printer/asyncconn.py", line 205, in _subst_reply_handler
   reply_handler (self, *args)
 File "/usr/share/system-config-printer/ppdcache.py", line 77, in <lambda>
   self._got_ppd3 (c, name, r, callback),
 File "/usr/share/system-config-printer/ppdcache.py", line 136, in _got_ppd3
   self._cache[name] = file (filename)
IOError: [Errno 2] No such file or directory: '/tmp/4f2b43f39082c'

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Which version of Ubuntu and which version of system-config-printer are you using?

Tim, can it be that this is caused by the changes on PPD caching in 1.3.8?

Changed in system-config-printer (Ubuntu):
status: New → Incomplete
Revision history for this message
Tim Waugh (twaugh) wrote :

Is it reproducible? I've seen one other report of this but can't see a cause:
  https://bugzilla.redhat.com/show_bug.cgi?id=786232

The ppdcache.py changes between 1.3.7 and 1.3.8 look safe to me, and amount to:
1. Moving some debugprints around
2. Removing unused code for handling pycups < 1.9.50
3. Making sure data is written to the temporary file (and fd reclaimed) before we read it back with cups.PPD

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.