Bug 92622 - Never end to generate print pages
Summary: Never end to generate print pages
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml printing (show other bugs)
Version: 3.3.1
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 94393 103507 108034 108850 123630 126393 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-03 09:47 UTC by Werner Franke
Modified: 2006-04-28 09:37 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Werner Franke 2004-11-03 09:47:46 UTC
Version:           3.3.1 (using KDE KDE 3.3.1)
Installed from:    SuSE RPMs
OS:                Linux

On some html pages the konqueror does not end to generate the pages for printing. The
page counter in the Print-Status dialog box is endless counting.
(endless: I stopped when page # > 100)
This appear on:
  http://www.iiv.de/schwinde/buerger/tremmel/suse_m6842nw.html
  http://www.hotel-kristiania.com/deutsch/preise-w.htm
The close button does not stop this action. Only a kill of this konqueror
page stop it.
Comment 1 Stephan Kulow 2004-11-03 10:00:48 UTC
I get exactly 11 pages when I print your first link to a postscript file. I had this before where a printer specified invalid page sizes that konqueror counted forever. 

Does this happen also with printing to file?
Comment 2 Werner Franke 2004-11-03 12:49:50 UTC
Hello Stephan,
see below.

----- Original Nachricht ----
Von:     Stephan Kulow <coolo@kde.org>
An:      wfranke@arcor.de
Datum:   03.11.2004 10:00
Betreff: [Bug 92622] Never end to generate print pages  

> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>         
> http://bugs.kde.org/show_bug.cgi?id=92622        
> 
> ------- Additional Comments From coolo kde org  2004-11-03 10:00 -------
> I get exactly 11 pages when I print your first link to a postscript file. I
> had this before where a printer specified invalid page sizes that konqueror
> counted forever. 
> 
> Does this happen also with printing to file?
> 
Yes. This happens when printing to file also when I select
preview. 

Driver settings: 
  Page Size:                  A4
  Double-Sided Printing:      Long Edge   or Off
  Resolution:                 Printer Default
  GhostScript pre-filtering:  No pre-filtering

It happens on Linux at home and in my office.

Both SuSE 9.0 
KDE 3.3.1 downloaded from 

  ftp://ftp.gwdg.de/pub/suse/i386/supplementary/KDE/update_for_9.0/yast-source

and installed using YasT2 - System-Update

Greetings
  Werner

Arcor-DSL: die echte Flatrate f
Comment 3 Stephan Kulow 2004-11-03 13:51:30 UTC
Print preview is something else. I'm talking about selecting "Print to file" in the printer combobox.
Comment 4 Werner Franke 2004-11-03 13:59:40 UTC
----- Original Nachricht ----
Von:     Stephan Kulow <coolo@kde.org>
An:      wfranke@arcor.de
Datum:   03.11.2004 13:51
Betreff: [Bug 92622] Never end to generate print pages  

> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>         
> http://bugs.kde.org/show_bug.cgi?id=92622        
> 
> 
> 
> 
> ------- Additional Comments From coolo kde org  2004-11-03 13:51 -------
> Print preview is something else. I'm talking about selecting "Print to file"
> in the printer combobox.
> 
Sorry, but this I have written in my answer.
It happens also when I printing to file using "Print to file" in the
printer gui.

Werner

Arcor-DSL: die echte Flatrate f
Comment 5 Stephan Kulow 2004-11-03 14:13:17 UTC
Then I'm afraid it's a bug in 9.0 - as it works fine here (SL 9.2)
Comment 6 Werner Franke 2004-11-04 12:21:05 UTC
According tests of peoples of the suse maillinglist (german) is
the promlem still in SuSE 9.2.
See: http://lists.suse.com/archive/suse-linux/2004-Nov/
Thread: Unendliche Seitenerzeugung beim Drucken in Konqueror
Comment 7 Stephan Kulow 2004-11-04 13:16:48 UTC
OK, I can print your first link reproducible into 11 pages with KDE HEAD. But your second one I stopped after 9 pages that took a very long time to print. I don't think that page should take 9 pages, so I guess it's reproducible on that page. But you can print other pages, right?
Comment 8 Werner Franke 2004-11-04 13:53:21 UTC
Yes. This two links are up to now the only I found with the never ending feature. So I think the problem is very unimportant.
Regards Werner
Comment 9 Stephan Kulow 2004-12-06 17:06:46 UTC
*** Bug 94393 has been marked as a duplicate of this bug. ***
Comment 10 Steve Levine 2005-01-03 03:25:22 UTC
I also got this bug for the first time today.  I tried to print-to-file (both PDF and PS) a several page (with a few large images) web page from ebay.  The printer popup appeared, and then started incrementing with no end.  The cancel button accepted a click, but with no result.  I had to kill konqueror to get any response from it.  No output file was actually created.

The same page printed fine with firefox.

I am using Gentoo with KDE 3.3.0.
Comment 11 Guy Harrison 2005-01-18 03:27:45 UTC
Another page that will not stop...
http://www.dh.gov.uk/PublicationsAndStatistics/PressReleases/PressReleasesNotices/fs/en?CONTENT_ID=4082004&chk=z/YiI3

$ konqueror --version
Qt: 3.3.3
KDE: 3.3.1
Konqueror: 3.3.1

It is writing a tempfile. Do a "/bin/kill -SIGSTOP [busiest kdeinit]" then look in /proc/[id]/fd for the tempfile name. I was printing to file here (but same problem with printer and pdf).

%!PS-Adobe-1.0
%%BoundingBox: 0 0 595 842
%%Creator: KDE 3.3.1 HTML Library
%%Title: http://www.dh.gov.uk/PublicationsAndSt...es/fs/en?CONTENT_ID=4082004&ch
k=z/YiI3
%%CreationDate: Tue Jan 18 01:45:54 2005
%%Orientation: Portrait%%Pages: (atend)
%%DocumentFonts: (atend)
%%EndComments
%%BeginProlog
% Prolog copyright 1994-2003 Trolltech. You may copy this prolog in any way
% that is directly related to this document. For other use of this prolog,
% see your licensing agreement for Qt.
/d/def load def/D{bind d}bind d/d2{dup dup}D/B{0 d2}D/W{255 d2}D/ED{exch d}D
/D0{0 ED}D/LT{lineto}D/MT{moveto}D/S{stroke}D/F{setfont}D/SW{setlinewidth}D
/CP{closepath}D/RL{rlineto}D/NP{newpath}D/CM{currentmatrix}D/SM{setmatrix}D
/TR{translate}D/SD{setdash}D/SC{aload pop setrgbcolor}D/CR{currentfile read
[snip 35Mb]

I know nothing about postscript but...
$ sudo grep BeginFont /tmp/kde-admin/kdeprint_s4VnlpAc
%%BeginFont: Arial Bold
%%BeginFont: Arial-BoldMT
%%BeginFont: Verdana Bold
%%BeginFont: Verdana-Bold
%%BeginFont: Helvetica
%%BeginFont: Arial
%%BeginFont: ArialMT
%%BeginFont: Verdana
%%BeginFont: Verdana
%%BeginFont: Arial Bold
%%BeginFont: Arial-BoldMT
%%BeginFont: Verdana Bold
%%BeginFont: Verdana-Bold
%%BeginFont: Helvetica
%%BeginFont: Arial
%%BeginFont: ArialMT
%%BeginFont: Verdana
%%BeginFont: Verdana
[snip endless repetitions]
Comment 12 Steffen Heimes 2005-03-06 03:29:25 UTC
Here is another Page:
http://de.wikipedia.org/wiki/Kellerautomat

$ konqueror --version
Qt: 3.3.3
KDE: 3.3.2
Konqueror: 3.3.2

with debian sid.

But somehow I had no Problem with the first 3 pages at least with Print-Preview...

The Wikipedia site crashes reproducible with Print-Preview as printing. 
The print to a file works with pdf as with ps. Saved to a local file the plain html without css made no problem.

The pagecount goes fast up to 100 after that it slows down with 80% sys, and 20% usr cpu usage.
Comment 13 Matthias Pospiech 2005-03-11 18:59:51 UTC
Here annother Page: http://mandrakeuser.de/coma/IsdnAvm

With KDE 3.3 on Mandrake 10.1
Comment 14 Panard 2005-03-18 00:40:35 UTC
I've tried to isolate this bug. Look at :
http://dev.inzenet.org/~panard/patches/bug_print.html
It's looping when printing, with kde 3.4 on gentoo.
Comment 15 Feth AREZKI 2005-04-12 19:12:01 UTC
I confirm this bug. Tried on several debian and mandrake boxes, using the default printer or the pdf one.
kde version : 3.2.2
Comment 16 Feth AREZKI 2005-04-13 09:43:44 UTC
*** This bug has been confirmed by popular vote. ***
Comment 17 Frank Aune 2005-05-20 20:04:22 UTC
Ive got another page which triggers this bug:

http://www.mpx.no/aspx/login.aspx?ReturnUrl=%2faspx%2fprdinfo.aspx%3fplid%3d42404&plid=42404

The frontpage to this webshop prints ok, however on the above link Im on 3000+ pages and counting :-P

Using KDE3.4 under Gentoo
Comment 18 Feth AREZKI 2005-05-26 19:36:19 UTC
WORKS IN STOCK KDE 3.4 from debian.

Marvelous. (just printed a wikipedia page fine)
Comment 19 Feth AREZKI 2005-05-26 19:51:01 UTC
Sorry, did'nt work for long, I must admit the bug still exists with the URL quoted above.
Comment 20 Matthias Grimrath 2005-07-07 18:07:48 UTC
Yet another Webpage that triggers this bug using the lastest KDE 3.4.1

https://www.dbfuhrpark-verkauf.de/index.php

Qt: 3.3.3
KDE: 3.4.1
Konqueror: 3.4.1
Comment 21 Allan Sandfeld 2005-07-07 18:57:41 UTC
I will monitor and hopefully fix some of the paginating errors during my Google Summer of Code participation.
Comment 22 Allan Sandfeld 2005-07-10 14:58:58 UTC
*** Bug 108850 has been marked as a duplicate of this bug. ***
Comment 23 Fabio Rossi 2005-07-13 21:53:23 UTC
Some problem here with page http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1&style=printable

I'm usign KDE 3.4.1 compiled from sources (Gentoo).

Qt: 3.3.4
KDE: 3.4.1
Konqueror: 3.4.1

gcc version 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1)

Comment 24 Allan Sandfeld 2005-07-13 23:34:52 UTC
*** Bug 108034 has been marked as a duplicate of this bug. ***
Comment 25 Brian Black 2005-07-15 22:02:32 UTC
hi, another page is
http://alsa.opensrc.org/index.php?page=HowTo+Asynchronous+Playback
Comment 26 Heiko Baums 2005-08-03 11:04:40 UTC
Another page is
http://gentoo-wiki.com/HOWTO_build_a_LiveCD_from_scratch
and other Wiki sites

Btw, if I press the cancel button the window "Printing Status Konqueror" is closed and Konqueror crashes.

Happens with Konqueror 3.4.2 and earlier versions on Gentoo Linux.
Comment 27 Tommi Tervo 2005-08-10 15:37:37 UTC
*** Bug 103507 has been marked as a duplicate of this bug. ***
Comment 28 Heiko Baums 2005-09-05 12:27:18 UTC
It seems that the bug mainly appears on XML sites, maybe not really on pure HTML sites.

Is there a fix in sight?
Comment 29 Allan Sandfeld 2005-09-18 20:17:45 UTC
SVN commit 461805 by carewolf:

Merge of my SoC khtml-paged branch.
Implements real page-breaking logic respecting the CSS 2.1 specification, 
and replacing old buggy hack.
BUG: 57803
BUG: 71202
BUG: 58278
BUG: 92622
BUG: 68930



 M  +30 -0     ChangeLog  
 M  +5 -15     css/html4.css  
 M  +50 -23    khtmlview.cpp  
 M  +10 -1     khtmlview.h  
 M  +156 -4    rendering/bidi.cpp  
 M  +282 -24   rendering/render_block.cpp  
 M  +22 -1     rendering/render_block.h  
 M  +30 -4     rendering/render_box.cpp  
 M  +5 -3      rendering/render_box.h  
 M  +68 -50    rendering/render_canvas.cpp  
 M  +122 -16   rendering/render_canvas.h  
 M  +4 -1      rendering/render_container.cpp  
 M  +25 -1     rendering/render_flow.cpp  
 M  +1 -0      rendering/render_flow.h  
 M  +1 -1      rendering/render_image.cpp  
 M  +16 -0     rendering/render_line.cpp  
 M  +8 -3      rendering/render_line.h  
 M  +0 -19     rendering/render_list.cpp  
 M  +5 -1      rendering/render_object.cpp  
 M  +50 -1     rendering/render_object.h  
 M  +51 -0     rendering/render_style.cpp  
 M  +38 -0     rendering/render_style.h  
 M  +75 -3     rendering/render_table.cpp  
 M  +6 -1      rendering/render_table.h  
 M  +6 -25     rendering/render_text.cpp  
Comment 30 Nicola Ruggero 2005-10-31 18:32:58 UTC
An other page is:
http://orario.trenitalia.com/b2c/TimeTable?stazin=padova&stazout=treviso&datag=08&datam=11&dataa=2005&timsh=05&timsm=00&lang=it&nreq=5&channel=tcom

It generated up to 3000 pages and then I must kill the task to stop it.
I'm using KDE 3.4.2 i will check this behaviour in 3.4.3

cheers
Nicola

Ps. The same page in mozilla 1.7.8 prints correctly.
Comment 31 Heiko Baums 2005-10-31 18:44:36 UTC
See bug #115365.

Quotation of Allan Sandfeld:
It has been closed by KDE 3.5. The change is too large to be backported to KDE 3.4
Comment 32 Germain Garand 2006-03-14 21:31:26 UTC
*** Bug 123630 has been marked as a duplicate of this bug. ***
Comment 33 Tommi Tervo 2006-04-28 09:37:08 UTC
*** Bug 126393 has been marked as a duplicate of this bug. ***