![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
Memory use and sluggish response
Working on an EPUB, filesize about 1MB. Almost all text. Not unduly long chapters.
Windows Task Manager shows Sigil using about 140MB of memory. After working on the book for a bit look what memory use has increased to! Over 2GB. https://www.mobileread.com/forums/at...1&d=1559867211 And Sigil has become sluggish. It's not just with this one book. What should I investigate? Thanks. Sigil 0.9.13 Windows 10 i7 24GB Last edited by exaltedwombat; 06-07-2019 at 02:22 PM. |
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,759
Karma: 5706256
Join Date: Nov 2009
Device: many
|
Try turning off antivirus and telling Microsoft to whitelist the Sigil folder.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,759
Karma: 5706256
Join Date: Nov 2009
Device: many
|
Also see this post about disabling CFG just for Sigil.
https://www.mobileread.com/forums/sh...&postcount=110 |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
It gets sluggish on me as well. When it gets that way double clicking no longer selects words. I haven't paid attention to its memory usage because I have plenty of ram. But when it gets sluggish on me I save and quit and reopen the epub. The epub I've been working on is currently 809 kb; it's a collection of short stories by Max Brand.
|
![]() |
![]() |
![]() |
#5 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
For me, it is leaving the Preview pane open (my normal usage) that speeds this slowing down, happening up. I can run longer before it happens, If I don't use the Preview much.
The only cure is ti Exit Sigil. Windows 'fixed' something :/ |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,759
Karma: 5706256
Join Date: Nov 2009
Device: many
|
Did you disable Windows CFG for Sigil? Are you running the very very latest version of Windows 10? Did you whitelist/remove Sigil’s program folder from Windows antivirus/defender?
|
![]() |
![]() |
![]() |
#7 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
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:
![]() Call me paranoid ![]() |
|
![]() |
![]() |
![]() |
#8 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,759
Karma: 5706256
Join Date: Nov 2009
Device: many
|
You may have to change your thinking a bit for Windows 10. If the AI (which is not smart) in Windows 10 defence does not like something a program is doing for any reason it will start to increase scans of generated files, slowing it down and greatly hurt performance. Something as simple as compiling a python py file, or creating a bunch of files in the temp folder can trigger it. So unless you whitelist these specific folders, nothing will help.
In addition other Windows security like CFG has been documented to leak memory and will improperly slow down any program that uses JIT compiled javascript with garbage collection scanning threads that do not start at repeated process memory locations. This is exactly what QtWebKit and QtWebEngine does! See the thread about what Google engineers found for serious bugs in Windows 10 and earlier, that I posted in the original Release thread. These are things we can not work around as they are driven by design choices in Qt. Disabling CFG for Sigil and whitelisting it against anti-virus (it is not a web browser) may be the only way around this till Windows wakes up. If you are truly worried about security, you may want to generate a separate non-admin account to isolate Sigil and your other ebook creation activities from other programs where you can use different security settings more safely. Last edited by KevinH; 06-07-2019 at 03:57 PM. |
![]() |
![]() |
![]() |
#9 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,759
Karma: 5706256
Join Date: Nov 2009
Device: many
|
BTW, fwiw any system that allows python2 or python3 py files, Perl, or scripting of any sort really, to be run can in no way be secured unless you either trust the authors of the code or eyeball every line of code yourself. This is true of any program but interpreted scripts that are jit compiled can not really be properly code-signed. This includes Sigil’s plugins, Calibre, anything using JavaScript if it can write to the local file system, etc.
This is always a good reason to run anything new or untrusted on a burner non-admin account or in well sandboxed virtual machine first. Having had a research machine root-kitted over 25 years ago has made me very paranoid! |
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
If an epub has javascript in it does sigil run it? I thought I read somewhere that epubs can include javascript. There's also something called ruby but I don't know what it is (and I'm assuming it's not the ruby programming language, e.g., ruby on rails).
I did have myself in a non-admin account with my previous system and it was a pain in the rear having to type the password, even for trivial things in the system control panel. Now with my account being in the admin group I get a pop up window about allowing some admin activity to happen and I only need to click a button. For me clicking a button is less annoying than having to type a password. I've also now disabled CFG for sigil. |
![]() |
![]() |
![]() |
#11 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,759
Karma: 5706256
Join Date: Nov 2009
Device: many
|
Currently BookView and Preview will not work without javascript enabled globally in Sigil. When we move to QtWebEngine that drops BookView (see our engine branch on github), we can isolate javascript used to make an application work (ApplicationWorld) from user/epub javascripts (MainWorld) and the provide the user a new General Setting that will allow you to turn off epub javascript inside Sigil.
This is one of the many advantages of us moving away from the older, not fully maintained, QtWebkit to QtWebEngine (ala Google's Chrome) that is properly maintained, with security fixes added in by Qt itself. Another added advantage is that we can not get QtWebEngine to leak memory even when using embedded fonts, or svg images. So our upcoming release will be the last to be based on QtWebKit, and the last to support editing in BookView. Soon after our upcoming release we will release the QtWebEngine version of Sigil as a beta along side a beta of a new program called PageEdit that will do much of what BookView did via an Open-With but will run on QtWebEngine. And that ruby is not related to the ruby scripting language. |
![]() |
![]() |
![]() |
#12 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
Windows CFG disabled for Sigil. Sigil folder excluded from Windows Security. Reboot
After working an hour on my book memory useage has now topped 3GB. (There's plenty left, but I'm assuming this is connected with the slowing?) Sigil now responding very sluggishly. Quit Sigil and reloaded book. Memory useage back to 230MB. Response OK. Arrrrrggggh! I wouldn't mind so much, but when Sigil starts getting slow I find myself dragging blocks of code into the wrong place, applying Clips to the wrong selection etc. This has only become a problem quite recently. Are we blaming Windows? Last edited by exaltedwombat; 06-07-2019 at 04:19 PM. |
![]() |
![]() |
![]() |
#13 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,568
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
![]() |
#14 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,759
Karma: 5706256
Join Date: Nov 2009
Device: many
|
I have literally worked editing for hours on many ebooks and have never seen that kind of sluggishness or memory usage and I leave Preview open constantly. But this is on macOS. I have been given one epub to test with that uses many svg image files that does seem to eat memory. But that is a known issue in the latest versions of QtWebkit.
So does your epub have svg image files inside its Images folder? Does your epub have embedded fonts which seems to cause fontcache leaks on *some* Windows machines? Are you using a particular feature of Sigil repeatedly that might help us reproduce the issue? Things like Regular Expression Search and Replace, Spellchecking repeatedly, running Reports repeatedly, Using Clips repeatedly, splitting or merging of html files repeatedly, etc? Anything at all that we might try to see if we can reproduce what you are seeing. Also you might want to ask DiapDealer about trying his AppVeyor automated build of the current master to see if any of the fixes in there actually help (which would explain why we can not recreate the issues). Please note DiapDealer is not experiencing any of these issues on any of his Windows machines after heavy usage of Sigil. This problem only hits some specific Windows machines and not macOS and not Linux, which is why we think it is a Windows 10 specific issue/bug. A set of detailed steps to recreate this sluggishness/extreme memory usage with a public test epub (such as our own User's guide) would be really helpful in tracking down if this is a Windows10 issues or something else. Last edited by KevinH; 06-07-2019 at 04:57 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Clara HD Clara HD Expanded Memory Response Time for Large Library | Incanus | Kobo Reader | 17 | 12-24-2021 07:52 AM |
PRS-650 Sluggish performance | 49Kat | Sony Reader | 2 | 03-16-2012 10:47 PM |
PRS-650 Sluggish performance | SeaBookGuy | Sony Reader | 11 | 12-12-2011 10:26 PM |
Sluggish text entry? | Anjohl | Kobo Tablets | 1 | 11-14-2011 02:06 AM |
slow and sluggish already | osiris777 | Barnes & Noble NOOK | 3 | 08-17-2011 01:53 PM |