Bug 94772 - LibreOffice Cannot save .odt files (OSX)
Summary: LibreOffice Cannot save .odt files (OSX)
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.5.2 release
Hardware: All macOS (All)
: highest critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, regression
Depends on:
Blocks:
 
Reported: 2015-10-05 02:29 UTC by Chris
Modified: 2016-02-13 23:43 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample file (220.09 KB, application/vnd.oasis.opendocument.text)
2015-10-05 02:29 UTC, Chris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris 2015-10-05 02:29:38 UTC
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!
Comment 1 Alex Thurgood 2015-10-05 13:11:54 UTC
Confirming on

Version: 5.0.2.2
Build ID: 37b43f919e4de5eeaca9b9755ed688758a8251fe
Locale : fr-FR (fr.UTF-8)

regression
Comment 2 Alex Thurgood 2015-10-05 13:18:37 UTC
Works fine in

Version: 4.2.4.2
Build ID: 63150712c6d317d27ce2db16eb94c2f3d7b699f8
Comment 3 Alex Thurgood 2015-10-05 13:23:38 UTC
Also works properlyon

Version: 4.3.5.2
Build ID: 3a87456aaa6a95c63eea1c1b3201acedf0751bd5
Comment 4 Robinson Tryon (qubit) 2015-12-14 05:32:43 UTC
Migrating Whiteboard tags to Keywords: (bibisectRequest)
[NinjaEdit]
Comment 5 Joel Madero 2015-12-19 17:25:24 UTC
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.
Comment 6 Niklas Johansson 2016-01-31 18:19:21 UTC
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.
Comment 7 Chris 2016-02-13 23:38:21 UTC
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.