Bug#892731: okular: Display errors with Qt HiDPI / Screen Scaling enabled
Package: okular
Version: 4:17.12.2-2
Severity: normal
Dear Maintainer,
* What led up to the situation?
I have Qt HiDPI support enabled via environment variables. I was recently about
to give a presentation and okular failed badly on the beamer (screenshot:
https://sotecware.net/files/persistent/okular-screen-scaling/screenshot.png).
This happens with the following environment variable setups:
(a) export QT_SCREEN_SCALE_FACTORS='' QT_AUTO_SCREEN_SCALE_FACTOR=1
(b) export QT_SCREEN_SCALE_FACTORS='eDP1=1.5;DP3-2=1.0'
QT_AUTO_SCREEN_SCALE_FACTOR=0
(eDP1 is my internal display, DP3-2 is the external I’m currently testing
with)
* What exactly did you do (or not do) that was effective (or ineffective)?
1. Open a PDF in okular
2. Move okular to an external monitor (with or without explicit screen scaling
factors)
3. Enter presentation mode with Ctrl+Shift+P
* What was the outcome of this action?
Bad rendering which renders (pun intended) the presentation mode unusable. It
appers to be only using a part of the display and the rest is filled with
graphics garbage. Screenshot:
https://sotecware.net/files/persistent/okular-screen-scaling/screenshot.png
* What outcome did you expect instead?
Smooth, unpixelised display of my slides.
* Additional info
Setting export QT_SCREEN_SCALE_FACTORS='' QT_AUTO_SCREEN_SCALE_FACTOR=0 fixes
the issue.
The issue only occurs on the external monitor; the internal was fine; this is
confusing to me since the external one has a scaling factor of 1.0, which
should be idempotent. But who am I to analyze this :).
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.14.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages okular depends on:
ii kinit 5.42.0-4
ii kio 5.42.0-3
ii libc6 2.26-6
ii libfreetype6 2.8.1-2
ii libjpeg62-turbo 1:1.5.2-2+b1
ii libkf5activities5 5.42.0-2
ii libkf5archive5 5.42.0-2
ii libkf5bookmarks5 5.42.0-3
ii libkf5codecs5 5.42.0-2
ii libkf5completion5 5.42.0-4
ii libkf5configcore5 5.42.0-2
ii libkf5configgui5 5.42.0-2
ii libkf5configwidgets5 5.42.0-2
ii libkf5coreaddons5 5.42.0-2
ii libkf5i18n5 5.42.0-3
ii libkf5iconthemes5 5.42.0-2
ii libkf5itemviews5 5.42.0-2
ii libkf5jobwidgets5 5.42.0-2
ii libkf5kexiv2-15.0.0 17.08.3-1
ii libkf5kiocore5 5.42.0-3
ii libkf5kiowidgets5 5.42.0-3
ii libkf5parts5 5.42.0-2
ii libkf5pty5 5.42.0-2
ii libkf5service-bin 5.42.0-2
ii libkf5service5 5.42.0-2
ii libkf5textwidgets5 5.42.0-2
ii libkf5wallet-bin 5.42.0-2
ii libkf5wallet5 5.42.0-2
ii libkf5widgetsaddons5 5.42.1-2
ii libkf5windowsystem5 5.42.0-2
ii libkf5xmlgui5 5.42.0-2
ii libokular5core8 4:17.12.2-2
ii libphonon4qt5-4 4:4.10.0-2
ii libpoppler-qt5-1 0.61.1-2
ii libqca-qt5-2 2.1.3-2
ii libqmobipocket2 4:17.08.3-2
ii libqt5core5a 5.9.2+dfsg-12
ii libqt5dbus5 5.9.2+dfsg-12
ii libqt5gui5 5.9.2+dfsg-12
ii libqt5printsupport5 5.9.2+dfsg-12
ii libqt5svg5 5.9.2-3
ii libqt5widgets5 5.9.2+dfsg-12
ii libqt5xml5 5.9.2+dfsg-12
ii libspectre1 0.2.8-1
ii libstdc++6 8-20180218-1
ii phonon4qt5 4:4.10.0-2
ii zlib1g 1:1.2.8.dfsg-5
Versions of packages okular recommends:
ii cups-bsd 2.2.6-5
Versions of packages okular suggests:
ii ghostscript 9.22~dfsg-2
ii jovie 4:17.08.3-1
ii okular-extra-backends 4:17.12.2-2
ii poppler-data 0.4.8-2
ii texlive-binaries 2017.20170613.44572-8+b1
ii unrar 1:5.5.8-1
-- no debconf information
Reply to: