Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-04-2019, 10:37 AM   #106
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: 8,771
Karma: 6000000
Join Date: Nov 2009
Device: many
One interesting test just before you go to bed at night would be to:

1. close the Preview window and exit from Sigil (to prevent the Preview Window from reopening)
2. restart Windows 10
3. start a fresh copy of Sigil and open the latest version of our User's Guide (so we are all starting with exactly the same epub). Verify that Preview is NOT open.
4. Then check and write down the memory usage of Sigil
5. Then close the lid to sleep for the night

Once you get up the next day.

6. Reopen the lid and **without** clicking on Sigil (which would start new gui threads) check the memory and write it down.

Let us know what if anything changed during sleep.

Then repeat the entire process the next night but with Preview ***Open***.

That way we can see how much memory consumptions changes overnight with and without Preview being open.

This may help isolate any increased memory usage to the Qt Webkit or not.

Thanks!

KevinH
KevinH is offline   Reply With Quote
Old 04-04-2019, 11:34 AM   #107
brent63
Zealot
brent63 began at the beginning.
 
brent63's Avatar
 
Posts: 110
Karma: 10
Join Date: Aug 2018
Location: New Jersey
Device: Samsung Tab E nook
Quote:
Originally Posted by KevinH View Post
What font or fonts are you using? Some fonts are broken when used with Qt. Not many but there are a few. Are you embedding fonts?
Yes I am embedding fonts.

Canterbury.ttf for dropcase.
Georgia.ttf for all other text.

Quote:
Originally Posted by KevinH View Post
Please open the Inspector widget at the bottom of Preview and open the html tree and verify that your "i" tag is being parsed properly. That tree shows exactly how your Code is being parsed and what css is active, etc.
I have opened widget at the bottom of the preview page, and gone thru the seven items there but don't see any issues?

Can you be more specific as to where to look?


Quote:
Originally Posted by KevinH View Post
What exact Windows 10 update are you using and what exact build number?

According to a Google researcher, there are slowdowns and memory leaks associated with a Windows 10 security feature called Control Flow Guard that actually never frees memory in processes that open a large number of threads with different starting locations (such as the chrome browser or Sigil).

This can be especially troublesome on machines with lower amounts of memory as the only way to get the memory and speed back is to restart Windows. Restarting the impacted program will not help.

The slowdown part has been fixed in a recent Windows build. According to Google researchers Microsoft still hasn't fixed the lack of memory being freed even when an app exits (ie worse than a leak which is freed when a program exits).

The newer Qt webkits use multiple threads to walk the javascript stack to garbage collect, multiple threads to load resources (images, fonts, etc) and even multiple threads to run the gui. On my Mac, I once counted 43 different threads active when launching Sigil with a large book. Part of the reason for the large number of threads is that my cpu has 4 actual cores and therefore 8 logical hypercores.
Windows 10, version 1803, I'm not sure what update number it is but I have only had two failed updates.

Brent
brent63 is offline   Reply With Quote
Advert
Old 04-04-2019, 11:37 AM   #108
brent63
Zealot
brent63 began at the beginning.
 
brent63's Avatar
 
Posts: 110
Karma: 10
Join Date: Aug 2018
Location: New Jersey
Device: Samsung Tab E nook
Quote:
Originally Posted by KevinH View Post
One interesting test just before you go to bed at night would be to:

1. close the Preview window and exit from Sigil (to prevent the Preview Window from reopening)
2. restart Windows 10
3. start a fresh copy of Sigil and open the latest version of our User's Guide (so we are all starting with exactly the same epub). Verify that Preview is NOT open.
4. Then check and write down the memory usage of Sigil
5. Then close the lid to sleep for the night

Once you get up the next day.

6. Reopen the lid and **without** clicking on Sigil (which would start new gui threads) check the memory and write it down.

Let us know what if anything changed during sleep.

Then repeat the entire process the next night but with Preview ***Open***.

That way we can see how much memory consumptions changes overnight with and without Preview being open.

This may help isolate any increased memory usage to the Qt Webkit or not.

Thanks!

KevinH
Okay, will try it tonight.

Brent
brent63 is offline   Reply With Quote
Old 04-04-2019, 11:52 AM   #109
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: 28,577
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by brent63 View Post
I have 4 gig of ram, can max it out to eight, but this is the only program showing any slowdown.
Understood. But to be fair, you probably don't have many other programs that: are embedding Python; are using the (nearly) very latest Qt; include a built-in web browser.
DiapDealer is offline   Reply With Quote
Old 04-04-2019, 12:11 PM   #110
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: 28,577
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by brent63 View Post
Windows 10, version 1803, I'm not sure what update number it is but I have only had two failed updates.
I'm beginning to suspect that W10 1803 and W8.1 are going to be those hardest hit by Sigil 0.9.11+ performance issues. I'm not sure anything other than 1809 has received the partial "fixes" for the delays that were introduced by Control Flow Guard.

Another thing to try is to disable CFG for the Sigil binary. I can't vouch for Windows 8.1 but I know that Windows 10 (1803 and 1809) can override the system-wide security settings on a program by program basis. In fact, Windows has already overridden individual security settings for several binaries.

From Windows Security, click on App & browser Control; scroll down to Exploit protection and click the "Exploit protection settings" link. There's System overrides (that I do not recommend changing unless you're sure of what you're doing), and there's Program overrides. You can add Sigil.exe (by name or by explicit path) and then edit the individual overrides you want to affect Sigil. Control Flow Guard is on by default and you can override that and turn it off for Sigil only.

You can easily reverse that override, or remove Sigil entirely from the program list once done testing.
DiapDealer is offline   Reply With Quote
Advert
Old 04-04-2019, 01:06 PM   #111
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: 8,771
Karma: 6000000
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by brent63 View Post

I have opened widget at the bottom of the preview page, and gone thru the seven items there but don't see any issues?

Can you be more specific as to where to look?
One of the tabs shows a folded html tree that shows the tree as built insideof Qt. By unfolding tags by pressing on the triangle you should be able to navigate to where the italic i tag is and verify it exists and that no css is impacting it, etc.
KevinH is offline   Reply With Quote
Old 04-04-2019, 01:39 PM   #112
brent63
Zealot
brent63 began at the beginning.
 
brent63's Avatar
 
Posts: 110
Karma: 10
Join Date: Aug 2018
Location: New Jersey
Device: Samsung Tab E nook
Quote:
Originally Posted by KevinH View Post
One of the tabs shows a folded html tree that shows the tree as built insideof Qt. By unfolding tags by pressing on the triangle you should be able to navigate to where the italic i tag is and verify it exists and that no css is impacting it, etc.
The italic i tags are there.

I opened a file where I'm not embedding the same font and the italic tags work fine.

I tried to embed the Georgia font directly from the windows font folder but ran in to permission issues.

When I copied and pasted it to current work folder the font created 4 versions of itself,

Normal
Bold
Italic
ItalicBold

I embedded all of them but the Italic is not showing

Normal shows because it's linked to <p>

Bold shows because it's linked to <h1>

ItalicBold shows because it's linked to <h2>

Brent
brent63 is offline   Reply With Quote
Old 04-04-2019, 01:47 PM   #113
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: 8,771
Karma: 6000000
Join Date: Nov 2009
Device: many
So it is probably a Qt issue with that particular font. Some fonts include both unix and windows font tables but only the unix font tables are correct. Qt is one of the very few programs left that uses the older Windows specific OS2 font tables that are often broken or incorrect in modern fonts because they are so rarely used.

Even on Mac, if I repair a font using a font utility the older OS2 font tables are generally ignored. That leaves some fonts as broken under Qt even though Qt follows the OS2 font table spec on Windows.
KevinH is offline   Reply With Quote
Old 04-04-2019, 02:19 PM   #114
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: 28,577
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I think its probably worth a test to see if Sigil exhibits the same extreme performance issues when editing an epub that doesn't embed any fonts. Because I'll be honest: I can see this version of Sigil getting seriously bogged down (on Windows especially) if every single character of the book is being displayed with an embedded font. Using an embedded font for normal body text is simply not done that much these days.

Last edited by DiapDealer; 04-04-2019 at 02:22 PM.
DiapDealer is offline   Reply With Quote
Old 04-04-2019, 03:26 PM   #115
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: 8,771
Karma: 6000000
Join Date: Nov 2009
Device: many
For the record: See this Windows specific bug in Qt that caused some fonts to be detected as italic when not, and other bugs that were italic to be detected as normal:

https://bugreports.qt.io/browse/QTBUG-73660

The fix for this bug will be in Qt 5.12.2 and later which we will be using for our next release.

KevinH

Quote:
Originally Posted by KevinH View Post
So it is probably a Qt issue with that particular font. Some fonts include both unix and windows font tables but only the unix font tables are correct. Qt is one of the very few programs left that uses the older Windows specific OS2 font tables that are often broken or incorrect in modern fonts because they are so rarely used.

Even on Mac, if I repair a font using a font utility the older OS2 font tables are generally ignored. That leaves some fonts as broken under Qt even though Qt follows the OS2 font table spec on Windows.
KevinH is offline   Reply With Quote
Old 04-04-2019, 04:03 PM   #116
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,067
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
FWIW
I just rolled back to 9.9 from 9.13 after experiencing slower, then slower, then slower after running a lot of S&R's and spell check fixes.
We are talking under an Hour Sigil sessions. Restarting Sigil goes back to intital speeds (still slower than 9.9) With 9.13 you SEE find next switch files, then scroll

I was not seeing massive memory growth during this time (I have a resource display on my Logitec G3. Crude...) Something odd has crept into the 9.13 code
W10 x64 1803 8G RAM
theducks is offline   Reply With Quote
Old 04-04-2019, 04:20 PM   #117
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: 28,577
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by theducks View Post
Something odd has crept into the 9.13 code

W10 x64 1803 8G RAM
No. It really hasn't.

Something odd is going on between newer versions of Qt/QtWebkit and Windows 10. Case in point: I'm rocking the same code as you on W10 x64 1809 with 8G RAM and not a problem in the world. So the code itself is just fine. Something else is not.

Last edited by DiapDealer; 04-04-2019 at 05:52 PM.
DiapDealer is offline   Reply With Quote
Old 04-04-2019, 05:45 PM   #118
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,736
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by theducks View Post
FWIW
I just rolled back to 9.9 from 9.13 after experiencing slower, then slower, then slower after running a lot of S&R's and spell check fixes.
We are talking under an Hour Sigil sessions. Restarting Sigil goes back to intital speeds (still slower than 9.9) With 9.13 you SEE find next switch files, then scroll

I was not seeing massive memory growth during this time (I have a resource display on my Logitec G3. Crude...) Something odd has crept into the 9.13 code
W10 x64 1803 8G RAM
Did you try disabling CFG for Sigil, as per post #110.

BR
BetterRed is offline   Reply With Quote
Old 04-04-2019, 06:28 PM   #119
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,067
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by BetterRed View Post
Did you try disabling CFG for Sigil, as per post #110.

BR
No I hadn't.

That was fun, figuring out that I had to click what looked like a section title
theducks is offline   Reply With Quote
Old 04-05-2019, 12:56 AM   #120
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,736
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by theducks View Post
That was fun, figuring out that I had to click what looked like a section title
Apart from getting yourself sectioned did disabling it overcome the performance issues?

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil-0.9.5 Released KevinH Sigil 68 04-09-2016 06:30 AM
Sigil-0.9.1 Released KevinH Sigil 36 12-04-2015 03:00 PM
Sigil-0.8.900 released for testing - Wait for Sigil-0.8.901 KevinH Sigil 106 10-04-2015 10:41 AM
Sigil 0.8.3 Released user_none Sigil 10 02-02-2015 04:32 PM


All times are GMT -4. The time now is 11:31 PM.


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