Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-09-2017, 09:16 AM   #61
KevinH
Wizard
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: 2,416
Karma: 769772
Join Date: Nov 2009
Device: many
FWIW, all of my previous tests were with saving as well and editing and changing both the xhtml and css files.

I will try again, but perhaps this is a platform (Windows) specific bug?

If anyone else can recreate this bug on Windows ot any other platform and let us know how that would be a big help.

Last edited by KevinH; 06-09-2017 at 09:33 AM.
KevinH is offline   Reply With Quote
Advert
Old 06-09-2017, 09:20 AM   #62
KevinH
Wizard
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: 2,416
Karma: 769772
Join Date: Nov 2009
Device: many
Actually unlike Calibre's plugin design, Sigils plugins are inert and can not interfere with Sigil operations by design (although that choice makes them much more limited in some ways than Calibre's plugins).

So the presence or absence of plugins in Sigil is never an issue unless running the actual plugin manually.
KevinH is offline   Reply With Quote
Old 06-09-2017, 10:58 AM   #63
KevinH
Wizard
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: 2,416
Karma: 769772
Join Date: Nov 2009
Device: many
@stumped
I have now tried for an hour to get something to crash upon Save when the css tab is in the front, after editing the css, and deleting a few chapters of xhtml, etc.

For me I can not get it to crash.

Please try one thing for me: Rename your sigil.ini file to sigil.ini.keep and let Sigil 0.9.8 create its own ini file. Does the crash still happen?

Thanks,

Kevin

ps. If anyone else can recreate this problem on any platform I would love to know.

Thanks
KevinH is offline   Reply With Quote
Old 06-09-2017, 11:10 AM   #64
KevinH
Wizard
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: 2,416
Karma: 769772
Join Date: Nov 2009
Device: many
@stumped

One thing I noticed from your posted sigil.ini file was that you were reading from, and when saving, writing inside of the "Calibre Library" folder.

> lastfolderopen=C:/Users/dad/Documents/Calibre Library/Val McDermid/Splinter the Silence (4962)

I am not sure this is a good idea. I don't do this. Does Calibre want to completely control everythign in the Calibre Library folder? Does it allow changes to be made underneath? Is that epub open inside Calibre in any way at the same time?

So would you please try exporting that epub to be edited outside of Calibre to someplace safe. Then with the new exported copy, run Sigil on it and see if the crash still happens.

Does anyone else regularly run Sigil on Files directly in Calibre Library?

Last edited by KevinH; 06-09-2017 at 11:23 AM.
KevinH is offline   Reply With Quote
Old 06-09-2017, 04:27 PM   #65
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: 20,458
Karma: 20259386
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Astak Pocket Pro, K4NT,Galaxy Tab 2
Quote:
Originally Posted by KevinH View Post
@stumped

One thing I noticed from your posted sigil.ini file was that you were reading from, and when saving, writing inside of the "Calibre Library" folder.

> lastfolderopen=C:/Users/dad/Documents/Calibre Library/Val McDermid/Splinter the Silence (4962)

I am not sure this is a good idea. I don't do this. Does Calibre want to completely control everythign in the Calibre Library folder? Does it allow changes to be made underneath? Is that epub open inside Calibre in any way at the same time?

So would you please try exporting that epub to be edited outside of Calibre to someplace safe. Then with the new exported copy, run Sigil on it and see if the crash still happens.

Does anyone else regularly run Sigil on Files directly in Calibre Library?
Yes
All the time using Kiwidude's Open with PI.
I wonder if something else had the file open (RW)?
theducks is offline   Reply With Quote
Advert
Old 06-09-2017, 04:41 PM   #66
KevinH
Wizard
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: 2,416
Karma: 769772
Join Date: Nov 2009
Device: many
Unless I am mistaken, that plugin can cause issues by mixing Qt versions (one for Calibre, and one for Sigil) that can cause problems and that now the correct way to launch Sigil from Calibre was to use Calibre's official non-plugin internal version of "open with".

Can anyone say for sure?
KevinH is offline   Reply With Quote
Old 06-09-2017, 05:39 PM   #67
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: 16,029
Karma: 83624236
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
Unless I am mistaken, that plugin can cause issues by mixing Qt versions (one for Calibre, and one for Sigil) that can cause problems and that now the correct way to launch Sigil from Calibre was to use Calibre's official non-plugin internal version of "open with".

Can anyone say for sure?
Someone posted a fixed version of the Kiwidude Open With plugin that utilizes the same strategy that the internal calibre Open With feature uses. It's safe to use on Windows, but it might still cause problems on Linux.

Not sure it would have a bearing on the crashing issues either way, though. The main problem was that calibre Qt plugins were being used with Sigil's Qt.

One way to rule it out would be to use calibre to open the location to the book and use OS-level file-associations to open the epub in Sigil and try to get it to crash. I open books in calibre libraries like that all the time with no issues, but maybe I've just never performed the "correct" steps to get it to crash.
DiapDealer is online now   Reply With Quote
Old 06-09-2017, 05:51 PM   #68
KevinH
Wizard
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: 2,416
Karma: 769772
Join Date: Nov 2009
Device: many
Are you able to recreate these crashes in any way on your Windows builds?

I am stumped as I simply can not get it to crash in the manner stumped has described.


Quote:
Originally Posted by DiapDealer View Post
Someone posted a fixed version of the Kiwidude Open With plugin that utilizes the same strategy that the internal calibre Open With feature uses. It's safe to use on Windows, but it might still cause problems on Linux.

Not sure it would have a bearing on the crashing issues either way, though. The main problem was that calibre Qt plugins were being used with Sigil's Qt.

One way to rule it out would be to use calibre to open the location to the book and use OS-level file-associations to open the epub in Sigil and try to get it to crash. I open books in calibre libraries like that all the time with no issues, but maybe I've just never performed the "correct" steps to get it to crash.
KevinH is offline   Reply With Quote
Old 06-09-2017, 07:15 PM   #69
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: 16,029
Karma: 83624236
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
Are you able to recreate these crashes in any way on your Windows builds?

I am stumped as I simply can not get it to crash in the manner stumped has described.

I was able to recreate the one you detailed (and fixed), with Preview open to deleted resources. But I've not been able to get it to crash when saving after editing css (with the css tab open).

Last edited by DiapDealer; 06-09-2017 at 07:21 PM.
DiapDealer is online now   Reply With Quote
Old 06-09-2017, 07:18 PM   #70
BetterRed
null operator
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: 8,548
Karma: 7100215
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by KevinH View Post
... Does anyone else regularly run Sigil on Files directly in Calibre Library?
Yes most days of the week, via calibre's built in Open With feature.

I also edit other file types in calibre libraries via the same feature, e.g. DOCX, CBZ, TIFF, and audio/video files with Word, Irfanview, Audacity etc.

BR
BetterRed is offline   Reply With Quote
Old 06-09-2017, 07:25 PM   #71
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: 16,029
Karma: 83624236
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Perhaps we can get @stumped to confirm that he's not launching Sigil via a calibre Open With feature (either plugin or built-in) when these crashes happen?
DiapDealer is online now   Reply With Quote
Old 06-09-2017, 08:10 PM   #72
BetterRed
null operator
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: 8,548
Karma: 7100215
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by KevinH View Post
1. Open any epub with extra styles in an style sheet and more than one xhtml file
2. make sure Preview is showing
3. open one of the xhtml files in the book so that it shows in CodeView *and* Preview
4. navigate to the stylesheet in book browser and double click it to open the css file in the front tab
5. Use right click in the book browser to delete the xhtml file you opened first (and still showing in Preview!)
6. With the CSS tab still open in front, invoke the Tools -> DeleteUnusedStylesheetClass and tell it to delete them when asked for confirmation
7. I crash here sometimes but other times I must try a Save.
but always in Save

Happened when an epub was opened via calibre's built-in Open With from within a calibre library, and when an epub was opened via Windows File Explorer Open With from the desktop. Which led me to conclude it has nothing to do with calibre's built in Open with.

I then tried to get it to crash when deleting the styles. All tests opened a fresh copy of the same ePub from the desktop via Windows File Explorer Open With.

The first test crashed in Save, but it must have been after it did the actual writes, because the deleted .xhtml file and the styles were gone. On the second test it crashed in Save but the deleted .xhtml file and styles were still there. I did 3 more tests, first and third crashed before any writes (i.e. ePub file was not updated) and the other one after the writes (i.e. ePub file was updated). I also did a test without Preview, no problems.

Windows 10 Pro version 1607, Sigil 0.9.8 64 bit

BR

Last edited by BetterRed; 06-09-2017 at 09:56 PM.
BetterRed is offline   Reply With Quote
Old 06-09-2017, 10:19 PM   #73
KevinH
Wizard
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: 2,416
Karma: 769772
Join Date: Nov 2009
Device: many
@BetterRed
That particular crash we know about and have actually fixed in master. It is caused by stale data in Preview after deleting its xhtml.

We are trying to recreate a different crash that "stumped" reported earlier in this thread. That crash happens *without* Preview open. But without Preview open/visible, just like you, I could not get a crash to happen (with nearly the same sequence of steps you cited above just no Preview showing but after having manually edited some of the css in the front tab before removing unused styles and saving).

Thanks for reporting back.
KevinH is offline   Reply With Quote
Old 06-10-2017, 12:36 AM   #74
stumped
Evangelist
stumped knows how to set a laser printer to stun.stumped knows how to set a laser printer to stun.stumped knows how to set a laser printer to stun.stumped knows how to set a laser printer to stun.stumped knows how to set a laser printer to stun.stumped knows how to set a laser printer to stun.stumped knows how to set a laser printer to stun.stumped knows how to set a laser printer to stun.stumped knows how to set a laser printer to stun.stumped knows how to set a laser printer to stun.stumped knows how to set a laser printer to stun.
 
Posts: 488
Karma: 95108
Join Date: May 2016
Device: Samsung tab s , fire HDX 8.9, fire hd 8
Quote:
Originally Posted by DiapDealer View Post
Perhaps we can get @stumped to confirm that he's not launching Sigil via a calibre Open With feature (either plugin or built-in) when these crashes happen?
I launch sigil by double clicking the book line in calibre main pane.
AFAIK that is the same as asking windows to open it. it opens in sigil because that is my windows default for epub.

I do it that way because save will then replace the book correctly in calibre library. calibre is idle while I am editing in sigil

in the most recent case, I can tweaked and saved twice , all OK. Then just as I was thinking hey this 0.9.8. is stable, i did one more tweak ( then maybe a check on delete styles) then quickly did save. I wonder if it crashed because there was still some background activity going on when I chose save.

I have the sigil defaults of mend on open, mend on save both ON. the code was all good as I had done 2 saves already. ( & this 2 mends) The final tweak was either to remove on overlooked dedication page, or it was a font-size tweak for chapter headings
stumped is offline   Reply With Quote
Old 06-10-2017, 09:31 AM   #75
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: 16,029
Karma: 83624236
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by stumped View Post
I launch sigil by double clicking the book line in calibre main pane.
AFAIK that is the same as asking windows to open it. it opens in sigil because that is my windows default for epub.
It's very close, but not quite. calibre is still responsible for handing off the request to the OS (very likely through QDesktopServices), but it's still possible for the calling program's (calibre) environment to interfere. I've seen it happen on Linux: launched via QDesktopServices through another program doesn't work correctly ... launched via normal OS procedures works just fine.

That being said, Kovid does a great job of ensuring that calibre's environment doesn't interfere with any processes it may spawn, but I'd still like to see you recreate the crash with calibre completely out of the equation if at all possible.
DiapDealer is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil crash Gibook Editor 5 07-04-2015 02:36 PM
Crash in Sigil while using Create HTML TOC theducks Sigil 17 04-06-2015 12:53 PM
Sigil 8.2 - Windows 7 64bit crash ebookreadr Sigil 46 03-01-2015 05:17 PM
[crash] Sigil 0.1.5 notebook Sigil 2 11-29-2009 12:14 PM


All times are GMT -4. The time now is 02:25 PM.


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