Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Viewer

Notices

Reply
 
Thread Tools Search this Thread
Old 10-19-2024, 07:40 PM   #1
MacDougal
Junior Member
MacDougal began at the beginning.
 
Posts: 5
Karma: 10
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?
MacDougal is offline   Reply With Quote
Old 10-19-2024, 11:18 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,318
Karma: 27111242
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 10-20-2024, 05:55 AM   #3
MacDougal
Junior Member
MacDougal began at the beginning.
 
Posts: 5
Karma: 10
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.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2024-10-20 1.jpg
Views:	234
Size:	32.9 KB
ID:	211514   Click image for larger version

Name:	Screenshot 2024-10-20 2.jpg
Views:	206
Size:	41.2 KB
ID:	211515  
MacDougal is offline   Reply With Quote
Old 10-20-2024, 06:07 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,667
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by MacDougal View Post
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.
Did you reboot?
JSWolf is offline   Reply With Quote
Old 10-20-2024, 06:08 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,318
Karma: 27111242
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
kovidgoyal is offline   Reply With Quote
Advert
Old 10-20-2024, 06:29 AM   #6
MacDougal
Junior Member
MacDougal began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2024
Device: Kobo Glo
Quote:
Originally Posted by JSWolf View Post
Did you reboot?
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.
MacDougal is offline   Reply With Quote
Old 10-20-2024, 06:34 AM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,667
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by MacDougal View Post
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.
Are you using a laptop with dual-GPUs? if so, have calibre run with the other GPU.
JSWolf is offline   Reply With Quote
Old 10-20-2024, 06:35 AM   #8
MacDougal
Junior Member
MacDougal began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2024
Device: Kobo Glo
Quote:
Originally Posted by kovidgoyal View Post
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
Here's the output (with the environment variable set) if that any use to you. It still creates a black window as above:

Quote:
C:\Program Files\Calibre2>calibre-debug -w
QPA platform: windows
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 81.55183946488295 x 81.64285714285714
ApplicationPaletteChange event ignored
Using calibre Qt style: True
Sandboxing disabled by user.
[2.140] bridge ready
[2.281] iframe ready
[0.000] Load of book started
[0.000] prepared emitted
[0.062] webview loading requested
[0.187] loading finished
I have also reported this to AMD as a bug so they can investigate the issue at their end.
MacDougal is offline   Reply With Quote
Old 10-20-2024, 06:52 AM   #9
MacDougal
Junior Member
MacDougal began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2024
Device: Kobo Glo
Quote:
Originally Posted by JSWolf View Post
Are you using a laptop with dual-GPUs? if so, have calibre run with the other GPU.
Nope, desktop with one GPU.
MacDougal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Viewer opens withy black screen mjan Viewer 2 03-03-2025 02:36 AM
Viewer opens with white screen on Ubuntu 21.10 and otherwise doesn't work Constancies Viewer 1 02-24-2022 06:18 PM
Viewer is slow - sometimes never opens book jecilop Viewer 6 02-03-2022 03:42 PM
Viewer in 4.2 opens with only blank white page AlaBill Viewer 4 08-01-2020 07:44 PM
External viewer opens temp file Aiwass Library Management 4 04-29-2013 04:44 AM


All times are GMT -4. The time now is 03:28 PM.


MobileRead.com is a privately owned, operated and funded community.