![]() |
#1 |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 437
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
[bug] Sigil doesn't start
Sometimes when I try to open an ePub, Sigil does not start.
It is active in the process manager but no UI. It seems to be stuck in an infinite loading (and a little vicious thing the window "incorrect formatting" is displayed normally, it is after that it blocks) This has happened countless times, and I've tried the most voodoo and twisted solutions that I know (and that I wouldn't share on this public forum), sometimes with success, sometimes not. And today, I finally found the origin of the bug... one line. A single **** line is enough to completely block Sigil. Code:
<item href="../META-INF/com.apple.ibooks.display-options.xml" id="id1" media-type="application/xml"/> The worst is that, technically, this line is VALID, normal that I struggle to find it. So I understand the strategy of not indexing in the <manifest> the third-party files present in the META-INF folder, such as the com.apple.ibooks.display-options.xml, but make sure that if such a <item> exists, that it does not soft-lock Sigil at its opening. (sorry that a'm a bit rough, but I've been banging my head against the wall for over a year because of him) Last edited by un_pogaz; 05-14-2021 at 05:34 PM. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
AFAIK, this line is not valid, because none of the files in META-INF are supposed to be manifested.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,356
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Definitely shouldn't be manifested, but it probably shouldn't prevent Sigil from starting if it is, either.
|
![]() |
![]() |
![]() |
#4 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,475
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Yes Sigil will ignore files in the Meta-Inf during load but will walk the manifest and try to load everything there and this most likely causes a blockage that will not resolve itself.
It is an illegal line as Doitsu pointed out. I will add code to skip reading anything in the manifest that points into the Meta-Inf. And add an illegal manifest error message. |
![]() |
![]() |
![]() |
#5 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,475
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Also if you run into strange Sigil issues, you can always post the problem epub someplace private and pm either DiapDealer or KevinH with a link, and we would be happy to track down the issue since we can enable debug output in the ImportEPUB routine to see issues like this one much faster.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,475
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Just pushed a fix to master to skip trying to load manifested files that exist inside the META-INF folder. A load warning with the illegal manifest entry is generated. Tested and it now loads the my test version of this broken epub.
|
![]() |
![]() |
![]() |
#7 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,475
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Also pushed a new base for translations because of the new error message.
|
![]() |
![]() |
![]() |
#8 |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 437
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
@Doitsu Ah, I did not know that. I thought that all files, excluding some exceptions defined in the standard should be manifested, including those in the META-INF if those are not the above mentioned specials.
Yes, it's true that I could ask for help, but I never think about it. Thanks. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre doesn't start | FuzzyDog | Calibre | 4 | 08-26-2018 03:28 AM |
KOBO AURA HD DOESN'T START | STEF71 | Kobo Reader | 10 | 01-19-2017 10:48 AM |
Troubleshooting Framework doesn't start | psyche17 | Amazon Kindle | 0 | 12-16-2016 09:23 AM |
Calibre doesn't start | slothrop | Calibre | 1 | 12-14-2009 09:23 PM |
Calibre doesn´t start... | chili_666 | Calibre | 3 | 02-12-2009 01:09 AM |