Bug 103521 - FILESAVE: file data lost if changes are saved with Ctrl+S and Libre office is exited afterwards
Summary: FILESAVE: file data lost if changes are saved with Ctrl+S and Libre office is...
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.1.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-26 12:47 UTC by rundr.walther
Modified: 2017-09-10 06:39 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rundr.walther 2016-10-26 12:47:45 UTC
If Ctrl+S was used to save changes, there is no additional prompt to save changes if exit is requested. File size is zero after exit of Libre Office.
File size is immediately zero after Ctrl+S if there are changes in the data, but returns to the correct size if the menu is used for saving afterwards.
Comment 1 Timur 2016-10-26 14:40:45 UTC
Bugs can be solved only if reproducible, with the attached document and steps needed to recreate the problem.
https://wiki.documentfoundation.org/QA/BugReport
Comment 2 rundr.walther 2016-10-26 17:08:42 UTC
1. Operating System Ubuntu 16.04 LTS, 64 Bit, vmware virtual machine on windows 7.
To reproduce the bug:
a) Open an existing spreadsheet in calc via double click in file explorer (nautilus)
b) do some changes to the data
c) push Ctrl+S 
d) look at the file size in file explorer
 
In approx. 1 of 5 tries the file size is zero, thus you loose all your data if you now exit Libre Office. 
If you push Ctrl+S again or use the menu tab for "save", then almost always the file size will expand to the "normal" size.
Comment 3 Yogesh Desai 2016-10-27 12:10:16 UTC
Hi all,

I am not able to reproduce this with following setup,

Version: 5.1.6.1.0+
Build ID: 5.1.6.1-2.fc24
CPU Threads: 8; OS Version: Linux 4.7; UI Render: default; 
Locale: en-IN (en_IN.utf8); Calc: group

Thank you,
Yogesh Desai
Comment 4 Vera 2016-11-03 23:16:37 UTC
I cannot reproduce this issue either in Ubuntu 16.04 with LibreOffice 5.2.3.2.
Comment 5 Buovjaga 2016-11-17 12:03:05 UTC
Please test with 5.2.x.

Set to NEEDINFO.
Change back to UNCONFIRMED, if the problem persists. Change to RESOLVED WORKSFORME, if the problem went away.
Comment 6 rundr.walther 2016-11-17 15:50:20 UTC
I tested with version 5.2.3.2.: the problem occurred not so often as with 5.1.4.2, but was reproducible once after around 20 tries. The problem lately also occurred once in writer (with 5.1.4.2), but I use writer not as much as calc.
 
May be it has something to do with the file system, because the file size changes to normal size from zero if I press F5 when I see the size zero in the file viewer window.
Comment 7 Carlos 2017-04-04 13:33:59 UTC Comment hidden (obsolete)
Comment 8 rundr.walther 2017-04-04 14:02:15 UTC
I am now pretty sure that it is a file system problem.
I lost data when I exited libre office and did not touch the file directly after the exit. When I later tried to backup the file, the file size was zero and of course all data was lost.
Now I always check in a file system window before exiting - after I pressed ctrl+S in libre office - what fiĺe size it shows. If that is zero (in that case the complete line is grey but readable) I either press ctrl+S in libre office again or press F5 in the filesystem window and then the file size in the FS-window (and the color of the line) changes and all is ok. Perhaps it has something to do with change of a temporary file but I am only guessing. I had a problem which looked a little bit like this one about 20 years ago on another UNIX system with my own filesystem.
Comment 9 Jean-Baptiste Faure 2017-09-09 18:22:10 UTC
I guess the problem is in the virtual machine not in LibreOffice.
Do you have some some configuration flag vmware that may have action on the file system? If the problem is in the file system, it is not in LibreOffice, so we could close this bug report as NotOurBug.

Set status to NEEDINFO, please set it back to UNCONFIRMED once requested
informations are provided.

Best regards. JBF
Comment 10 rundr.walther 2017-09-10 06:39:09 UTC
The problem is definitely in the file system. Even if libre office is exited, there is the possibility to regain the data in the FS if nothing else is done with other files and the information in the file system windows shows that after exiting libre office the file size is still shown as zero. So obviously the data is still in a temporary file. 
So it is not a problem of libre office.