05-05-2024, 08:49 AM | #1 |
A Hairy Wizard
Posts: 3,222
Karma: 19000635
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Sigil image viewing issue
Has anyone seen an issue with Sigil displaying images? Quite often I will double-click on an image file name in the book browser and I will get a black screen, or a pixelated/incomplete render in the CV area. If I scroll down in the CV area it appears to ‘reload’ the image and looks correct. Also, selecting a different image and then going back to the original image fixes it as well.
Latest Windows 11 pro ver 22631.3527, GeForce 3090 driver 552.22, single screen, Sigil 2.0.1 Edit: added pics blank and pixelated Last edited by Turtle91; 05-05-2024 at 09:07 AM. |
05-05-2024, 12:40 PM | #2 |
Grand Sorcerer
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Can't say that I've noticed any such behavior, but I'll keep an eye out. I would say video drivers first. The 3090 is certainly new and beefy enough hardware to be ruled out, but nvidia releases buggy versions of new drivers all the time. If you're on the very newest, maybe roll back one. Or update if you're not on the latest.
|
05-05-2024, 12:44 PM | #3 |
A Hairy Wizard
Posts: 3,222
Karma: 19000635
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
I tried checking a couple different driver versions. Same behavior on both versions - including the latest and greatest.
I fist noticed this after upgrading to Sigil 2.0 if that helps. I have NOT tried a clean install. I had a test version of Sigil installed before upgrading to 2.0. That may be the problem. I’ll try that next. |
05-05-2024, 01:54 PM | #4 |
Grand Sorcerer
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Also try the latest version of Sigil (2.1.0) and see if that makes a difference. It has a different version of Qt than 2.0.1, I believe.
|
05-05-2024, 01:56 PM | #5 |
Bibliophagist
Posts: 40,506
Karma: 156983616
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I've noticed the same thing with several versions of the Nvidia driver and a T1000 8GB card. Currently I'm on the same NVidia driver version as ~Turtle91 and I am seeing the same effects randomly.
Windows 11 Pro 23H2 22631.3527, Nvidia T1000 8GB, Sigil 2.1.0 2024.04.26 If I use Sigil in one of my VMs, I don't notice that happening which does suggest that it is video driver related. |
05-05-2024, 02:24 PM | #6 | |
Grand Sorcerer
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
You could try forcing the use of software rendering on your non-vm machines by setting the QT_OPENGL environment variable to "software". Another independent thing to try is under Sigil's General Settings preferences (Advanced tab), check the Disable GPU Acceleration in QtWebEngine option. I THINK WebEngine is used to display images in the resource tabs. Does it happen with all image types, or does it tend to be certain ones? Last edited by DiapDealer; 05-05-2024 at 03:37 PM. |
|
05-05-2024, 03:49 PM | #7 |
Sigil Developer
Posts: 8,158
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Not sure if it matters, on the Qt 6.6.2 + (or maybe even Qt 6.5.X+), they have moved to QtWebEngine defaulting to each platform's native technologies for graphics. On macOS this is now metal, and for Windows it is Direct3D.
It is also controlled by a new environment variable: QSG_RHI_BACKEND With possible values: vulkan, metal, opengl, d3d11, d3d12 Requests the specific RHI backend. By default the targeted graphics API is chosen based on the platform, unless overridden by this variable or the equivalent C++ APls. The defaults are currently Direct3D 11 for Windows, Metal for macOS, OpenGL elsewhere. So you might want to try setting the environment variable: QSG_RHI_BACKEND="opengl" just to see if that fixes your image issues as it would try the orignal opengl interface in place of the Direct11 one. Or visa-versa or maybe try "d3d11" or "d3d12". Last edited by KevinH; 05-05-2024 at 04:32 PM. |
05-05-2024, 03:58 PM | #8 |
Belgian Pommes Frites
Posts: 116
Karma: 532
Join Date: Jan 2012
Device: Pocketbook Touch HD
|
Using Sigil 2.1.0 I opened nine random epubs, and clicked on all the images. All of them appeared without problem.
Running on Windows 11 23H2 build 22631.3447, and using an older AMD RX570 card (8GB) with AMD software 24.3.1 |
05-05-2024, 04:38 PM | #9 | |
Grand Sorcerer
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
05-05-2024, 05:03 PM | #10 | |
A Hairy Wizard
Posts: 3,222
Karma: 19000635
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
I disabled the GPU Acceleration. That worked for the pixelated image I attached to the OP. I’ll give that some more testing and the try Kevin’s suggestion of QSG_RHI_BACKEND. |
|
05-05-2024, 05:15 PM | #11 |
Grand Sorcerer
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I take that back. At least on my VM, setting QSG_RHI_BACKEND to opengl causes the included opengl32sw.dll to be used. At least that's what it says in the logs when I set QSG_INFO=1
But it's still being used in some way on my Windows VM regardless of the QSG_RHI_BACKEND value. Sigil crashes without it. I just can't see it in the very tired Dependency Walker any more. Last edited by DiapDealer; 05-05-2024 at 05:23 PM. |
05-05-2024, 06:14 PM | #12 |
Bibliophagist
Posts: 40,506
Karma: 156983616
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I've noticed the issue with both JPEG and PNG images. It seems to be more of an issue with larger images (covers, maps, etc.).
I'll give the suggested options a try and see what happens. I don't see the issue on every ePub nor is it consistent on the same images. |
05-09-2024, 10:37 AM | #13 |
A Hairy Wizard
Posts: 3,222
Karma: 19000635
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Turning off the GPU acceleration seems to fix the problem. I'm not sure that is the entire problem though. I had GPU acceleration turned on with no problems. Then with Sigil 2.0 - and I assume it's because of a change with QT - it started having this problem even though I hadn't changed video drivers. Then I updated the video driver and still had the problem????
In any case, thanks for the help! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Issue viewing/importing a large azw3 file? | SISTAMINF | Library Management | 7 | 12-04-2022 08:58 PM |
What font is best to use for viewing CSS in Sigil? | Rindr | Sigil | 5 | 03-26-2019 03:33 PM |
No left margin when viewing image PDF | endriu | KOReader | 0 | 03-11-2017 02:17 PM |
Issue in viewing the Fixed Layout ePub in iPad | sundar | ePub | 2 | 07-23-2011 05:10 AM |
Viewing screenshots through image viewer | omk | Kindle Developer's Corner | 1 | 02-18-2011 02:14 AM |