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-08-2017, 12:02 PM   #46
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,588
Karma: 772404
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:
Originally Posted by stumped View Post
slightly off topic but I can crash sigil almost at will with by running remove unused styles ( while the style sheet is being displayed and after editing some values or removing some front matter pages, thus making some styles redundant followed by save
it's usually the save operation that triggers sigil has encountered a problem and needs to close
I have learnt the hard way not to save which the stylesheet is the active displayed page
KevinH is offline   Reply With Quote
Advert
Old 06-08-2017, 12:11 PM   #47
stumped
Guru
stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.
 
Posts: 601
Karma: 144382
Join Date: May 2016
Device: Samsung tab s , fire HDX 8.9, fire hd 8
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.
stumped is offline   Reply With Quote
Old 06-08-2017, 12:12 PM   #48
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 3,924
Karma: 11088364
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
If someone else can confirm this failure mode with a recent Sigil version on other platforms, that would be grand.
I was able reproduce this failure with the 64bit Linux and Windows Sigil 0.9.8 versions.
Doitsu is offline   Reply With Quote
Old 06-08-2017, 01:14 PM   #49
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: 17,271
Karma: 89932658
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by stumped View Post
one other issue if i may - only in the more recent versions , if I delete a single stylesheet line - say an unwanted line height or font family, the displayed page then jumps a little, or the page stays still & the cursor jumps? Either way it no longer points at the now blank line. Does that make sense
I believe that specific issue (jumping/recentering/losing highlighting when editing CSS) was addressed in Sigil v0.9.7 if I recall correctly.
DiapDealer is online now   Reply With Quote
Old 06-08-2017, 01:25 PM   #50
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: 17,271
Karma: 89932658
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by stumped View Post
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.
Preview's not really new at all. It's been around for quite awhile. The widget's just not visible by default. It's basically Book View with no editing ability. It allows you to see the effect of code changes on the rendered product in real time. If you don't do any editing in Book View, using Preview saves you from having to switch back and forth between Code View and the rendered content.

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 01:31 PM.
DiapDealer is online now   Reply With Quote
Advert
Old 06-08-2017, 01:48 PM   #51
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,588
Karma: 772404
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 01:51 PM.
KevinH is offline   Reply With Quote
Old 06-08-2017, 02:56 PM   #52
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,588
Karma: 772404
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.
KevinH is offline   Reply With Quote
Old 06-08-2017, 06:17 PM   #53
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 1,517
Karma: 11627112
Join Date: Dec 2012
Location: Altus, Oklahoma today
Device: iPhone 6/5/iPad 1,2 & Air/Surface Pro/Kindle PW
Quote:
Originally Posted by KevinH View Post

I will look at loading an empty placeholder into Preview when any non-xhtml file is in the front tab.

Kevin
I hope that doesn't mean that the preview pane will go blank when I'm looking at a CSS sheet?!?!?

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.
Turtle91 is offline   Reply With Quote
Old 06-08-2017, 06:48 PM   #54
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 5,764
Karma: 54886904
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, and NookColor. 2 Droid, 1 Win8 ePUB rdrs
Quote:
Originally Posted by Turtle91 View Post
I hope that doesn't mean that the preview pane will go blank when I'm looking at a CSS sheet?!?!?

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.
"This Preview Deliberately Left Blank."


Hitch
Hitch is offline   Reply With Quote
Old 06-08-2017, 06:52 PM   #55
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 50,047
Karma: 43179559
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by Hitch View Post
"This Preview Deliberately Left Blank."


Hitch
Or showing the CSS.
JSWolf is offline   Reply With Quote
Old 06-08-2017, 07:51 PM   #56
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,588
Karma: 772404
Join Date: Nov 2009
Device: many
No,
It will still show the last html page it showed.
KevinH is offline   Reply With Quote
Old 06-09-2017, 12:16 AM   #57
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 5,764
Karma: 54886904
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, and NookColor. 2 Droid, 1 Win8 ePUB rdrs
Quote:
Originally Posted by KevinH View Post
No,
It will still show the last html page it showed.
You're no fun, Kev.

Hitch
Hitch is offline   Reply With Quote
Old 06-09-2017, 02:12 AM   #58
stumped
Guru
stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.
 
Posts: 601
Karma: 144382
Join Date: May 2016
Device: Samsung tab s , fire HDX 8.9, fire hd 8
Quote:
Originally Posted by KevinH View Post
@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 think it has to be delete unused style and then SAVE - its the save that causes the " sigil has sopped working"

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
stumped is offline   Reply With Quote
Old 06-09-2017, 03:07 AM   #59
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 1,876
Karma: 3738738
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch Sony PRS300
Quote:
Originally Posted by Doitsu View Post
No, all previously installed plugins will continue to work.
Okay. Cool. Thanks.
Gregg Bell is offline   Reply With Quote
Old 06-09-2017, 05:42 AM   #60
stumped
Guru
stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.stumped is not required to obey the law of gravity.
 
Posts: 601
Karma: 144382
Join Date: May 2016
Device: Samsung tab s , fire HDX 8.9, fire hd 8
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
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	33
Size:	76.1 KB
ID:	157224  
Attached Files
File Type: zip sigil.zip (5.7 KB, 16 views)

Last edited by stumped; 06-09-2017 at 05:56 AM.
stumped is offline   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 03:36 PM
Crash in Sigil while using Create HTML TOC theducks Sigil 17 04-06-2015 01:53 PM
Sigil 8.2 - Windows 7 64bit crash ebookreadr Sigil 46 03-01-2015 06:17 PM
[crash] Sigil 0.1.5 notebook Sigil 2 11-29-2009 01:14 PM


All times are GMT -4. The time now is 01:55 PM.


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