Bug 87367

Summary: FILESAVE: corruption afters saving. text replaced by #####
Product: LibreOffice Reporter: Alain Versa <cerebroreglamentario>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEEDINFO --- QA Contact:
Severity: critical    
Priority: medium CC: barta, chrischavez, serval2412
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: that is the file I have problems with

Description Alain Versa 2014-12-16 16:37:02 UTC
Created attachment 110910 [details]
that is the file I have problems with

I was working on a file, I saved it and then, when I tried to open it, it is broken, all the text is gone, the only thing I can read is ####. It was a big work I was doing, how can I recover it?
Comment 1 Julien Nabet 2014-12-16 18:15:44 UTC
You're file seems corrupted, it's only 1kb size.
A docx is in fact a zip file with a specific structure.
Comment 2 Christopher Chavez 2014-12-17 00:53:57 UTC
The file is entirely zeroed (0x00, 1024 of them, which LibreOffice shows as 1024 '#'), and there is no information that can be recovered. I have not found any reports of people's documents getting turned into 1kb zeroed files, but I do find reports of (sometimes very angry) users having their documents turned into empty (0 byte) files.
Short of using something like photorec, this may help recover the file: http://ask.libreoffice.org/en/question/6652/how-to-recover-former-version-of-document/

If possible, let us know which version of LibreOffice and Linux distribution was used, and more about what was in the document/why it was large (e.g. did you use images, charts, etc.).
Comment 3 tommy27 2014-12-17 06:33:17 UTC
added a better summary and set status to NEEDINFO
Comment 4 Christopher Chavez 2014-12-18 00:31:08 UTC
The file in question was .docx, so I assume this is for Writer, not Spreadsheet--a '#' for each byte is the result displayed in Writer; doing

dd bs=1K count=4 < /dev/zero > test.docx
libreoffice test.docx

will cause the following appears in the command line:

:1: parser error : Document is empty

^

and Writer displays an unformatted document with 4096 of '#'.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.