On Fri, May 16, 2014 at 11:45 AM, Jürgen Spitzmüller <[email protected]> wrote:
> 2014-05-16 9:41 GMT+02:00 Jürgen Spitzmüller:
>
>> 2014-05-16 8:34 GMT+02:00 Wu, Yan:
>>
>>> Today when I am writing with LyX. Suddenly the document crushed, with one
>>> message says: emergency stop...I could not tell exactly.
>>>
>>> Then the file closed but I could not open it again later. It is really a
>>> disaster for me if I lost the document.
>>>
>>> I write the email to ask any help I can get from you. Thank you very much
>>> in advance. Looking forward to your response.
>>
>>
>> First, check if you have a backup in the backup directory set in Tools >
>> Preferences > Path. If so (hopefully), you will find a backup of the file
>> there.
>>
>> Next, open the LyX file with a text editor. If it ends with
>>
>> \begin_inset Tabular
>>
>> instead of
>>
>> \end_body
>> \end_document
>>
>> then you have probably faced this bug
>>
>> http://www.lyx.org/trac/ticket/9049
>
>
> Just for the record: It turned out it was this bug, but fortunately, we
> managed to restore the file completely. Yan sent me the emergency files and
> backups (the one embraced in # and the one ending with lyx~), and it turned
> out both were complete, and the latter was the most actual one.
>
> Here is an advice, in case you are unlucky enough to get hit by this:
>
> * Check if the lyx file itself is complete (ends with \end_document)
> * If not, check if either the emergency file (#...#) or the backup file
> (*.lyx~) are complete
> * If only one is, rename it to the name of the original file.
> * If both are (as in Yan's case), give them different names and check the
> differences in LyX via Tools > Compare
>
And more generally, always use an automatic backup and syncing service
such as SpiderOak ( https://spideroak.com/ ). SpiderOak keeps
indefinite historic versions of backed up files (unlike Dropbox who
keeps the historic versions for 30 days only in the free version), and
allows users to retrieve them in such corruption cases.

Regards,
Liviu


> Jürgen



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail

Reply via email to