Version: 3.4.1 (using KDE 3.4.2, Kubuntu Package 4:3.4.2-0ubuntu2 ) Compiler: Target: i486-linux-gnu OS: Linux (i686) release 2.6.12-4-686 We currently cannot print anything from kde application (konqueror kmail etc) printing the simple www.google.fr from konqueror gives the attached debug error log on cups. With firefox, the same page prints without problems using cups.
Created attachment 11950 [details] cups error log debug mode error log of cups showing error while printing the frontpage www.google.fr generated by konqueror
Created attachment 11951 [details] cups error log debug with firefox printing to compare this is what is generated by cups error log when printing the same frontpage with firefox
Does it work if you print to PS and then print the file? Because if it does, the error is in the KPrint CUPS backend or in CUPS itself.
Created attachment 11953 [details] PS print file generated by konqueror
Created attachment 11954 [details] gs error while printing to PS file from konqueror printing to a PS file gives a gs error
printing to a PS file from konqueror gives the gs error attached I also attached the generated print.ps file so you can check whether it is valid.
this is the new print1.ps generated for www.google.fr after ubuntu published a fix on hplip hplip (0.9.4-1) unstable; urgency=low . * New upstream version * HPIJS 2.1.4: + Fixed postscript PPD file case sensitivity issue. This issue caused a problem with kprinter now I have no more gs error while generating the PS file, but it won't print with xpp, as it still seems to contain a PS error.
Created attachment 11986 [details] latest google frontpage PS print from konqueror 3.4.2
Created attachment 11987 [details] cups error with print1.ps
Have the same problem here. (KDE 3.4.2, gentoo, gcc-3.4.4) When printing to ps file from a KDE application(khtml,kate,konsole...), it produces bad .ps files.
It seems to be related to GCC-4.0. KDE-3.5 from SVN worked fine for me on Debian/unstable till yesterday. Yesterday Debian moved QT to GCC-4.0 (was GCC-3 built before) , I recompiled 3.5 without updating the sources and generated PS is now broken, just like on Ubuntu.
The problem is related to QT libraries compiled with GCC-4.0.2, as shipped by Debian and Ubuntu: Debian libqt3-mt 3.3.4-6 Ubuntu libqt3-mt 3.3.4-4ubuntu2 I have compiled QT from sources on Debian: gcc version 4.0.2 20050806 (prerelease) (Debian 4.0.1-4) svn://anonsvn.kde.org/home/kde/branches/qt/3.3/qt-copy Setting LD_LIBRARY_PATH=/usr/local/qt/lib makes printing work again, even without any KDE recompilation (tested with KDE-3.5 SVN)
r419062 | binner | 2005-05-28 14:51:46 +0200 (Sat, 28 May 2005) | 6 lines Patch by Trolltech to workaround miscompilation of Qt 3 with gcc 4.0.x. "It results in functions such as QString::number to not work correctly, which in turn results in bugs like generated postscript during printing containing garbage."
Mate: could you give a link to the trolltech patch, i'm unable to find it
Created attachment 12343 [details] Subversion diff from commit 419062 websvn.kde.org is down, so I am attaching the patch here.
thank you - ubuntu has released patched QT - now it works again