Created attachment 119292 [details] Sample file Libreoffice cannot save certain .odt files. These files were all created with earlier versions of Libreoffice (< 4.3) and contain a large number of mathematical formulas. I first noticed this problem after upgrading to Libreoffice 5.0, however I have also experienced the same problem after downgrading to 4.4.5. Libreoffice has no problem opening the files. However, once the file is modified and a save attempt is made, the following error window comes up: "Error saving the document XXX: General Error: General input/output error." Versions: This bug appears when using Libreoffice 5.0.* and 4.4.5. Openoffice 4.1.1 has no problem opening and saving the same file. OS: This bug was reproducible on MAC-OSX 10.9 and 10.11. I attempted to reproduce the bug using Libreoffice 5.0.2 on Windows 7 and Ubuntu 14.04 but could not. I tried to create a new empty writer file using Libreoffice 5.0.2.2, and paste the contents of the old file into the new file. I am unable to save the new file (same error). I also tried completely wiping Libreoffice from the disk (including Library/Application Support/Libreoffice) and reinstalling, but this made no difference. Interestingly enough, I can open one of these files, select "Save As", choose a new filename, and I am able to save the file. However, if I close and reopen Libreoffice, and then try to edit the new file, the same bug reappears. I have attached a sample file "NOTES1.odt". In addition, Libreoffice appears to create a log file when the save fails called "document_io_logring.txt". I have pasted the contents below. ********************** 37b43f919e4de5eeaca9b9755ed688758a8251fe Rethrow Bad Zip File, ZipException: Zip END signature not found! Rethrow Element does not exist and cannot be created: "Meta.xml" Rethrow Rethrow /lo/rel50/sfx2/source/doc/objstor.cxx:414: Rethrow /lo/rel50/sfx2/source/doc/objmisc.cxx:260: Resetting Error. Bad Zip File, ZipException: Zip END signature not found! Rethrow Bad Zip File, ZipException: Zip END signature not found! Rethrow Element does not exist and cannot be created: "Meta.xml" Rethrow (THIS REPEATS MANY TIMES) Rethrow /lo/rel50/sfx2/source/doc/objstor.cxx:414: Rethrow /lo/rel50/sfx2/source/doc/objmisc.cxx:260: Resetting Error. Bad Zip File, ZipException: Zip END signature not found! Rethrow /lo/rel50/sw/source/uibase/app/docsh.cxx:498: /lo/rel50/sfx2/source/doc/objmisc.cxx:260: Resetting Error. /lo/rel50/sfx2/source/doc/sfxbasemodel.cxx:3124: Storing failed!
Confirming on Version: 5.0.2.2 Build ID: 37b43f919e4de5eeaca9b9755ed688758a8251fe Locale : fr-FR (fr.UTF-8) regression
Works fine in Version: 4.2.4.2 Build ID: 63150712c6d317d27ce2db16eb94c2f3d7b699f8
Also works properlyon Version: 4.3.5.2 Build ID: 3a87456aaa6a95c63eea1c1b3201acedf0751bd5
Migrating Whiteboard tags to Keywords: (bibisectRequest) [NinjaEdit]
I am bumping this to highest. Reason: Native format, using strictly LibreOffice (older versions) so this is an intra-program regression using completely native formats. A bibisect would really help move this forward.
Did a test with the release candidate LibreOffice 5.1.0.3. That version complained that the file was corrupt. It asked if I wanted to repair the file, so I did and after that everything seems fine. I haven't looked to closely at the file but it seems all formulas etc. is there. Could someone try it with the latest version of LibreOffice Fresh to see if this is fixed there as well.
I tested the file with the released version 5.0.1.3, and it worked (no complaints of a corrupt file, it just appeared to save normally). I also tried with several other files that I had which had similar problems, and they all appear to work with the latest release version.