LibreOffice saves my files, next time I attempt to open them it says they're corrupt

Bug #960076 reported by joehill
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Last night I was working on several files, closed them, then attempted to reopen them and got a dialog saying:

<<
The file 'x.odt' is corrupt and therefore cannot be opened. LibreOffice can attempt to repair the file.

The corrupt document could be the result of document manipulation or of structural document damage due to data transmission.
...
Should LibreOffice repair the file?
[Yes] [No]
>>

If I select "Yes," I get another dialog saying "The file 'x.odt' could not be repaired and therefore cannot be opened." I click "Ok" and another window appears saying "General Error."

If I attempt to open the same file again, I get an error message saying:

<<
The document 'x.odt' is locked for editing by:

Unknown User

Open document read-only or open a copy of the document for editing.
>>

If I select either of these options, it goes back into the "The file . . . is corrupt. . . ."

I can open the files just fine on AbiWord. I was also able to edit things in LibreOffice by opening them in AbiWord then copying them into an empty document in LibreOffice, but then when I saved, closed, and tried to open again I got the same problem.

I also found that when I was trying to save these documents last night, it would tell me that (I didn't write this down so I'm constructing it from memory) it couldn't write the data due to insufficient user privileges and that it couldn't write some xml file. I tried to save in another folder and it worked without problems. Then I moved it from that folder into the original folder without problems. So there is no write permissions problem here. (I thought maybe this was because I was writing in an Ubuntu One synched folder, but this was only a problem some of the time and only with LibreOffice, not other programs.)

I just upgraded to the new LibreOffice and am having the same problems. So I'm working with AbiWord for today and hoping I can open my files with LibreOffice eventually.

Thanks.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libreoffice 1:3.5.1-1ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-19.30-generic 3.2.11
Uname: Linux 3.2.0-19-generic i686
ApportVersion: 1.94.1-0ubuntu2
Architecture: i386
Date: Tue Mar 20 12:18:16 2012
ProcEnviron:
 LANGUAGE=en_US:en
 TERM=xterm
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: libreoffice
UpgradeStatus: Upgraded to precise on 2012-03-19 (1 days ago)

Revision history for this message
joehill (joseph-hill) wrote :
Revision history for this message
penalvch (penalvch) wrote :

joehill, thank you for reporting this and helping make Ubuntu better. Could you please attach the file, that opens in AbiWord, that demonstrates this problem?

Changed in libreoffice (Ubuntu):
status: New → Incomplete
Revision history for this message
joehill (joseph-hill) wrote :

I was able to reproduce it with this scaled-down document (I'm not sending the original problem documents because they're unpublished papers that shouldn't be available publicly yet). All documents work on my other computer. I think the problem may be that for some reason Ubuntu has created 1MB /tmp directory that has nothing to do with the actual space on my hard drive. I'm trying unsuccessfully to get that solved now.

But I think for the moment that the problem is not with LibreOffice (although it may be nice to have a more specific error message, such as that /tmp has no room on it, to help diagnose the problem, since messages about lacking permission, file locking, and file corruption may have nothing to do with the actual problem). I'll update if I get the /tmp fixed and can determine whether that's the problem.

Revision history for this message
penalvch (penalvch) wrote :

Not reproducible in Xubuntu. We would need a specific, click-by-click reproduction scenario in order to proceed.

cd ~/Desktop && wget -c https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/960076/+attachment/2903197/+files/Problem%20document.odt -O example.odt && lowriter --nologo example.odt

lsb_release -rd
Description: Ubuntu precise (development branch)
Release: 12.04

apt-cache policy libreoffice-writer
libreoffice-writer:
  Installed: 1:3.5.0-2ubuntu1
  Candidate: 1:3.5.1-1ubuntu1
  Version table:
     1:3.5.1-1ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
 *** 1:3.5.0-2ubuntu1 0
        100 /var/lib/dpkg/status

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for libreoffice (Ubuntu) because there has been no activity for 60 days.]

Changed in libreoffice (Ubuntu):
status: Incomplete → Expired
Revision history for this message
vedavata (vedavrata) wrote :

I had the same problem. :-(

I edited a ODT-file (260 kb), and closed it.
After sometime i tried to open, but:
"File XXX could not be repaired and therefore cannot be opened."
(AbiWord can open it anyhow, but then i loose formating and structuring...)

What to do?

Revision history for this message
vedavata (vedavrata) wrote :

After reboot of my notebook my LibreOffice -- Version: 4.3.3.2 / Build ID: 430m0(Build:2) -- started to open corrupted file...
I can not understand why...

After resaving it ("Save As"), both versions look like similair, with size became bigger on 18 bytes:
-rwxrwxrwx 1 tosik tosik 260510 Feb 14 02:33 9Grahas-2.odt*
-rwxrwxrwx 1 tosik tosik 260528 Feb 14 16:44 9Grahas-5.odt*

What that was?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.