Created a file with Calc and saved it. When I tried to open it, I got the following error:
Read-error. Format error discovered in the file in sub-document content.xml at 2,237278 (row, col)
OS: ARCH x86_64
Operating System: Linux (Other)
Version: 184.108.40.206 release
please upload test file
Created attachment 101870 [details]
file that doesn't open correctly
Tracked back to GO OO OOO320m19 (Build:9505). This is the earliest version *I* could find that has the same problem.
Changed platform to ALL, as it happens with LO 4.1, 4.2 & 4.3 under mint 16 and LO 220.127.116.11 and GO OO 3.2.0 under windows 7 x64.
reproducible under Win7x64 using LO 18.104.22.168
my error says: Read-error. Format error discovered in the file in sub-document content.xml at 2,7793 (row, col)
Created attachment 101896 [details]
On pc Debian x86-64 with master sources updated today, I could reproduce this.
When trying to tidy the content.xml, I had this:
PC:$ cat content.xml | tidy -utf8 -xml -w 255 -i -c -q -asxml > content_new.xml
line 2 column 7705 - Warning: <style:text-properties> dropping value "Arial" for repeated attribute "style:font-name"
line 2 column 8028 - Warning: <style:text-properties> dropping value "Arial" for repeated attribute "style:font-name"
I attached the file fixed but it could be interesting you give the steps to create this file (since according to meta file, it seems you created it with LO 4.2.5)
*** Bug 80793 has been marked as a duplicate of this bug. ***
It's not a bug when LO refuses to open corrupted files. The problem here is with the creation of such files. For this reason I set the version back to 4.2.5. Also I raise the importance, because LO shouldn't corrupt files.
Actually this file created with the RC, not with the final release. And it seems to be a duplicate of Bug 78927. Feel free to reopen - but only if you can *create* such files with the final release.
*** This bug has been marked as a duplicate of bug 78927 ***
The bug is still there in LO 22.214.171.124 on Mac OSX 10.7.5.
style:font-name-asian (and others related attributes) redefined in content.xml
Once corrected into the content.xml, the rebuilt file cannot be open with LO 126.96.36.199 but can be open with OO 4.1.0, then saved and reopened by LO.
Some times later the content is once more corrupted in the same way...
The corrupted file can be found there : http://consultation-boreale.com/lo/error_in_content.ods
This bug is about repeated "style:font-name", not repeated "style:font-name-asian". And the solution (in bug 78927) was to use "style:font-name-asian" for asian instead of "style:font-name". So this is IMHO a different issue, and it's better to open a new bug for it. Anyway 4.2.5 is not the latest version, and is not supported anymore, so please try with the latest version before submitting the bug. Thanks!
I wonder if the root cause of comment 10 could be fixed thanks to http://cgit.freedesktop.org/libreoffice/core/commit/?id=cda9ae79e58d861a85128d6a37587b633b956aae