Bug 50659 - FILESAVE: I/O error in ODS file AFTER SAVE if PSU switched off while open
Summary: FILESAVE: I/O error in ODS file AFTER SAVE if PSU switched off while open
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.4.4 release
Hardware: x86-64 (AMD64) Linux (All)
: highest critical
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-03 17:21 UTC by contactdavid
Modified: 2012-08-14 09:15 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
s (929 bytes, text/plain)
2012-06-03 17:21 UTC, contactdavid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description contactdavid 2012-06-03 17:21:10 UTC
Created attachment 62480 [details]
s
Comment 1 contactdavid 2012-06-03 17:30:50 UTC
This bug is for Libreoffice 3.4.4 Calc (not spreadsheet)
Comment 2 contactdavid 2012-06-03 18:07:16 UTC
This bug cover has nothing to do with the ODF format. Tried it in Calc via "Tools - Options - Load/Save - General - ODF format version - '1.0/1.1' and '1.2 Extended (recommended)'"
Comment 3 contactdavid 2012-06-03 19:03:23 UTC
Comment on attachment 62480 [details]
s

>Problem description: 
>
>Steps to reproduce:
>1. Create a.ods file to crash so we can demonstrate the bug.
>2. Switch of your power supply unit (PSU)
>3. Boot Trisquel 5.5 GNU/Linux (or Ubuntu 11.10 which it is based on) and open a.ods with Libreoffice Calc.
>
>Current behavior:
>Makes I/O error on open .ods (other extensions not checked) and does not make regular backup files "*~".
>
>Expected behavior:
>Saved files should not get I/O error at all by Libreoffice if the system halts. Worst is that the "AutoRecovery" program does not help nor do "Options - Load/Save - General: Always create a backup copy" also writes I/O error in the backup files found at ~/.config/.libreoffice/3/user/backup/. Libreoffice should make regulare backup files "*~" in its GNU/Linux version.
>
>Platform (if different from the browser): 
>              
>Browser: Mozilla/5.0 (X11; Trisquel; Linux x86_64; rv:12.0) Gecko/20120502 Firefox/12.0 Abrowser/12.0
Comment 4 Rainer Bielefeld Retired 2012-06-03 21:48:36 UTC
@contactdavid@safe-mail.net 
"Calc (not spreadsheet)?" Please explain!
Comment 5 Jean-Baptiste Faure 2012-06-03 22:12:42 UTC
Probably a duplicate of bug 40607.
Please upgrade to current LO 3.5 and try again.

Best regards. JBF
Comment 6 contactdavid 2012-06-04 20:30:17 UTC
https://www.libreoffice.org/bugzilla/show_bug.cgi?id=50659(In reply to comment #5)
> Probably a duplicate of bug 40607.
> Please upgrade to current LO 3.5 and try again.
> 
> Best regards. JBF

Bug 40607 states "Previously-saved LibreOffice document lost by power outage (became 0 bytes long) - LibreOffice should call fsync". The files in this bug does not shrink to 0 bytes after being damaged, they contain their original size.
Comment 7 contactdavid 2012-06-04 20:31:04 UTC
How do I remove my own comments? Is it even possible?
Comment 8 contactdavid 2012-06-04 20:32:21 UTC
(In reply to comment #4)
> @contactdavid@safe-mail.net 
> "Calc (not spreadsheet)?" Please explain!

Libreoffice Calc, not Libreoffice Spreadsheet.
Comment 9 contactdavid 2012-06-05 01:24:12 UTC
Regarding bug 40607 "Previously-saved LibreOffice document lost by power outage (became 0 bytes long) - LibreOffice should call fsync"

The file is not 0 bytes after being damaged, it contain its original size. Please send feedback...

-------- Original Message --------
From: bugzilla-daemon@freedesktop.org
Apparently from: www-data@freedesktop.org
To: contactdavid@safe-mail.net
Subject: [Bug 50659] FILESAVE: I/O error in ODS file AFTER SAVE if PSUswitched off while open
Date: Mon, 04 Jun 2012 05:12:42 +0000

> https://bugs.freedesktop.org/show_bug.cgi?id=50659
> 
> Jean-Baptiste Faure <jbf.faure@orange.fr> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |jbf.faure@orange.fr
> 
> --- Comment #5 from Jean-Baptiste Faure <jbf.faure@orange.fr> 2012-06-03 22:12:42 PDT ---
> Probably a duplicate of bug 40607.
> Please upgrade to current LO 3.5 and try again.
> 
> Best regards. JBF
> 
> -- 
> Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
Comment 10 Julien Nabet 2012-07-07 13:13:46 UTC
Could you give a description of the bug and how to reproduce it ?
But before this, could you test, as Jean-Baptise adviced, a newer version of LO (like 3.5.4) ?
"Libreoffice Calc, not Libreoffice Spreadsheet" is also unclear.

Be explicit if you want some help. (what's PSU for example ?)

(I don't think it's possible to remove one's comments).
Comment 11 Michael Meeks 2012-08-14 09:15:57 UTC
So - we added the required fsync magic on save to fix this issue a while back; it should be there in 3.5 and 3.6.

Thanks ! :-)