![]() |
#1 |
Gregg Bell
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
Just lost a whole day's work with a Sigil crash
I've been formatting a novel all day. Saving regularly. Then I entered some code into a blank html page in Code View, forgetting to have the xml Doctype stuff up top. I got a message in the preview that something was wrong. I tried to X out but the screen was frozen. Then Sigil crashed. A window came up and I chose "Relaunch." But I got a window that said my file couldn't be found.
So I waited and started Sigil on its own and opened the file, but none of the work I'd done all day was there. I thought I'd opened the wrong file but it was the right one. As freakiness would have it this was the one time I was saving the file in only one place. <shaking head> I just tested the selfsame file to see if it is saving changes and it is. Anybody know what might've happened? How this was even possible? (I must have saved it fifty times.) |
![]() |
![]() |
![]() |
#2 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 972
Karma: 4999999
Join Date: Mar 2009
Location: Rosario, Argentina
Device: SONY PRS-T2, Kindle Paperwhite 11th gen
|
I think it would be a good idea to open a copy of a working ePub file and repeat the sequence (add blank html file, enter code without the Doctype stuff) and see if the same happens again. In that case you could share the details so that someone else tries to recreate the problem.
That's the best way to find a solution. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,359
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
When you add a blank html file, the xml declaration is automatically created. Unless you explicitly delete it, there's no reason for a new, blank html file NOT to have an xml declaration.
If you have Mend on Save and Open enabled in your preferences, there's no way that I know of to lose "everything." There's really no good reason to disable Mend. It will easily/painlessly fix things like missing xml declarations. It can literally save you from yourself. Disable it at your own peril. If Mend was enabled, then I've no idea how "everything" could be gone. Even with a crash. It doesn't make sense. Deleting the xml declaration (and continuing to edit) doesn't cause a crash on my system. It just tells me I have xhtml that's not well-formed and gives me the option to fix it automatically, or fix it manually. Last edited by DiapDealer; 06-02-2017 at 08:26 PM. |
![]() |
![]() |
![]() |
#4 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,485
Karma: 5703586
Join Date: Nov 2009
Device: many
|
If you really did a full save numerous times, have you searched your filesystem for that epub updated more recently than the one you found. Sigil crashing can not impact a previously saved file no matter how it tries unless the crash happens when saving to the only copy of the file, which is not what you described.
You could try sorting your files by modification date to see if you overwrote some other file by accident. |
![]() |
![]() |
![]() |
#5 | |
Gregg Bell
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Gregg Bell
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
Quote:
So that was the exact screen I got. I tried to X out of the window. I clicked on a few more things to test the funtionality but the screen was froze. I would say about twenty seconds later Sigil crashed and I got the window asking me if I wanted to re-launch Sigil, which I chose. Then I got the window saying that specific file I'd been working on couldln't be found. So I looked for the file. I had two copies of it but only one that I had done the great majority of work on. I opened it and it was missing the great majority of the work. Like I said, I thought I'd missed something and checked the other file. Same thing. Missing the majority of the work. I did a file search to see if there happened to be more than two copies. There wasn't. It seemed absolutely impossible that that could have happened but that's what happened. And yeah Mend is on Open and Save. (screenshot) I kept working with the same file and it saved properly. (I of course also saved it somewhere else.) |
|
![]() |
![]() |
![]() |
#7 | ||
Gregg Bell
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
Quote:
That's when the Preview error screen came up. I clicked on it to close it but it wouldn't close. I clicked some other things but the whole screen was froze and about twenty seconds later Sigil crashed. Then I got the window asking me if I wanted to relaunch, which I chose. But then I got another window saying the file I'd been working on couldn't be found. (And that's actually kind of a mystery right there.) And I checked the only other copy of the file and, as expected, the great majority of it was missing. Quote:
After that, I kept working on Sigil with the same file until just now and everything worked perfectly. I of course saved to the copy this time as well. |
||
![]() |
![]() |
![]() |
#8 | ||
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
Yes, I agree with you, it seems impossible. Also: I don't understand what it is you are copy-pasting. If it's your book, don't you just export it to HTML, and then open that HTML in Sigil? Don't delete the head material. Just...paste over it, IF you truly have the same material in the copied stuff. I gotta say, I think there's a perfectly good ePUB, someplace, on your computer. What you say does sound completely impossible. Hitch |
||
![]() |
![]() |
![]() |
#9 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,179
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I have to agree. Unless the crash happened that affected the ePub, the ePub would most likely be corrupt.
|
![]() |
![]() |
![]() |
#10 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,683
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
To locate the Sigil temp folders do the following: 1. Close all Sigil instances. 2. a) Windows: Select C:\Windows\Temp in the Windows Explorer. 2. b) Linux: Select /tmp in your file manager. 3. Sort the folders alphabetically and look for folders that start with Sigil, e.g. Sigil-ABC123. 4. Double-click the folder. If it contains an OEBPS folder, double-click it, open content.opf in a text editor and look for the title metadata entry: Code:
<dc:title>My Book Title</dc:title> Do not modify Sigil temp files while Sigil is running! |
|
![]() |
![]() |
![]() |
#11 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,633
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Gregg Bell - FWIW I use Save As, with current timestamp prepended to the file name.
BR |
![]() |
![]() |
![]() |
#12 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,683
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
![]() |
#13 |
a toy panda
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,568
Karma: 26020474
Join Date: Mar 2014
Location: Onboard the Queen Anne's Revenge
Device: Various Android dvices
|
|
![]() |
![]() |
![]() |
#14 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,485
Karma: 5703586
Join Date: Nov 2009
Device: many
|
I still have issues with this ...
1. Sigil will not erase a previously saved file that is saved anyplace outside of its own temp folder. 2. Sigil might corrupt a file being saved to if a crash happens while in the act of saving but even that is rare as it prebuilds the new epub in its temp space and then copies the already built epub file to the location to be saved. So a good copy of the epub should either exist in temp or outside of Sigil temp area. So an epub file stored outside Sigil's temp folder should never be erased as described in this post. It sounds more likely it was being saved to inside Sigil's temp folder (a really bad idea!), bad anti-malware software, or disk corruption unrelated to Sigil. Did you try Doitsu's instructions for looking inside your systems temp folder to see if you can find a more up-to-date version of the epub or epub files? Last edited by KevinH; 06-04-2017 at 09:10 AM. |
![]() |
![]() |
![]() |
#15 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,179
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What I don't get is why the ePub is not up to at least the second-to-last save. Could this be a Linux issue?
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil crash | Gibook | Editor | 5 | 07-04-2015 02:36 PM |
Crash in Sigil while using Create HTML TOC | theducks | Sigil | 17 | 04-06-2015 12:53 PM |
Sigil 8.2 - Windows 7 64bit crash | ebookreadr | Sigil | 46 | 03-01-2015 05:17 PM |
[crash] Sigil 0.1.5 | notebook | Sigil | 2 | 11-29-2009 12:14 PM |