|
|
#1 |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7
Karma: 152112
Join Date: Oct 2024
Device: Kobo Glo
|
Viewer just opens a black screen.
Since updating graphic drivers to AMD Adrenalin 24.9.1 (WHQL), the Calibre book viewer simply shows a black window. No UI elements are drawn. The book is still there (it can be copy/pasted, things can be dragged, and even the button strip can be pulled out where it becomes visible). This happens with all versions of Calibre back to version 7.12, and affects the book editor, pointing to an issue with the QT Webengine and graphics driver.
I've tried adding the "QTWEBENGINE_CHROMIUM_FLAGS=--disable-gpu" environment variable, but it simply does nothing to calibre's GPU usage, so presumably is not disabling GPU acceleration on the QT Webengine and the black window persists. The only thing that seems to fix the issue is going back to an older video driver 24.7.1, or booting into safe mode (which would also disable the driver's acceleration. Does anyone have any fixes to disable GPU acceleration in calibre's QT Webengine, or any way to get things working again with the current drivers? Any settings in Calibre that I can use? |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,617
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That environemnt variable is the only setting and it works fine, reboot after setting it to make sure it applies.
|
|
|
|
|
|
#3 |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7
Karma: 152112
Join Date: Oct 2024
Device: Kobo Glo
|
Is this the environment setting you are talking about? Because this gives me a black screen as shown (I've managed to blindly pull out the control strip, if I drag it back into the window it will disappear).
The window itself resizes slowly as if the window is not accelerated, but if I put the mouse where the text should be and scroll, I can see GPU activity spike. Is the contents of the window still using GPU acceleration where the window itself if not? Should the system variable set be a user variable? Does the variable only work if QT Webeingine is set into debug mode? Thanks for any help or ideas you can suggest. |
|
|
|
|
|
#4 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,825
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#5 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,617
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's correct and it works in all Qt modes, not just debug. As for its effects only the Qt developers can tell you in detail what it does. If it isn't resolving the issue for you then stick with the downgraded video drivers. You might also get some useful debug output from qt by running the viewer in a command prompt as
calibre-debug -w |
|
|
|
|
|
#6 |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7
Karma: 152112
Join Date: Oct 2024
Device: Kobo Glo
|
Yes, hence my confusion as to why it isn't working. I did some googling before posting and this seems to have been an ongoing issue going back years that people have experienced in many different configurations. For some reason QT wbengine sometimes just doesn't play nice with GPUs.
|
|
|
|
|
|
#7 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,825
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#8 | ||
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7
Karma: 152112
Join Date: Oct 2024
Device: Kobo Glo
|
Quote:
Quote:
|
||
|
|
|
|
|
#9 |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7
Karma: 152112
Join Date: Oct 2024
Device: Kobo Glo
|
|
|
|
|
|
|
#10 |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7
Karma: 152112
Join Date: Oct 2024
Device: Kobo Glo
|
I finally found a solution. These are the environment variables that need to be set:
QTWEBENGINE_CHROMIUM_FLAGS=--disable-gpu QT_QUICK_BACKEND=software Hopes this help anyone else who needs to disable GPU rendering for a driver issue. |
|
|
|
|
|
#11 |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7
Karma: 152112
Join Date: Oct 2024
Device: Kobo Glo
|
If this breaks the AMD Adrenaline driver UI (which seems to also use QTWebEngine), you need to do it as a batch file so it runs in it's own environment. Just copy the following into a text file named "Calibre.bat" on your desktop.
Code:
@echo off set QTWEBENGINE_CHROMIUM_FLAGS=--disable-gpu set QT_QUICK_BACKEND=software start "" "C:\Program Files\Calibre2\calibre.exe" |
|
|
|
|
|
#12 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,897
Karma: 207182180
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I have great luck with QT_QUICK_BACKEND=software on Linux systems with proprietary nvidia drivers (and Qt6.8+). It makes QWebEngine rendering on my system (which is not underpowered in the least) positively snappy again. It also gets rid of the annoying "driver does not support GBM" warning. But I don't have to use QTWEBENGINE_CHROMIUM_FLAGS=--disable-gpu in that situation. It renders fine--it's just sluggish.
On Windows, I find that QT_QUICK_BACKEND=software shifts any and all GPU QWebEngine hardware usage to the CPU regardless of whether QTWEBENGINE_CHROMIUM_FLAGS=--disable-gpu is set or not. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calibre Viewer opens withy black screen | mjan | Viewer | 2 | 03-03-2025 03:36 AM |
| Viewer opens with white screen on Ubuntu 21.10 and otherwise doesn't work | Constancies | Viewer | 1 | 02-24-2022 07:18 PM |
| Viewer is slow - sometimes never opens book | jecilop | Viewer | 6 | 02-03-2022 04:42 PM |
| Viewer in 4.2 opens with only blank white page | AlaBill | Viewer | 4 | 08-01-2020 08:44 PM |
| External viewer opens temp file | Aiwass | Library Management | 4 | 04-29-2013 05:44 AM |