Bug 143643

Summary: Number of pages is 0 for every job I print
Product: [Unmaintained] kdeprint Reporter: Yuriy Padlyak <YuriyPadlyak>
Component: kjobviewerAssignee: KDEPrint Devel Mailinglist <kde-print-devel>
Status: CLOSED NOT A BUG    
Severity: normal CC: jlayt
Priority: NOR    
Version: 0.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Number of pages is 0 for every job I print

Description Yuriy Padlyak 2007-03-30 20:27:25 UTC
Version:           0.1 (using KDE 3.5.6, Kubuntu (feisty) 4:3.5.6-0ubuntu13)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.20-13-386

Number of pages is 0 for every job I print. See screenshot
Comment 1 Yuriy Padlyak 2007-03-30 20:28:37 UTC
Created attachment 20133 [details]
Number of pages is 0 for every job I print
Comment 2 Kurt Pfeifle 2007-03-30 21:13:33 UTC
Yuriy,

this is (very likely) not a KDEPrint bug.

KDEPrint asks CUPS about the number of pages that were printed, and has to rely on the information it gets from CUPS.

What info do you find in /var/log/cups/page_log when you open it with a text editor or a pager? (The first field of each line will tell you the printer name, the 2nd will tell you the CUPS job ID. The last field should contain the IPP attribute "job-originating-host-name", the last but one very likely only will say "-", but the next will tell you the page number and the number of copies for each page.)

What do you see if you point Konqueror to

   http://localhost:631/jobs?which_jobs=completed

Does it show page sizes there?
Comment 3 Yuriy Padlyak 2007-03-31 10:00:06 UTC
Hi Kurt,

The /var/log/cups/page_log log is empty.
http://localhost:631/jobs?which_jobs=completed shows "Unknown" in pages
column.

On 30 Mar 2007 19:13:35 -0000, Kurt Pfeifle <pfeifle@kde.org> wrote:
[bugs.kde.org quoted mail]



Hi Kurt,<br><br>The /var/log/cups/page_log log is empty. <br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://localhost:631/jobs?which_jobs=completed" target="_blank">http://localhost:631/jobs?which_jobs=completed
</a> shows &quot;Unknown&quot; in pages column. <br><br><div><span class="gmail_quote">On 30 Mar 2007 19:13:35 -0000, <b class="gmail_sendername">Kurt Pfeifle</b> &lt;<a href="mailto:pfeifle@kde.org">pfeifle@kde.org</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">------- You are receiving this mail because: -------<br>You reported the bug, or are watching the reporter.
<br><br><a href="http://bugs.kde.org/show_bug.cgi?id=143643">http://bugs.kde.org/show_bug.cgi?id=143643</a><br><br><br><br><br>------- Additional Comments From pfeifle kde org&nbsp;&nbsp;2007-03-30 21:13 -------<br>Yuriy,<br><br>this is (very likely) not a KDEPrint bug.
<br><br>KDEPrint asks CUPS about the number of pages that were printed, and has to rely on the information it gets from CUPS.<br><br>What info do you find in /var/log/cups/page_log when you open it with a text editor or a pager? (The first field of each line will tell you the printer name, the 2nd will tell you the CUPS job ID. The last field should contain the IPP attribute &quot;job-originating-host-name&quot;, the last but one very likely only will say &quot;-&quot;, but the next will tell you the page number and the number of copies for each page.)
<br><br>What do you see if you point Konqueror to<br><br>&nbsp;&nbsp; <a href="http://localhost:631/jobs?which_jobs=completed">http://localhost:631/jobs?which_jobs=completed</a><br><br>Does it show page sizes there?<br></blockquote>
</div><br><br clear="all"><br>-- <br>Best regards, <br>Yuriy Padlyak
Comment 4 Kurt Pfeifle 2007-03-31 13:49:53 UTC
Yuriy,

this means that the problem is not in KDEPrint, but in CUPS' logging of the page count.

I'm guessing that you're using a version of a "third party" Foomatic driver/PPD that is too old and contains a bug re. the page accounting. (See also http://www.cups.org/newsgroups.php?s3635). (With "third party" I mean: does not ship as part of CUPS, but may usually still work well with CUPS).

Try to update. Use the latest version of "foomatic-rip" available from www.linuxprinting.org (http://www.openprinting.org/download/foomatic/).

If that does not help, then please report the problem to the (now moved) general forum of linuxprinting.org: http://forums.freestandards.org/list.php?19

If you do so, please state exact versions of your Linux distro, your printer model, and the printer driver+PPD you're using.

Cheers,
Kurt
Comment 5 John Layt 2008-12-31 20:47:26 UTC
Closing old Resolved status bug.