Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 08:20 AM   #211
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: 9,353
Karma: 6686152
Join Date: Nov 2009
Device: many
Thanks for testing! I still need to test things on my horribly slow Windows VM as it is probably a worst case scenario (12 year old iMac running Linux using Windows 11 in a VM).

Still not 100% yet on the best way to handle cache clearing and the WebEngineProfiles generation. May decide to go back to a disk cache for the Inspector so language setting stay for it.

I have my fingers crossed. We are getting closer.
KevinH is offline   Reply With Quote
Old Today, 08:35 AM   #212
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 943
Karma: 3501230
Join Date: Jan 2017
Location: Poland
Device: Various
Quote:
Originally Posted by DNSB View Post
Just checked the preview window and the cursor remained where I placed it as the preview window refreshed multiple times. Looks good!

Edit: I loaded @RbnJrg's filter test epub and it seems to show no issues. Changed the colour in the filter file from red to rebeccapurple and the refresh switched the colour. Ditto from rebeccapurple to olivedrab to peachpuff.
I also built a new version (last commit 17a45a5).

If by "the refresh switched the colour" you mean "after pressing the Refresh button," then it's the same for me.
BeckyEbook is offline   Reply With Quote
Advert
Old Today, 09:41 AM   #213
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: 9,353
Karma: 6686152
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by BeckyEbook View Post
I also built a new version (last commit 17a45a5).

If by "the refresh switched the colour" you mean "after pressing the Refresh button," then it's the same for me.
Hopefully RbnJrg's testcase should now work without a refresh with the very latest master build. If you are not seeing it then there is still a problem.

Just to rule out toolchain differences could you please try the DEBUG5 build I posted on my personal repo with RbnJrg's test case and see if it fails the exact same way your build does.

Thanks
KevinH is offline   Reply With Quote
Old Today, 09:44 AM   #214
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: 29,088
Karma: 211348980
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I'm afraid it's still not syncing properly for me on my Windows 10 VM. The debug file is with me using all of the default graphics back end settings in Sigil.

This is with your latest uploaded debug version of Sigil. I'll build it myself later today and see if it makes a difference.

Changing the graphics backend with QSG_RHI_BACKEND=opengl still makes things work correctly.
Attached Files
File Type: txt sigil_debuglog.txt (12.1 KB, 1 views)
DiapDealer is online now   Reply With Quote
Old Today, 09:55 AM   #215
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: 9,353
Karma: 6686152
Join Date: Nov 2009
Device: many
Wow, your log shows that the xhtml file was fully loaded but somehow the call to GetCaretLocation still failed.

But the cache clearing was okay (no improper overlap when that error occurred). So there must be a second unaccounted for reason that the fully loaded Preview javascript call returned nothing.

And with the QSG_RHI_BACKEND=opengl, it works!

So very strange ....
KevinH is offline   Reply With Quote
Advert
Old Today, 10:34 AM   #216
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 943
Karma: 3501230
Join Date: Jan 2017
Location: Poland
Device: Various
Debug5 version:

Alice – does not work (after opening the CSS file in preview, it jumps to the top of the file)

RbnJrg – automatic refresh works, no need to press the “Refresh” button

I am attaching both logs.
Attached Files
File Type: zip sigil275-debug-alice.zip (1.2 KB, 1 views)
File Type: zip sigil275-debug-rbnjrg.zip (1.1 KB, 1 views)
BeckyEbook is offline   Reply With Quote
Old Today, 10:42 AM   #217
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: 29,088
Karma: 211348980
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
Wow, your log shows that the xhtml file was fully loaded but somehow the call to GetCaretLocation still failed.

But the cache clearing was okay (no improper overlap when that error occurred). So there must be a second unaccounted for reason that the fully loaded Preview javascript call returned nothing.

And with the QSG_RHI_BACKEND=opengl, it works!

So very strange ....
Give me time to test on real Windows machines. It DID work ok on my qemu Windows 11 kvm. But, I'd like to rule out the possibility that there's a defect in Virtualbox's video driver that turning off all hardware rendering happens to work around.

EDIT: Ah... I missed that it wasn't working for becky either. I guess it's still possible that 6.10 has left more video drivers behind (with regard to hardware acceleration and/or certain graphics backends). But what an odd manifestation that would be!

Last edited by DiapDealer; Today at 10:46 AM.
DiapDealer is online now   Reply With Quote
Old Today, 12:22 PM   #218
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: 9,353
Karma: 6686152
Join Date: Nov 2009
Device: many
@BeckyEbook,
Your latest Alice log, showed no javascript errors any more, and although GetCaretLocation returned null once, it was screened out. So Alice should have scrolled to the location.

Plus it showed no overlap for cache clearing and file loading.

There must be another cause for GetCaretLocation javascript to return a null string that our current debug code is not showing.

So in that way it is similar to DiapDealers results.

I have pushed a new version to master that forces synchronization so cache clear is properly handled at all times.

If you have a free moment please test the version I just committed to master.
KevinH is offline   Reply With Quote
Old Today, 12:47 PM   #219
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: 9,353
Karma: 6686152
Join Date: Nov 2009
Device: many
FWIW, The version now in master has been uploaded as DEBUG6 in my personal repo.

With that version, even on my 12 year old iMac using Linux and running Windows 11 in a VM, everything worked. The repositioning in Alice even when editing the css and the RbnJrg test case (red to blue).

I repeated the tests with the opengl backend as well and no problems with either.

So if this version fails on other Windows boxes, I will have to start looking at adding even more debug output to detemine what is messing up as I think getting out of sync is no longer the issue.

If anyone has a free moment, please give DEBUG6 (or your own build from current master a try).

Thanks
KevinH is offline   Reply With Quote
Old Today, 01:00 PM   #220
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 943
Karma: 3501230
Join Date: Jan 2017
Location: Poland
Device: Various
Debug6 – works!
Attached Files
File Type: zip sigil275-debug-39e8cad-rbnjrg.zip (1.1 KB, 0 views)
File Type: zip sigil275-debug-39e8cad-alice.zip (1.3 KB, 0 views)
BeckyEbook is offline   Reply With Quote
Old Today, 01:26 PM   #221
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: 9,353
Karma: 6686152
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by BeckyEbook View Post
Debug6 – works!
Wonderful! I still have to clean up a few things more but I am glad to hear it worked for you too!

All of this happens because of two bugs in Qt:

1, QWebEngineProfile NoCache is broken completely. We really want no network caching at all but even with NoCache things are still remembered.

So we need to use a cache and clear it

2. QWebEngine cache clearing code is broken because it requires setUrl(QUrl("")) to be done before the cache clear or it only partially clears things. That messed up our Preview loading logic.

But proving any of these bugs to Qt is next to impossible without simple standalone test cases that are too simple to show the bugs (ie style using svg filters in an xhtml file to modify another svg image when filter is changed.)
KevinH is offline   Reply With Quote
Old Today, 01:33 PM   #222
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: 29,088
Karma: 211348980
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
All good on my problematic Windows 10 VM as well!
Attached Files
File Type: txt sigil_debuglog.txt (10.7 KB, 1 views)
DiapDealer is online now   Reply With Quote
Old Today, 01:54 PM   #223
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: 29,088
Karma: 211348980
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
It appears to work on my physical Windows 10 laptop as well. The javascript eval statements are much more involved in this debug log, but all seems to work.
Attached Files
File Type: txt sigil-debug2.txt (6.5 KB, 1 views)
DiapDealer is online now   Reply With Quote
Old Today, 02:46 PM   #224
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: 9,353
Karma: 6686152
Join Date: Nov 2009
Device: many
Great! I am going to clean up a few more minor nits and maybe try a version that only clears the cache when needed (ie only when editing in svg or css or javascript or ...).

If that works we can start to test it to make sure no unexpected side effects.
KevinH is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Suggestions for Sigil Improvements or New Features KevinH Sigil 168 11-18-2025 01:23 PM
Suggestions for New Plugins and Plugin Improvements KevinH Plugins 0 09-22-2025 11:53 AM
Ideas for New Improvements or Features KevinH Sigil 97 04-09-2025 10:45 AM
Improvements/bugs/features dontcrash KOReader 10 10-23-2019 11:05 AM
Onyx M92: Suggestions for possible improvements Lode Onyx Boox 3 02-11-2013 08:40 AM


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


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