![]() |
#1 |
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Sigil 1.1.0 "losing" files
Hi folks,
Twice now Sigil has "lost" some files in an epub. The missing files are the cover image in the root folder, the META-INF folder and the container.xml inside that, and all 18 images in the images folder and the folder itself. Sigil is still running and the cover and other images still appear in the book browser (first attachment). The files in the previous epub (unzip -l) are: Spoiler:
The files in the just saved epub are: Spoiler:
If I try to open one of the images from the book browser Sigil thinks there's just a 0x0 image instead of the original (second attachment). I think these files went "missing" not long after the file was previously saved about a week ago, as the modified time on the Sigil temp directory is about 2 hours after the time I last saved the file. I haven't made any edits the epub until today. This is a Sherlock Holmes omnibus from Mobileread, and in a long-running edit. This instance of Sigil was started on Feb 20. The previous time this happened was on March 1. I thought it might have been some sort of operator error, but now that it's happened a second time here's a bug report. I release that there's little in this bug report that helps reproduce this ![]() I've still got Sigil opened, but need to reboot sometime in the next day or two (yay forced MS patches). Unfortunately Sigil was started from Calibre, so I don't have a possible log of anything. After I reboot for patching, I'll open Sigil via Calibre just in case it happens again and something interesting is reported by the problem. This is Sigil 1.1.0 on Windows 10 version 1909. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
AFAIK, Sigil will only remove files, if they're not manifested or if the manifest contains invalid paths.
Did you manually edit content.opf? If so, you've most likely created invalid entries. Please also post the contents of the original .opf file and the current .opf file. |
![]() |
![]() |
![]() |
#3 | ||
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Quote:
Quote:
Code:
<dc:date opf:event="modification" xmlns:opf="http://www.idpf.org/2007/opf">2020-03-09</dc:date> Code:
FATAL(RSC-002): Sherlock Holmes Omnibus - Sir Arthur Conan Doyle.epub(-1,-1): Required META-INF/container.xml resource could not be found. ERROR(RSC-001): Sherlock Holmes Omnibus - Sir Arthur Conan Doyle.epub(-1,-1): File 'META-INF/container.xml' could not be found. Check finished with errors Messages: 1 fatal / 1 error / 0 warnings / 0 infos EPUBCheck completed |
||
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,344
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Not a whole lot we can do without steps to reproduce (preferably without calibre's Open With being involved). I will note that the modification time on Sigil's temp directory will have little correlation to the last time an epub might have been saved.
You're certain you weren't manually accessing the contents of Sigil's temp directory at any time during this extended edit? I freely admit that workflows that involve the same epub being left open for weeks at a time baffle the bajeezus out of me. ![]() |
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
This'll make it easier for KevinH and DiapDealer to narrow down the issue. AFAIK, macOS Sigil users occasionally lost files, if they kept epubs open too long in Sigil. If you're a macOS user, you might want to change the temp folder location (Edit > Preferences > General Settings > Advanced) to a non-system folder. |
|
![]() |
![]() |
![]() |
#6 | ||||||
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Quote:
After I reboot to do the Win10 patching, I'll start Sigil from Cygwin so I can capture any console output (if any). Quote:
Quote:
Quote:
![]() Quote:
Quote:
|
||||||
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
![]() |
#8 |
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Here is the current (non)working version.
|
![]() |
![]() |
![]() |
#9 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,344
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() I have all kinds of "when I feel like it" projects going. But still I save and close the epub regularly. What advantage is there in doing it in one continuous session? Is it really just to save a few clicks?I I would love to have the original epub that you first opened on Feb 20th if at all possible. |
|
![]() |
![]() |
![]() |
#10 | ||
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Quote:
As for why one continuous session, mostly laziness I guess? It's easier to remember where you're up to if it's sitting there right in front of you. Otherwise I'd have to note down somewhere where I was up to for next time I opened it. This is also the only "when I feel like it" project I'm actually doing right now. That said, this is easily the longest I've ever Sigiled one book (is Sigiled a verb??). But I'm also the person who has way too many browser tabs open at any one time as well. That's just my workflow. Quote:
|
||
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,344
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Can you remember which plugins you may have used on the epub during that time?
|
![]() |
![]() |
![]() |
#12 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,611
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
IMO temp folders (user and system) belong to Windows. MS may have smuggled in a 'Dynamic cleanup of temporary folders based on Last Used date' feature into a Windows patch release and forgot to tell anyone.
I suggest the OP gives Sigil a dedicated temporary folder as per Doitsu's instructions. Added : an EPUB isn't a file when it's being edited, its a structured collection of linked files in a directory - but an OS doesn't know that, it just sees a bunch of files in sub folder in a location it 'manages' as it pleases. BR Last edited by BetterRed; 03-14-2020 at 07:40 AM. |
![]() |
![]() |
![]() |
#13 |
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
|
![]() |
![]() |
![]() |
#14 | |
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Quote:
Dig, dig, dig ... Well bugger? This link on the MS community forum talks about auto-cleanup. As per the attached screenshot, I do have this Storage Sense option enabled, but it shouldn't have touched anything less than 30 days old. Going from some of my old backups of this epub, it looks like the timestamps on the images gets updated each save (part of the zipping process?). Currently the temp folder is set to <SIGIL_DEFAULT_TEMP_HOME>. I think for now I'll set my Sigil temp folder outside ...\AppData\Local\Temp and see if this problem goes away after my patch reboot. |
|
![]() |
![]() |
![]() |
#15 | |
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Replying to myself ...
Quote:
Code:
Error info: C:/Users/simon/AppData/Local/Temp/Sigil-FUHGdb/book_split_139.html: The system cannot find the path specified. I also didn't read that previous screenshot closely enough - the 30 days was for emptying the recycle bin. I have no idea how often Windows cleans up temporary files, but it seems that anything older than say a week is fair game. ![]() Is the use case for keeping Sigil open for "a while" (for whatever definition of "a while" might suit) something we need to think about for temp dir settings? Thanks to Doitsu for pointing out what could have been the problem and BR for pointing it out a bit more forcefully ![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre-generated epub (from .docx) gives "e21027" "multiple opf files" on KindleGen | GhostRider | Conversion | 2 | 08-28-2024 10:14 AM |
Aluratek Libre Pro Is Suddenly "Losing" Words | Byrdie | Ectaco jetBook | 8 | 08-30-2013 10:07 AM |
KT "Ghost covers/files" again at 670 books, "stale" image entries in firmware | VirgoGirl | Kobo Reader | 4 | 04-06-2012 02:10 PM |
Sigil 024 and regular expressions on "all HTML files" | WS64 | Sigil | 4 | 08-13-2010 07:33 PM |
Importing "big" XHTML files in Sigil | paulpeer | Sigil | 8 | 03-19-2010 05:00 AM |