Bug 421670 - Okular hangs when printing pages specified in "Print range -> Pages"
Summary: Okular hangs when printing pages specified in "Print range -> Pages"
Status: RESOLVED DUPLICATE of bug 389206
Alias: None
Product: okular
Classification: Applications
Component: printing (show other bugs)
Version: 1.10.1
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-17 10:50 UTC by Jeremy Lorelli
Modified: 2020-05-18 05:45 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Example of input that causes Okular to hang. (43.44 KB, image/png)
2020-05-17 10:50 UTC, Jeremy Lorelli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Lorelli 2020-05-17 10:50:06 UTC
Created attachment 128537 [details]
Example of input that causes Okular to hang.

SUMMARY
Okular hangs when printing a specific page specified using the Pages box in the Print dialog.

STEPS TO REPRODUCE
1. File->Print
2. Click Options, then Copies tab
3. Enter pages in the box named "Pages" in the "Print Range" section
4. Click Print

OBSERVED RESULT
Okular hangs and needs to be killed.

EXPECTED RESULT
Okular should print the pages specified in there. I've tested the other Print ranges and they all seem to work fine. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.6.7-1-MANJARO
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION
I'm not sure when this issue first appeared, as it's the first time I've tried to print individual pages like that.
Comment 1 Albert Astals Cid 2020-05-17 15:22:32 UTC
Given how this works, are you sure it's hung or just slow. Given limitations in the implementation, this "pre-prints" all the pages, and then only actually prints one.

Is your CPU at 100%? If you give it "lots of time" does it eventually work?
Comment 2 Yuri Chornoivan 2020-05-17 15:24:12 UTC
Currently, Okular cannot print arbitrary page ranges, see

https://bugs.kde.org/show_bug.cgi?id=389206

Can you confirm that printing of the small PDFs (~10 pages) with the "Pages:" option does not hang Okular but results in the whole document to be printed?

Thanks in advance for your answer.
Comment 3 Jeremy Lorelli 2020-05-17 23:01:03 UTC
Thanks for the replies :)

I just tested it and, yes, it does max out CPU usage and eventually adds the job to the print queue after about 15 minutes. Wasn't able to get it to actually print, but that might just be an issue with my printer.

When testing a small document (~30 pages), I was able to print individual pages using the "Pages: " input. When using the "print to pdf" option though, the entire PDF is saved.
Comment 4 Yuri Chornoivan 2020-05-18 05:45:06 UTC

*** This bug has been marked as a duplicate of bug 389206 ***