Bug 58588

Summary: Recovery of document after program crash fails if file was not saved before
Product: LibreOffice Reporter: clemty
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: clemty
Priority: medium    
Version: 4.0.0.0.beta1   
Hardware: Other   
OS: All   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=77239
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 112970    
Attachments: Error message: cannot open file

Description clemty 2012-12-20 21:19:34 UTC
Created attachment 71874 [details]
Error message: cannot open file

4.0.0.0.beta1 (Build ID: 87906242e87d3ddb2ba9827818f2d1416d80cc7)
Win7 x64

If I crash lodev with bug 48775 recovery fails if the file was not saved first:

"The file '$(ARG1)' is corrupt and therefore cannot be opened. LOdev can try to repair the file." - recovery subsequently fails

Recovery only fails if the file was not saved before (i.e. does not have a filename):

create new document, provoke crash: recovery fails
create new document, save, provoke crash: recovery succeeds

screenshot attached; note that the recovered file has an .odt extention but the failing document is simply called "Untitled 1"

This may also be the reason for recovery failing in bug 57142
Comment 1 clemty 2013-01-06 12:38:25 UTC
I can no longer reproduce this on 4.0.0.0.beta2

setting to WORKSFORME since I don't know if this was just me or if it was fixed in code, feel free to correct the status