Bug 109717 - printing is broken in kde
Summary: printing is broken in kde
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: khtml printing (show other bugs)
Version: 3.4.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Allan Sandfeld
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-27 16:08 UTC by p92
Modified: 2005-09-07 17:28 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
cups error log debug mode (20.41 KB, text/plain)
2005-07-27 16:12 UTC, p92
Details
cups error log debug with firefox printing (20.17 KB, text/plain)
2005-07-27 16:19 UTC, p92
Details
PS print file generated by konqueror (113.20 KB, application/gzip)
2005-07-27 20:25 UTC, p92
Details
gs error while printing to PS file from konqueror (50.15 KB, image/jpeg)
2005-07-27 20:30 UTC, p92
Details
latest google frontpage PS print from konqueror 3.4.2 (200.85 KB, application/postscript)
2005-07-29 17:25 UTC, p92
Details
cups error with print1.ps (18.05 KB, text/plain)
2005-07-29 17:28 UTC, p92
Details
Subversion diff from commit 419062 (2.38 KB, patch)
2005-08-23 13:14 UTC, Thiago Macieira
Details

Note You need to log in before you can comment on or make changes to this bug.
Description p92 2005-07-27 16:08:41 UTC
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.
Comment 1 p92 2005-07-27 16:12:12 UTC
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
Comment 2 p92 2005-07-27 16:19:11 UTC
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
Comment 3 Allan Sandfeld 2005-07-27 17:41:12 UTC
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.
Comment 4 p92 2005-07-27 20:25:30 UTC
Created attachment 11953 [details]
PS print file generated by konqueror
Comment 5 p92 2005-07-27 20:30:56 UTC
Created attachment 11954 [details]
gs error while printing to PS file from konqueror

printing to a PS file gives a gs error
Comment 6 p92 2005-07-27 20:32:36 UTC
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.
Comment 7 p92 2005-07-29 17:24:27 UTC
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.
Comment 8 p92 2005-07-29 17:25:42 UTC
Created attachment 11986 [details]
latest google frontpage PS print from konqueror 3.4.2
Comment 9 p92 2005-07-29 17:28:48 UTC
Created attachment 11987 [details]
cups error with print1.ps
Comment 10 Mate Car 2005-08-11 01:35:53 UTC
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.
Comment 11 Alex Sidorenko 2005-08-12 13:54:55 UTC
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.
Comment 12 Alex Sidorenko 2005-08-12 17:25:39 UTC
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)
 
Comment 13 Mate Car 2005-08-17 21:27:14 UTC
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."
Comment 14 p92 2005-08-23 09:41:33 UTC
Mate:  could you give a link  to the trolltech patch, i'm unable to find it
Comment 15 Thiago Macieira 2005-08-23 13:14:02 UTC
Created attachment 12343 [details]
Subversion diff from commit 419062

websvn.kde.org is down, so I am attaching the patch here.
Comment 16 p92 2005-09-07 17:28:27 UTC
thank you - ubuntu has released patched QT - now it works again