![]() |
#46 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,485
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Hi,
Okay I finally found time to look at this and I can recreate it but only under specific circumstances: 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. From the backtrace, the bug is nothing to do with CSS updating, and instead seems to be due to the xhtml file that was deleted in step 5 above still trying to be loaded and shown by Preview. Somehow after deleting an xhtml fie, we have to make sure it is not current showing in Preview and if so , wipe it out. This will always happen when Preview is not open or when you move to another xhtml as front tab (it will replace Preview's contents with a valid xhtml file). The problem happens because a CSS file is showing in front and it has no Preview! If someone else can confirm this failure mode with a recent Sigil version on other platforms, that would be grand. I will look at loading an empty placeholder into Preview when any non-xhtml file is in the front tab. Kevin Quote:
|
|
![]() |
![]() |
![]() |
#47 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
Afaik, I never use preview mode, which is an recent enhancement ?
I use both book and code views I think that most of my crashes when I save, while the stylesheet is visible in the main pane Some others, maybe, are from running delete unused styles, while the stylesheet is in view. |
![]() |
![]() |
Advert | |
|
![]() |
#48 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,683
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
![]() |
#49 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,359
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#50 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,359
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
We've had other issues where non-xhtml tabs being open caused errors/crashes when certain features were used. Wouldn't surprise me if this wasn't something similar. The most recent one I can think of was when merging/splitting html files would cause crashes when non-html tabs (opf, ncx) were open. That one was just addressed in v0.9.8. Last edited by DiapDealer; 06-08-2017 at 12:31 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#51 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,485
Karma: 5703586
Join Date: Nov 2009
Device: many
|
@Doitsu - Thanks for the confirmation. I have now pushed a fix for this to Sigil's master.
@stumped I have many epubs that have extra styles in them and while the stylesheet was in the front tab (showing) I was able to use Tools->DeleteUnusedStyles just fine and never saw a crash or any type of problem when Preview was not open. I would be happy to keep digging but I will need a sample epub with step by step instructions on how to recreate the crash. With current Sigil versions, I simply can not cause it to crash in the manner you described without Preview open to a deleted resource. Last edited by KevinH; 06-08-2017 at 12:51 PM. |
![]() |
![]() |
![]() |
#52 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,485
Karma: 5703586
Join Date: Nov 2009
Device: many
|
FYI - updated that fix to put back an overzealous removal of a needed line
So if you are building your own from Master, please repull. |
![]() |
![]() |
![]() |
#53 | |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,313
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
I regularly edit the CSS sheet with the previous HTML file still showing in the preview so that I can see my CSS changes in real-time. This makes it so much easier to see minor changes in the CSS and to confirm that my new styling looks how I want. |
|
![]() |
![]() |
![]() |
#54 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
![]() Hitch |
|
![]() |
![]() |
![]() |
#55 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,179
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#56 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,485
Karma: 5703586
Join Date: Nov 2009
Device: many
|
No,
It will still show the last html page it showed. |
![]() |
![]() |
![]() |
#57 |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
![]() |
![]() |
![]() |
#58 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
Quote:
I think the best way forward is for me to update to 0.9.8 then see if I get any more crashes - I will try to provoke it by doing the things I suspect cause it. If I can get something re-producible how do I go about submitting evidence ( given the copyright issues with uploading any specific epub ) if nothing else, by cursor jumping issue wshoudl get fixed by upgrading ![]() |
|
![]() |
![]() |
![]() |
#59 |
Gregg Bell
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
|
![]() |
![]() |
![]() |
#60 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
well I managed to crash 0.9.8, by saving with stylesheet in main pane, after some tweaking.
this was while working on an epub conversion of a retail azw I removed some intro pages, some nested divs, tweaked a couple of styles... a couple of previous tweaks and saves for the same book had been ok I think ( but not totally sure) that the previous command had been another check & delete any un used styles it crashed on the save command screen shot attached PS after snipping and posting that, I reopened, reopened stylesheet, re-saved, could not get a 2nd crash ( but i did not actually edit anything that time, so that's an essential pre-requisite ? ) i will attach try to sigil.ini from app data as that has the most recent find replace activity done - i had to zip it. could not upload an ini file directly PS before anyone asks, I have no plug-ins installed in Sigil Last edited by stumped; 06-09-2017 at 04:56 AM. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |