Bug 414073 - Print Preview for PDF will crash the current Okular window
Summary: Print Preview for PDF will crash the current Okular window
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: printing (show other bugs)
Version: 1.8.2
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 414937 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-11-12 18:26 UTC by James Flynn
Modified: 2020-02-23 19:08 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Flynn 2019-11-12 18:26:41 UTC
SUMMARY


STEPS TO REPRODUCE
1. Open PDF file in Okular
2. Select "Print Preview" command (ie under under "File" menu)

OBSERVED RESULT
Window will become unresponsive and shortly crash

EXPECTED RESULT
Trigger window to preview the expected print. If this requires additional setup first (ie an addon, backend, or additional program be installed), present a warning to the user and stop execution.

SOFTWARE/OS VERSIONS
Windows: Windows 7 (Version	6.1.7601 Service Pack 1 Build 7601)
KDE Plasma Version: N/A (Windows windowing system(?))
KDE Frameworks Version: KDE Frameworks 5.63.0
Qt Version: Qt 5.13.1 (built against 5.13.1)

ADDITIONAL INFORMATION

Okular was installed from the latest release executable before reporting; thus far reproducible across multiple pdfs of varying size.
Comment 1 James Flynn 2019-12-02 20:14:22 UTC
I will unfortunately be unable to reproduce from here on; my work is upgrading all of us to Windows 10 now, so I will no longer be on Windows 7 from here on.
Comment 2 Albert Astals Cid 2019-12-02 21:34:46 UTC
Please someone reopen if you have the same problem.
Comment 3 James Flynn 2019-12-26 23:28:20 UTC
After upgrading to Windows 10, and installing the release available in the Windows Store, I am actually still encountering this issue.
Comment 4 Patrick Silva 2020-01-23 00:00:04 UTC
*** Bug 414937 has been marked as a duplicate of this bug. ***
Comment 5 Christoph Cullmann 2020-02-23 18:42:37 UTC
Yes, this still happens.

I uploaded today the 19.12.2 version to the store, but this will not fix this issue.

It either hangs infinite or crashes, will need to investigate.

e.g. Kate that uses the same Qt version doesn't hang on that action, should be no issue in Qt itself.
Comment 6 Christoph Cullmann 2020-02-23 18:57:36 UTC
Actually printing (at least to my only available "one note" printer) hangs, too.
Comment 7 Christoph Cullmann 2020-02-23 19:02:18 UTC
Ok, I must re-consider: actually printing (to one note) does just take "long" here, aka one minute for my test document that has ~200 pages. But Okular recovers after that time and stays usable afterwards.

Not sure if the preview dialog does that same, will let it run a bit longer ;=)
Comment 8 Christoph Cullmann 2020-02-23 19:08:45 UTC
Ok, print preview doesn't really hang infinite either, after 2-3 minutes for my large document I get a dialog with "Could not load print preview part". After closing that, Okular is usable again.

Not that this is the perfect workflow one would expect, but perhaps this helps a bit to trace back the issue.