The problem is most probably that the PPD archive issues a Traceback
when it simply gets killed,

It can easily be reproduced by running the command

/usr/lib/cups/driver/openprinting-ppds list | less

and then pressing immediately "q" without scrolling down to the end of
the list before.Then openprinting-ppds has not yet finished listing but
less gets already closed and so the shell kills openprinting-ppds. This
leads to a traceback of openprinting-ppds (it is a Python program).

Solution is to wrap the main function of openprinting-ppds in a "try:
... except: pass", so that all runtime errors get caught. This is really
a minimum-invasive fix which cannot cause any regressions. Therefore I
recommend it as a Final Freeze Exception.

The compressed PPD archives are generated by the following source
packages, so the fix needs to be applied in all of them:

foomatic-db, gutenprint, hplip, splix, ptouch-driver


** Also affects: hplip (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: foomatic-db (Ubuntu)
       Status: Incomplete => Confirmed

** Changed in: hplip (Ubuntu)
       Status: New => Triaged

** Changed in: foomatic-db (Ubuntu)
       Status: Confirmed => Triaged

** Changed in: foomatic-db (Ubuntu)
   Importance: Undecided => High

** Changed in: hplip (Ubuntu)
   Importance: Undecided => High

** Also affects: gutenprint (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: gutenprint (Ubuntu)
       Status: New => Triaged

** Changed in: gutenprint (Ubuntu)
   Importance: Undecided => High

** Also affects: splix (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: splix (Ubuntu)
       Status: New => Triaged

** Changed in: splix (Ubuntu)
   Importance: Undecided => High

** Also affects: ptouch-driver (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: ptouch-driver (Ubuntu)
       Status: New => Triaged

** Changed in: ptouch-driver (Ubuntu)
   Importance: Undecided => High

** Changed in: foomatic-db (Ubuntu)
    Milestone: None => ubuntu-10.10

** Changed in: gutenprint (Ubuntu)
    Milestone: None => ubuntu-10.10

** Changed in: hplip (Ubuntu)
    Milestone: None => ubuntu-10.10

** Changed in: ptouch-driver (Ubuntu)
    Milestone: None => ubuntu-10.10

** Changed in: splix (Ubuntu)
    Milestone: None => ubuntu-10.10

** Summary changed:

- openprinting-ppds crashed with IOError in ls()
+ FFE: openprinting-ppds crashed with IOError in ls()

-- 
FFE: openprinting-ppds crashed with IOError in ls()
https://bugs.launchpad.net/bugs/618017
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to