![]() |
#1 |
Member
![]() Posts: 14
Karma: 10
Join Date: Dec 2020
Device: web
|
Book crashing Sigil on Mac
Hello. I have Sigil 1.4.2 installed on MacOS 10.15.7.
I'm trying to edit this book for work. Initially, it got an error that a file was not present (an iTunes playlist) and would beachball after I clicked close. I used calibre to open the file and remove the playlist file and save it again, but Sigil still won't open it. I was trying to confirm that it is indeed fixed layout, which is apparently stored as a piece of metadata, but not one that calibre seems to show me. So I wanted to both report the issue and see if anyone would know how I might check the format. It seems FXL because when I open it in Books and resize the window the ratio stays the same? Last edited by KevinH; 12-01-2020 at 11:09 AM. Reason: remove in case it is copyrighted |
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,763
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Is this work under copyright? If so, it is illegal to post this book here.
To be safe I have removed the file. If this is your epub or public domain, then you may repost it. I did look at the book and it is not FXL but it does use a fixed viewport size and javascript. Since it appears to be an epub2 book that uses javascript, the book is technically broken as epub2 does not support any javascript. I will look into why this book will not load in Sigil. I was able to unzip the epub and use PageEdit to open the file and once in Preview mode, actually read the story and move to the correct pages. Last edited by KevinH; 12-01-2020 at 11:10 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,763
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Okay, this epub seems to be very broken and does not meet spec in many ways:
- it is an epub2 which does not support javascript at all but it uses javascript - it is missing the required scripted and manifest properties required buy epub3 - its content.opf incorrectly sets the mime type of a css file to "Text/css" and not "text/css" - it META-INF encryption.xml file for the fonts is also very broken. Its URI entries are supposed to be absolute URIs from the root of the epub and not relative to META-INF (similar to how the container.xml works). This last bit is what causes the fonts to be constantly reloaded again and again which causes Sigil to hang. I will see if I can make Sigil more robust to bad or broken encryption.xml files. If you paid for this, I would ask for my money back. It is in really sad shape and will probably only work in iBooks. |
![]() |
![]() |
![]() |
#4 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,763
Karma: 6000000
Join Date: Nov 2009
Device: many
|
I have now found a way to detect the broken encryption.xml font uris and fix them to prevent Sigil from hanging on load. This fix has been committed to master.
It will appear in the next release of Sigil. So thank you for your bug report! Kevin ps: If you want to fix this in your epub, unzip it and hand edit the META-INF/encryption.xml file with a decent text editor and for each font URI that begins with "../" remove the "../" and save the file. Then rezip and it, rename it to epub and then load it in Sigil. ps. Even with all of its bugs and issues, it appears to "work". |
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 14
Karma: 10
Join Date: Dec 2020
Device: web
|
Ah sorry. I thought it was important to make the file available for someone to look at.
It was given to me as an example of "what they wanted". Given what you found in looking at it, I will need to ask our vendor to provide a quote on doing this but properly to provide us something that's "like" that file but meets standards. Thank you for taking a look! Last edited by Magess; 12-01-2020 at 01:36 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,763
Karma: 6000000
Join Date: Nov 2009
Device: many
|
FWIW, I think it could be a legal epub3 book that would meet spec if properly done as an epub3 and the spec errors fixed.
In the future, you can pm me here on mobileread with a link to your problem epub and I can use it to diagnose any bugs and delete it afterwards. Posting it in a public forum is just not allowed here. Last edited by KevinH; 12-01-2020 at 02:51 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil keeps crashing.. any ideas | rosshalde | Sigil | 33 | 12-08-2014 08:45 AM |
sigil 7.4 and maverick crashing crashing crashing | Carrigboy | Sigil | 103 | 09-04-2014 11:47 AM |
Sigil keeps crashing | kksdragons | Sigil | 18 | 11-14-2013 06:20 AM |
Crashing on Mac OS 10.9? | imabuddha | Devices | 1 | 10-24-2013 07:54 AM |
Sigil is crashing in Windows | lindaw2396 | Sigil | 4 | 04-22-2013 05:42 PM |