Summary: | KPrinter fails to parse PPDs and shows incorrect printer options, but CUPS itself works correctly with same PPDs | ||
---|---|---|---|
Product: | [Unmaintained] kdeprint | Reporter: | Andreas Koch <ahk> |
Component: | general | Assignee: | KDEPrint Devel Mailinglist <kde-print-devel> |
Status: | CLOSED WORKSFORME | ||
Severity: | major | CC: | cimmino.marco, jlayt |
Priority: | HI | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
PPD HP LaserJet 2430 DTN
Screen capture of incorrect KPrinter properties dialog PPD for Lexmark Optra T610n printer, works in CUPS but fails in KDEPrint |
Description
Andreas Koch
2007-02-26 12:49:34 UTC
Created attachment 19826 [details]
PPD HP LaserJet 2430 DTN
Created attachment 19827 [details]
Screen capture of incorrect KPrinter properties dialog
I confirm this bug. I recently experienced a similar situation, but had no time to investigate further. (And right now I've neither time [or even a Linux PC system] to do so.) If this is now biting other users as well, this is a serious problem. (I initially thought it may be only a local problem of the box I was using at the time.) ---------- [AFAIK, KDEPrint does not use the CUPS API to parse the PPDs; it does "its own thing", but I can't remember the details.] Additional thought: HP have submitted their "For Macintosh only"-tagged PPDs to Linuxprinting.org since some time already. They seem to work just fine for CUPS/Linux too, but nevertheless I mildly complained, because they may lead to user confusion. They also contain some Apple-specific statements and paths [which normally should be ignored by any PPD-processing application if they don't understand them]. Now I wonder if this could contribute to this bug? Andreas, can you check if this is the case (that all failing PPDs in KDEPrint are "For Macintosh only" ones)? No, a PPD for a a Lexmark Optra T610n PostScript laser printer shows the same symptoms. For reference, I also attach that PPD, which works perfectly in CUPS. So the problem appears to extend beyond any possible Mac-isms in the HP PPDs. Created attachment 19840 [details]
PPD for Lexmark Optra T610n printer, works in CUPS but fails in KDEPrint
The erroneous behavior reported here appears to be due to a -O3 optimization problem in GCC 4.1.1 (specifically, the Gentoo ebuild gcc-4.1.1-r3). When compiling kdelibs and kdebase with -O2 instead, KDEPrint does parse the PPDs successfully (kprinter doesn't output a warning), and shows the correct printer options in the Properties dialog. Andreas why you have closed the bug? Bug appears also in Kubuntu Feisty 7.04 for a lot of people and for a lot of variety of printers, like me with all canon pixma ip family. All is compiled with gcc 4.1.2 but don't know if flag -O3 is responsible or not. Closing as worksforme doesn't help us. https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/99372 > Andreas why you have closed the bug?
Cimmo,
in our case, the optimization level definitely made the difference. On the new system described above, switching from -O3 to -O2 removed the error. Our older systems, which were compiled with -O2 right from the start, never showed the symptoms at all. So, at least in the case of the HP and Lexmark PPDs I used, KDEPrint itself seems innocent.
It is of course possible that other, actual errors show up for other PPDs, such as the Canon PPDs you mention. In that case, you should open a new bug report here (with a possible link to this report) and attach your PPDs.
Closing old Resolved status bug. |