Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-14-2021, 05:30 PM   #1
un_pogaz
Chalut o/
un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.
 
un_pogaz's Avatar
 
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"/>
At the moment I deleted this line, miracle, problem solved.

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.
un_pogaz is offline   Reply With Quote
Old 05-14-2021, 05:45 PM   #2
Doitsu
Grand Sorcerer
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: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by un_pogaz View Post
Code:
<item href="../META-INF/com.apple.ibooks.display-options.xml" id="id1" media-type="application/xml"/>
At the moment I deleted this line, miracle, problem solved.

The worst is that, technically, this line is VALID, normal that I struggle to find it.
AFAIK, this line is not valid, because none of the files in META-INF are supposed to be manifested.
Doitsu is offline   Reply With Quote
Advert
Old 05-14-2021, 06:25 PM   #3
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: 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.
DiapDealer is offline   Reply With Quote
Old 05-14-2021, 06:26 PM   #4
KevinH
Sigil Developer
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: 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.
KevinH is offline   Reply With Quote
Old 05-14-2021, 06:48 PM   #5
KevinH
Sigil Developer
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: 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.
KevinH is offline   Reply With Quote
Advert
Old 05-14-2021, 08:03 PM   #6
KevinH
Sigil Developer
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: 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.
KevinH is offline   Reply With Quote
Old 05-14-2021, 08:06 PM   #7
KevinH
Sigil Developer
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: 8,475
Karma: 5703586
Join Date: Nov 2009
Device: many
Also pushed a new base for translations because of the new error message.
KevinH is offline   Reply With Quote
Old 05-15-2021, 11:20 AM   #8
un_pogaz
Chalut o/
un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.
 
un_pogaz's Avatar
 
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.
un_pogaz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 04:31 AM.


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