Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-04-2020, 07:49 PM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Previsualisation broken

Hi

Since yesterday, on Archlinux, after a big Qt update (but not only it), I realized that previsualisation is broken on Sigil with all ePubs. It displays the files exactly as if there was no style sheet, even images are not displayed.

All these ePubs are correctly displayed with the Calibre editor and have no ePubcheck defect reported.

I have Sigil 1.2.1 with 5.15 Qt.
Attached Files
File Type: pdf historique.pdf (41.6 KB, 231 views)

Last edited by roger64; 06-04-2020 at 07:59 PM.
roger64 is offline   Reply With Quote
Old 06-04-2020, 07:55 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,646
Karma: 5433388
Join Date: Nov 2009
Device: many
If images will not load, then the resource locations are not being properly found based on the url provided when the xhtml is loaded.

My guess is either you are missing QtWebEngine pieces or they are not properly being found.
KevinH is online now   Reply With Quote
Advert
Old 06-04-2020, 08:02 PM   #3
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
thanks Kevin

I just joined above the list of updated files. I shall reinstall Qtwebengine.
roger64 is offline   Reply With Quote
Old 06-04-2020, 08:09 PM   #4
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,646
Karma: 5433388
Join Date: Nov 2009
Device: many
Try updating again. You have qt-base updating to 5.15.0.1 in one place in the list and qt-base going to 5.15.0.2 but qt-webengine seems to not get that second update. Perhaps you updated during a time when qt packages were being updated and got a mix?

Last edited by KevinH; 06-04-2020 at 08:11 PM.
KevinH is online now   Reply With Quote
Old 06-04-2020, 08:11 PM   #5
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,646
Karma: 5433388
Join Date: Nov 2009
Device: many
Also you went from Sigil using Qt-5.14.x to Qt-5.15.x but I am not sure they are binary compatible. You may want to rebuild Sigil against the newer versions if updating does not do the trick.
KevinH is online now   Reply With Quote
Advert
Old 06-04-2020, 08:20 PM   #6
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Hi

I just followed the recommended updates. Reinstall changes nothing. Keeping low for the time being.

Code:
[roger@lenovo ~]$ sudo pacman -S qt5-base qt5-webengine
[sudo] Mot de passe de roger*: 
avertissement*: qt5-base-5.15.0-2 est à jour -- réinstallation
avertissement*: qt5-webengine-5.15.0-1 est à jour -- réinstallation
résolution des dépendances…
recherche des conflits entre paquets…

Paquets (2) qt5-base-5.15.0-2  qt5-webengine-5.15.0-1

Taille totale installée*:    208,79 MiB
Taille de mise à jour nette*:    0,00 MiB

:: Procéder à l’installation*? [O/n] O
(2/2) vérification des clés dans le trousseau      [######################] 100%
(2/2) vérification de l’intégrité des paquets      [######################] 100%
(2/2) chargement des fichiers des paquets          [######################] 100%
(2/2) analyse des conflits entre fichiers          [######################] 100%
(2/2) vérification de l’espace disque disponible   [######################] 100%
:: Traitement des changements du paquet…
(1/2) réinstallation qt5-base                      [######################] 100%
(2/2) réinstallation qt5-webengine                 [######################] 100%
:: Exécution des crochets de post-transaction…
(1/1) Arming ConditionNeedsUpdate...
[roger@lenovo ~]$
roger64 is offline   Reply With Quote
Old 06-04-2020, 08:26 PM   #7
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,646
Karma: 5433388
Join Date: Nov 2009
Device: many
Given Qt 5.15 is only an LTS release for commercial license holders, Sigil will not be moving away from Qt-5.12.x until we are literally forced to. Qt's recent policy changes simply stink. I am waiting for some decent organization to fork Qt 5.12 or 5.15 and keep fixing the many many bugs.

Perhaps DiapDealer has an idea?
KevinH is online now   Reply With Quote
Old 06-04-2020, 10:46 PM   #8
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
We can still build 5.15 from source with the open-source license, right? It was my understanding that only the precompiled binary installers were reserved for commercial users.

It was always my plan to eventually move to Qt 5.15 LTS, since we build Qt from source anyway for Windows and Mac (much like Arch is doing already) as long as it works OK. But perhaps I'm missing something about why we should stay away from building/using the latest LTS source ourselves?

I've not updated my Arch system to Qt5.15 yet. I'll have to do some testing before I can determine what might have gone wrong with it and Sigil. It's possible the Sigil package on Arch might need to be rebuilt for Qt5.15. It had to be rebuilt for Python 3.8, for instance. If so, I'm sure they'll do it soon. In the meantime, I should be able to manually rebuild Sigil with the updated system Qt this weekend.

Last edited by DiapDealer; 06-04-2020 at 10:51 PM.
DiapDealer is offline   Reply With Quote
Old 06-04-2020, 11:52 PM   #9
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
My God, what did they do?! Something is badly, badly wrong, here. Sigil's absolutely unusable on Arch with the system provided Qt 5.15.0.

Why are people so dead-set on breaking things?

Last edited by DiapDealer; 06-04-2020 at 11:59 PM.
DiapDealer is offline   Reply With Quote
Old 06-05-2020, 12:04 AM   #10
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Just completely fubar-ed. I'm a bit of loss here, actually.
DiapDealer is offline   Reply With Quote
Old 06-05-2020, 09:20 AM   #11
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
OK. What I know:

1) My hardcoded darkmode for Linux (enabled by environment variable) is totally borked. Only the dockwidgets (with the exception of Preview) are dark. Annoying, but not crucial at the moment. System qt dark themes seem to work.

2) QtWebEngine won't display images. This affects both Preview and Image tabs.

3) QtWebEngine is ignoring (or not finding) css. It uses the qrc-included darkmode css where appropriate, but nothing from book-supplied css or custom user preview css is being applied to any any page elements. Though inspector shows the css linked, only the default user-agent css and the qrc-supplied darkmode css are being applied to any page elements.
DiapDealer is offline   Reply With Quote
Old 06-05-2020, 10:34 AM   #12
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I think it's some sort of "heightened security" RE loading local resources.
DiapDealer is offline   Reply With Quote
Old 06-05-2020, 10:57 AM   #13
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Wow! It's down to line 4292 in MainWindow.cpp.

Code:
web_settings->setAttribute(QWebEngineSettings::LocalContentCanAccessFileUrls, false;
Changing that to true allows things (images, css, etc) to work again. But if that's the case, I'm not certain how loading local file url resources was ever working in Sigil. That setting has been set to false since the first official version with QtWebEngine!

Perhaps they've finally gotten around to honoring the setting in Qt5.15, where earlier versions of Qt didn't?

@KevinH: Are there specific reasons why we've set that to false? The description of the attribute seems fairly self explanatory. And by my reckoning, we've always needed local content to be able to load local file urls in Sigil, right?

Now if I can just figure out why my hardcoded dark theme got borked by 5.15.0

Last edited by DiapDealer; 06-05-2020 at 11:02 AM.
DiapDealer is offline   Reply With Quote
Old 06-05-2020, 02:36 PM   #14
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,646
Karma: 5433388
Join Date: Nov 2009
Device: many
That setting used to be for javascript to access local file urls, not xhtml src urls.
Perhaps someone changed its meaning, or Qt has moved to javascript to find and load all urls in the xhtml file.

Go ahead and change it in master if you get a moment. PageEdit may need the same fix.

Qt has announced that Qt 5.15 will NOT be an LTS release for open source projects. It will just get 1 or 2 minor revisions. No additional bug fixes for Qt 5.15 will be released after that. LTS fixes and support will not be released until 12 months later!


As result, I will no longer be filing bug reports or fixes for Qt as I am not getting paid to fix the bugs of others and get none of them back.

I am hoping for a nice Qt fork by someone to stop this nonsense.

They also dropped support for macOS 10.12 for no valid reason when they went to Qt 5.15.

This Qt race to produce more and more buggy software is for the birds.
KevinH is online now   Reply With Quote
Old 06-05-2020, 04:04 PM   #15
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Do I need to ifdef the change at all for any reason? I can restrict it to >= Qt5.15.0 if that would be safer than just changing it wholesale.

Understood about the rest (and agreed). No need to move to 5.15 for our Mac/Windows installers in that case. I just need to make sure it will still run on Linux distros that DO package 5.15.x.
DiapDealer is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle PW3 5.9.6.1 ssh broken pipe leaves broken ssh xception Kindle Developer's Corner 8 01-27-2019 10:23 AM
Broken PRS-505; any place to buy chrome bottom piece? Or anyone with broken 505? erikk Sony Reader 1 12-09-2009 06:51 PM
Broken Ipod works Fine! except that its broken Andybaby Lounge 1 06-04-2009 02:03 AM
Broken jeffoest Sony Reader 57 12-11-2007 03:15 PM
is it broken ? markiehill Sony Reader 5 02-15-2007 08:53 AM


All times are GMT -4. The time now is 11:06 AM.


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