Bug 156196 - document recovery sometimes ignores the last save
Summary: document recovery sometimes ignores the last save
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.4.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-08 05:34 UTC by peter josvai
Modified: 2024-02-19 04:53 UTC (History)
1 user (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 peter josvai 2023-07-08 05:34:52 UTC
Description:
I knew that this problem existed...
but I tested it...
after a crash I chose recover document and the last save will be ignored

It appears that the recovery mechanism ignores the time of the last "save" action...

it should check whether the time of the last save (by the user) was after the time of the last auto-recovery-save happened... 


Steps to Reproduce:
1. save the document
2. produce a crash (not easy but could be managed)
3. chose recover document (autorecovery)

Actual Results:
the last edit which was saved is ignored

Expected Results:
the last edit before the "save" (by the user) action should be present, not reverted... 


Reproducible: Always


User Profile Reset: No

Additional Info:
[Information automatically included from LibreOffice]
Locale: en-GB
Module: TextDocument
[Information guessed from browser]
OS: Linux (All)
OS is 64bit: yes

---------------

Version: 7.5.4.2 (X86_64) / LibreOffice Community
Build ID: 50(Build:2)
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: nb-NO (en_GB.UTF-8); UI: en-GB
Ubuntu package version: 4:7.5.4~rc2-0ubuntu0.20.04.1~lo1
Calc: threaded
Comment 1 Stéphane Guillou (stragu) 2023-07-21 07:27:45 UTC
I could not reproduce with:

Version: 7.5.5.2 (X86_64) / LibreOffice Community
Build ID: ca8fe7424262805f223b9a2334bc7181abbcbf5e
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

I tried:
1. save first version
2. add text 1
3. save
4. add text 2
5. kill LibreOffice process

Result: after recovery, I can see text 1.

I also tried with "Tools > Options > Load/Save > Save autorecovery information" set to 1 minute, and:

1. save first version
2. add text 1
3. wait for more than one minute
4. add text 2
5. save
6. kill LibreOffice process

Result: after recovery, I can see text 2.

So in my tests, the last saved edits are always present.

Can you provide more precise steps that consistently reproduce the issue?
To test, you can start libreoffice from a terminal and kill the process with Ctrl + C. (Or use your system monitor.)
Comment 2 QA Administrators 2024-01-18 03:13:48 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2024-02-18 03:12:54 UTC Comment hidden (obsolete)
Comment 4 Stéphane Guillou (stragu) 2024-02-19 04:53:04 UTC
If you test again, please make sure to reset your user profile and use version 24.2 or above as a few changes regarding autorecovery have made it into that version: https://wiki.documentfoundation.org/ReleaseNotes/24.2#Core_/_General
Cheers