Bug 415350 - Presentation mode only renders part of a pdf on an external monitor
Summary: Presentation mode only renders part of a pdf on an external monitor
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 1.9.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-19 12:24 UTC by rien334
Modified: 2019-12-24 13:56 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The faulty render of the pdf on the left, the normal render on the right (335.08 KB, image/jpeg)
2019-12-19 12:24 UTC, rien334
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rien334 2019-12-19 12:24:58 UTC
Created attachment 124586 [details]
The faulty render of the pdf on the left, the normal render on the right

SUMMARY

During my presentation yesterday, I observed that okular's presentation mode only renders part of my pdf when the presentation window is located on an external monitor. I've included a screenshot of how okular opens pdfs on an external monitor in the attachment. In the screenshot, you can see that only the top-left is shown and the rest is black (which remains so after resizes).  For comparison, the screenshot shows the same pdf opened in normal mode, next to the faulty rendering pdf. 

It seems to happen with any pdf.


STEPS TO REPRODUCE
1. Open any pdf, from any monitor. I can reproduce this with different monitors, and it does not matter on which one I first open the pdf or presentation mode.
2. Start presentation mode (Ctrl+Shift+P).
3. If the presentation window is on an external monitor, only a small part of the pdf is shown. 

OBSERVED RESULT

Okular only renders the top-left of a pdf in presentation mode when on an external monitor (no errors about this seem to be logged to the terminal). Rendering on the main monitor always works fine. 

EXPECTED RESULT

The full pdf shows on the external monitor.

SOFTWARE/OS VERSIONS
Windows: Not tested
macOS: Not tested
Linux/KDE Plasma: Linux 5.4.4 (Arch Linux)
(available in About System)
KDE Plasma Version: I'm not running KDE plasma (I'm not using a DE at all).
KDE Frameworks Version: 5.65 (it happened on the version arch linux had before  as well though).
Qt Version: 5.13.2

ADDITIONAL INFORMATION
I'm running X.Org X Server 1.20.6.
Comment 1 Albert Astals Cid 2019-12-24 11:26:59 UTC
are you on hidpi?
Do both monitors have the same resolution?
Comment 2 rien334 2019-12-24 11:56:54 UTC
(In reply to Albert Astals Cid from comment #1)
> are you on hidpi?

Yes,  my main laptop monitor is hipdi, but all the external monitors I tested were not. I also have `QT_SCALE_FACTOR`and `QT_AUTO_SCREEN_SCALE_FACTOR` set. Good suggestion, hidpi differences seem a likely cause of the problem. 

I'll see if playing around with aforementioned environment variables changes anything. Coming to think of it, I'm also not sure if Qt 5.14 is still affected. Will test now. 

> Do both monitors have the same resolution?

No, all monitors I've tested had varying resolutions among them, and all had resolutions different from my main (laptop) screen.
Comment 3 rien334 2019-12-24 13:56:26 UTC
Fixed in Qt 5.14. I simply recompiled okular 1.9.0 with that version of Qt installed, and the problem has gone away.