Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 11:50 AM   #1
jwes
Connoisseur
jwes began at the beginning.
 
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?
jwes is offline   Reply With Quote
Old Yesterday, 12:00 PM   #2
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,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?
DiapDealer is offline   Reply With Quote
Advert
Old Yesterday, 12:22 PM   #3
jwes
Connoisseur
jwes began at the beginning.
 
Posts: 82
Karma: 10
Join Date: Jul 2023
Device: none
Quote:
Originally Posted by DiapDealer View Post
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?
I have a very large epub with a few thousand images and it takes about 10 seconds to save.
jwes is offline   Reply With Quote
Old Yesterday, 01:08 PM   #4
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,630
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by jwes View Post
I have a very large epub with a few thousand images and it takes about 10 seconds to save.
I don't have access to an epub large enough to even test whether or not a second instance of Sigil would be unresponsive during a save of a different instance.
DiapDealer is offline   Reply With Quote
Old Yesterday, 02:58 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: 8,816
Karma: 6000000
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by jwes View Post
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?
In your testing, is any other non-Sigil app responsive when Sigil is saving and compressing thousands of files? Especially to a remote or slow device?

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.
KevinH is offline   Reply With Quote
Advert
Old Yesterday, 03:05 PM   #6
jwes
Connoisseur
jwes began at the beginning.
 
Posts: 82
Karma: 10
Join Date: Jul 2023
Device: none
Quote:
Originally Posted by KevinH View Post
In your testing, is any other non-Sigil app responsive when Sigil is saving and compressing thousands of files? Especially to a remote or slow device?

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 Windows with the same main process, so sharing the gui thread and sharing worker threads.
Other apps work fine and I am saving locally on Windows 11.
jwes is offline   Reply With Quote
Old Yesterday, 03:23 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: 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.
KevinH is offline   Reply With Quote
Old Yesterday, 03:58 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: 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.
DiapDealer is offline   Reply With Quote
Old Yesterday, 04:33 PM   #9
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,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.
KevinH is offline   Reply With Quote
Old Yesterday, 05:27 PM   #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: 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.
DiapDealer is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


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


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