![]() |
#1 |
Techno-geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 225
Karma: 1116651
Join Date: Nov 2006
Location: Mississippi, USA
Device: PRS-T1 (Black), PRS-T3S (Black), Kobo Aura ONE
|
New message when I open Sigil 0.9.17
When I open a file in Sigil I get a message that "Files exist in manifest which are not in epub. They will be ignored." What am I to do with this information? How can I find out what these files are? Are they unnecessary? Should i Find them and remove them???
--MH |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
What OS? And the answer to "how you can find what files these are" is to click the details button on that dialog. It will list all the files.
First find out if the epub passes EPubcheck validation. Report back with that info and we'll go from there. |
![]() |
![]() |
![]() |
#3 |
Techno-geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 225
Karma: 1116651
Join Date: Nov 2006
Location: Mississippi, USA
Device: PRS-T1 (Black), PRS-T3S (Black), Kobo Aura ONE
|
I am running MacOS 10.14.6 (Mojave). The epub passes the epubcheck 4.2.2.
The details button gves a list of files. My question is: Does this list include the files not in the manifest? should I compare to the manifest? --MH Last edited by dynabook; 08-17-2019 at 07:26 PM. Reason: Added info. |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Yes. The list of files in the dialog box is the list of files Sigil _thinks_ is not in the manifest. That may or may not actually be the case. Does the list appear to be every file in the epub? And does this happen with every epub you open or just some?
Kevin's been looking into a similar issue reported by a Mac user, so I'll let him take over. He understands the specifics better than I do. |
![]() |
![]() |
![]() |
#5 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,452
Karma: 5703586
Join Date: Nov 2009
Device: many
|
We have a Mac debug build that will list the files it finds in the zip along with what it thinks in the manifest.
Please see this bug report: https://github.com/Sigil-Ebook/Sigil/issues/448 It has a link to a special build for Mac to debug just this type of error. It has instructions on how to download, unpack, and run it with a special environment variable. If you are willing to help us debug what is going on please check out this Sigil issue which has all the info you should need to help track this one down. I think that build also has some changes to how files are launched from macOS with open with and drag or drop, so you could report on whether they help or not. Please let me know if you are willing to help out. Thanks, KevinH |
![]() |
![]() |
![]() |
#6 | |
Techno-geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 225
Karma: 1116651
Join Date: Nov 2006
Location: Mississippi, USA
Device: PRS-T1 (Black), PRS-T3S (Black), Kobo Aura ONE
|
I read the bug report. I probably have done the following:
Quote:
--MH |
|
![]() |
![]() |
![]() |
#7 |
Techno-geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 225
Karma: 1116651
Join Date: Nov 2006
Location: Mississippi, USA
Device: PRS-T1 (Black), PRS-T3S (Black), Kobo Aura ONE
|
Steps:
1. Remove Sigil and PageEdit from /Applications and empty trash. 2. Redownload Sigil and PageEdit from Github. 3. Pull Sigil and PageEdit DMGs from Download folder to Desktop. 4. Open DMG and drag Sigil to /Applications. Do same for PageEdit. Run Sigil and receive same message as before. Get message for any epub opened. All files listed seem to be in manifest. I will investigate using the special build. --MH |
![]() |
![]() |
![]() |
#8 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,452
Karma: 5703586
Join Date: Nov 2009
Device: many
|
If you go farther down that bug report you will see the link to the special debug build of Sigil for mac and instructions on how to install and use it.
The debug log file created in your Desktop as a result of the test with that epub should tell us all we need to know. Please give it a try and let us know what the debug log says (via pm here is necessary). |
![]() |
![]() |
![]() |
#9 |
Techno-geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 225
Karma: 1116651
Join Date: Nov 2006
Location: Mississippi, USA
Device: PRS-T1 (Black), PRS-T3S (Black), Kobo Aura ONE
|
Uploaded debug file after having to "man zip" and create Github account! Been a while.
Do you want me to post here as well? --MH Last edited by dynabook; 08-18-2019 at 03:53 PM. Reason: typo |
![]() |
![]() |
![]() |
#10 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,452
Karma: 5703586
Join Date: Nov 2009
Device: many
|
No need. I just grabbed it form the issue.
|
![]() |
![]() |
![]() |
#11 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,452
Karma: 5703586
Join Date: Nov 2009
Device: many
|
This is so strange...
It walked the manifest file and built up the file paths from the temporary Directory that Sigil created to store the unzipped epub: Here is the temporary directory used to unpack the epub into: m_ExtractedFolderPath: "/var/folders/kl/5s_sbwr972n1qq9xrk7rlyvr0000gn/T/Sigil-DTjJwa" Here is the complete file path used to store one of the files as an example: Debug: creating manifest file path from: "/var/folders/kl/5s_sbwr972n1qq9xrk7rlyvr0000gn/T/Sigil-DTjJwa/OEBPS/Text/ded01.xhtml" But when you ask for the epub root relative file path for that file it comes back with something that makes no sense: Debug: Manifest File Paths: Debug: "-DTjJwa/OEBPS/Text/ded01.xhtml instead of the expected: OEBPS/Text/ded01.xhtml It is almost as if the temp folder name has embedded null characters of some sort! Not sure why this is happening, but there is nothing wrong with the epub itself. The problem is in how mac OSX 10.14 is generating temp folder paths. It seems to be embedding nulls or other invisible characters so that a count of the strings can not be used to remove the root folder from the name. This is very strange. I will have to dig deeper. KevinH |
![]() |
![]() |
![]() |
#12 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,452
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Okay this is because macOS is using symlinks in creating the tempfolder path that are not resolved:
dynabook/ Please do the following in Terminal.app cd / ls -al /var ls -al /tmp and report back what they say: On my machine: ls -al /var reports: /var -> private/var and ls -al /tmp reports: /tmp -> private/tmp |
![]() |
![]() |
![]() |
#13 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
In this commit: https://github.com/Sigil-Ebook/Sigil...517017fbc659d5
Is m_ExtractedFolderPath canonical? And if not, shouldn't it be? If it's absolute, then you might be subtracting apples from oranges to get the relative path. Canonical should remove symbolic links. |
![]() |
![]() |
![]() |
#14 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,452
Karma: 5703586
Join Date: Nov 2009
Device: many
|
I think the problem is the call to create a canonical path for each manifest file. On my machine it will not resolve the symlinks, and on your machine it resolves the symlinks so it converts:
converts: "/var/folders/kl/5s_sbwr972n1qq9xrk7rlyvr0000gn/T/Sigil-DTjJwa/OEBPS/Text/ded01.xhtml" to /private/var/folders/kl/5s_sbwr972n1qq9xrk7rlyvr0000gn/T/Sigil-DTjJwa/OEBPS/Text/ded01.xhtml And when I remove the length of the m_ExtractedFolderPath which was: "/var/folders/kl/5s_sbwr972n1qq9xrk7rlyvr0000gn/T/Sigil-DTjJwa" I end up with leaving 8 characters too many in the path (length of "/private"). So this appears to be caused by a change in how canonicalFilePaths are being resolved in macOS 10.13 and earlier and macOS10.14 and later. This would cause lots of havoc in just about everything to do with launching a new file with open with as well. "canonicalFilePaths" are supposed to have all symlinks resolved but that does not happen on my machine but does seem to happen on your machine. So I think this is a bug fix made by Apple for macOS 10.14 that breaks Sigil. I will look into fixing this. |
![]() |
![]() |
![]() |
#15 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,452
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Yes but using a canonical file for the temp folder created another issue for macOS a ways back (and if our call to canonical is broken - that explains why.
So the best solution is not to resolve relative hrefs from the manifest using canonical but instead to do it the way I have just added to PageEdit (a utility routine) that will work for all platforms. What we need is an absolute path without relative segments if canonical is broken on macOS and sometimes doesn't resolve all symlinks that start at root. I guess we could start with a canonical name in TempFolder and if that breaks me (my macos 10.13 machine) we can try to just resolve relative links and not symlinks and let the symlinks live. The problem is hard links will then break the canonical file paths as will some aliases. Hmm.... Kevin Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil Error Message: Book File Would Not Open in Sigil | fkustaa | Sigil | 9 | 04-27-2025 05:11 AM |
Getting:Sorry, cannot open this book. Error Message | abtvlng | Calibre Companion | 15 | 04-23-2018 05:12 AM |
Calibre help - Error message, can't open ebooks | Sunnyful | Library Management | 4 | 06-06-2015 03:47 PM |
Trying to Open Calibre and Getting Error Message | Loosheesh | Calibre | 12 | 03-02-2011 10:03 PM |
Can't open Calibre-error message | matcor | Calibre | 2 | 02-26-2011 12:51 AM |