[okular] [Bug 455384] New: Okular blocks/hangs on print function

Aditya Gupta bugzilla_noreply at kde.org
Thu Jun 16 08:41:50 BST 2022


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

            Bug ID: 455384
           Summary: Okular blocks/hangs on print function
           Product: okular
           Version: 22.04.1
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: printing
          Assignee: okular-devel at kde.org
          Reporter: ag15035 at gmail.com
  Target Milestone: ---

SUMMARY

Currently, when printing a file (to a printer using lpr), okular blocks, and
1. Becomes unresponsive
2. No new files are opened, they will open only after it becomes responsive

This is especially noticeable on printing a large document (>20 pages for me)

STEPS TO REPRODUCE
1. Open a pdf file
2. Print to a printer (not file), may also choose Page set as Odd or even

OBSERVED RESULT
Okular becomes unresponsive. Cannot scroll. Cannot open new files.

EXPECTED RESULT
Okular keeps working, possibly showing a loading sign that "printing in
process"

SOFTWARE/OS VERSIONS
Linux: Arch Linux
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4 (built against 5.15.3)

ADDITIONAL INFORMATION
## Possible solution

I thought it should be some call which is blocking on the main thread, so
looking for it, I found this call:

https://invent.kde.org/graphics/okular/-/blob/master/core/fileprinter.cpp#L141

I think, instead of calling `doPrintFiles` should happen in another process (I
am assuming, the pop-up window is a different process). I can't fix it, since I
just don't know much Qt as of now :)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list