Bug 31689 - Okular printing out way more copies than requested.
Summary: Okular printing out way more copies than requested.
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-17 05:35 CET by w unruh
Modified: 2023-04-09 21:20 CEST (History)
2 users (show)

See Also:
Source RPM: okular-20.12.0-1.mga8.src.rpm
CVE:
Status comment:


Attachments

Description w unruh 2023-03-17 05:35:45 CET
Description of problem:
Printing out pdf files from okular.  Single page pdf. The first times printed out 7 copies (Okular->Options->copies selected 7) Instead 72 copies were printed out. (had to shut off printer since I had set up 4 pages that way for printing. All said 72 printed out. )
As a test today, chose a file. Told okular to print out 3 copies of the first page. Instead okular tried to print 18 copies. 

Teh computer where okular was run was remote from the printer that the printer was attached to. 

page.log file on printer computer:

hpd1 pat 2307 [16/Mar/2023:01:07:24 -0700] total 72 1 192.168.0.2 XSane scanned image Letter two-sided-long-edge
hpd1 pat 2308 [16/Mar/2023:01:50:59 -0700] total 72 1 192.168.0.2 XSane scanned image Letter two-sided-long-edge
hpd1 pat 2309 [16/Mar/2023:05:02:57 -0700] total 72 1 192.168.0.2 XSane scanned image Letter two-sided-long-edge
hpd1 pat 2310 [16/Mar/2023:08:08:14 -0700] total 72 1 192.168.0.2 XSane scanned image Letter two-sided-long-edge
hpd1 unruh 2341 [16/Mar/2023:20:40:34 -0700] total 18 1 192.168.0.2 WernerTribute.pdf Letter two-sided-long-edge


In each case the printing came out single sided. 

page.log file on the computer where okular was run

hpd pat 587 [16/Mar/2023:01:07:31 -0700] total 72 1 localhost XSane scanned image Letter two-sided-long-edge
hpd pat 588 [16/Mar/2023:01:51:01 -0700] total 72 1 localhost XSane scanned image Letter two-sided-long-edge
hpd pat 589 [16/Mar/2023:04:57:57 -0700] total 72 1 localhost XSane scanned image Letter two-sided-long-edge
hpd pat 590 [16/Mar/2023:08:03:14 -0700] total 72 1 localhost XSane scanned image Letter two-sided-long-edge
hpd unruh 591 [16/Mar/2023:20:40:37 -0700] total 18 1 localhost WernerTribute.pdf Letter two-sided-long-edge

So it is clear that the problem is on the original computer that the print job was sent from.





Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
Comment 1 Lewis Smith 2023-03-17 21:19:33 CET
Having played with this a bit on a single machine, no sign of the reported fault.
Are you able to try on the machine with the printer?

Since Okular is a KDE application, its print dialogue should be the same as for other KDE applications. Can you try from one of them?

And from a different PDF viewer?
All without actually printing loads of pages.

I could find a 'page.log' file anywhere; it looks useful. Hint?

CC: (none) => lewyssmith

Comment 2 Lewis Smith 2023-03-17 21:27:18 CET
I was on Mageia 9; the report is for Cauldron, but Okular cited Mageia 8.
Please clarify.
My questions remain valid.
Comment 3 w unruh 2023-03-22 05:17:38 CET
repy to 1: I have never seen this with any other program but have not looked to hard. It happens on my wife's machine. I just tried kolourprint. I asked for 2 copies, I got 4.

The page logs on both machines show the excess number of pages having been logged.

On the machine to which the printer is attached, I get the number I asked for always. 
So it is some weirdness on that remote machine.

This is on Mageia 8 I must have hit the wrong manu item when I reported this, sorry.

/var/spool/cups/page.log
I enabled it in /etc/cups/cups-files.conf
PageLog /var/log/cups/page_log

Version: Cauldron => 8

Comment 4 Morgan Leijström 2023-03-22 11:14:44 CET
As a test, if you install the virtual printer boomaga (packaged), and print to that, do that result in correct number of pages?

(That could also solve as a workaround to not print too many pages - Boomaga shows pages and you can from it select what and how to print to which printer.)

CC: (none) => fri

Comment 5 w unruh 2023-04-06 08:58:22 CEST
I tried again to reinstall the printer using system-config-printer and this time it used dnssd instead of ipp to point to the printer host computer. Now it seems to be printing OK. Very strange. 

I just installed boomaga and got a frightening warning message
"lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS." What is that supposed to mean?

But yes my tests shows that it works. I have not been ablt to test the chrome/chromium problem yet.
Comment 6 Lewis Smith 2023-04-09 21:20:07 CEST
(In reply to w unruh from comment #5)
> I tried again to reinstall the printer using system-config-printer and this
> time it used dnssd instead of ipp to point to the printer host computer. Now
> it seems to be printing OK. Very strange. 
> But yes my tests shows that it works.
So closing fixed. Thank you for your manoeuvres.

> I just installed boomaga and got a frightening warning message
> "lpadmin: Printer drivers are deprecated and will stop working in a future
> version of CUPS." What is that supposed to mean?
What it says, but not for you to worry about. Presumably CUPS has something up its sleeve for the future.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.