![]() |
#1 |
Connoisseur
![]() Posts: 82
Karma: 10
Join Date: Jul 2023
Device: none
|
Editing two epubs at the same time
I have two epubs open in two instances of Sigil. I save one, which takes a significant amount of time. The other instance of Sigil is unresponsive until the first one is finished saving. Is this expected behavior?
|
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,630
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I've never had an epub take a "significant" amount of time to save. So I can't speak to whether or not another instance of Sigil would be unresponsive during that time. I can't even switch away from one instance quick enough to beat the save time. Are you saving to / opening from a network?
|
![]() |
![]() |
![]() |
#3 | |
Connoisseur
![]() Posts: 82
Karma: 10
Join Date: Jul 2023
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,630
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
![]() |
#5 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,816
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Quote:
On Linux and Windows two instances of Sigil should be totally independent processes that share a common set of ini files (and of course share system resources). On MacOS, these are two mainwindows with the same main process, so sharing the gui thread and sharing worker threads. Last edited by KevinH; Yesterday at 03:15 PM. |
|
![]() |
![]() |
![]() |
#6 | |
Connoisseur
![]() Posts: 82
Karma: 10
Join Date: Jul 2023
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,816
Karma: 6000000
Join Date: Nov 2009
Device: many
|
How are you launching both instances? Are both launched by double-clicking, or the panel or ...? Do you have any executable properties set?
Perhaps it is a Qt thing? Do other Qt apps act the same way? Please use your task manager and check if the two versions of Sigil overlapped in any way? Perhaps turning off the damn Windows Efficiency mode would help? Perhaps Windows itself is sleeping the other instance of Sigil? I do not have a big enough test epub to try to recreate things on Linux. If you have access to Linux, you may want to test to see if it is an OS thing or not. |
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,630
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I would try exempting the directory to where the huge file is being written from any antimalware scanning engines.
I could also see a ton of disk-thrashing going on. See if the same thing happens when saving the huge epub to disk when the second instance of Sigil is editing an epub from physically different drive. Could be a thumb drive if need be. |
![]() |
![]() |
![]() |
#9 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,816
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Okay, I found a test epub that had 2500 junk xhtml files that I used for my rename testing. It takes a count to about 3 or 4 seconds to do a full save as on my lowly macOS laptop.
@DiapDealer, I emailed it to you directly in case you want it for testing. With it under MacOS (which shares one process unlike Windows and Linux), the second instance of Sigil was unresponsive while the first version did its save as. But this is expected behaviour on Mac OS since they share all worker processes and even the main gui process. I then fired up Linux in a multi-threaded VM and tried the exact same test. Linux uses completely separate processes for multiple instances of Sigil. Linux allowed me to easily switch to the second instance of Sigil and start editing while the first did the save as in the background. Again, this is what I would expect for Linux and Windows. I have no idea why your Windows box with fully separate main processes and separate worker threads does what it does. It is either something specific to Windows or to your set-up. But this demonstrated that there is nothing inherent in Sigil's code that would force a clash or make things unresponsive on Windows and Linux -- just MacOS due to its inherent multi-mainwindow design on that platform. So please use your task manager to turn off Efficiency Mode for all threads associated with both copies of Sigil before trying your test. Please let us know what you find. Last edited by KevinH; Yesterday at 04:42 PM. |
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,630
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
The junk.epub sample bought me enough time to do the test, so thanks for that! I was quite surprised that it took the better part of 20 sec for that epub to save on a fairly beefy Windows 11 machine! But regardless of that, the second instance of Sigil was still perfectly usable while the save on the first instance was ongoing. The results were the same on a Windows 10 machine. I made sure both epubs being edited were on the same physical disk (in the same directory).
The Windows 11 machine is not mine, so it's pretty bog-standard. No security stuff disabled. Last edited by DiapDealer; Yesterday at 05:29 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem editing EPUBs. | Batthews | Editor | 1 | 08-01-2025 08:23 PM |
Time limit on editing thread titles | ownedbycats | Feedback | 0 | 03-09-2021 07:26 PM |
Editing content.opf with clips; Editing visibility | varlog | Sigil | 45 | 04-24-2016 07:55 AM |
editing multiple authors at a time | stanlefor | Recipes | 0 | 02-13-2014 10:02 AM |
Editing epubs on the device? | bremler | Android Devices | 2 | 02-08-2013 06:59 PM |