Bug 129799 - Recovered document is missing a couple of paragraphs after battery depleted.
Summary: Recovered document is missing a couple of paragraphs after battery depleted.
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: framework (show other bugs)
Version:
(earliest affected)
6.0.7.3 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-05 04:44 UTC by Tomás Zubiri
Modified: 2020-01-21 03:34 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 Tomás Zubiri 2020-01-05 04:44:10 UTC
Description:
Yesterday I was writing with my unplugged laptop, my OS warned me that my battery was running out, I figured this was a good moment to end the day, so I kept writing until the battery ran out. I expected the document to be there the next time I started the libreoffice application.

There were 2 problems:
1- The paragraph I wrote before the battery warning was missing.
2- The paragraph I wrote after the battery warning and before shutdown were missing.

There's 2 suggerted fixes, the first one is general and works for all cases. The second one is a backup in case there's problems with the first one (there shouldn't be, it's a great suggestion)

1-The frequency between autosaves should be increased so that even partial paragraphs are saved, there's a lot of room for improvement with 2 paragraphs missing.
2- Libreoffice should listen to battery notifications and autosave work. Additionally it may shutdown early since it can't ensure the work will be saved. This seems more complex to implement and less impactful than the 1st solution though.

Steps to Reproduce:
1.Start writing document between 1 and 2 paragraphs long in about 2 minutes of time.
2. Simulate a shutdown with the kill command.
3. Start libreoffice again.


Actual Results:
An empty document should appear.

Expected Results:
Gmail should be looked at for inspiration here, the document should be autosaved:
- When the user stops typing for 5 seconds.
- Or after 10 seconds of consecutive typing.

That's it, pretty simple.


Reproducible: Always


User Profile Reset: No



Additional Info:
Other applications to look at would be google docs, microsoft 365 and the desktop version.
Comment 1 Xisco Faulí 2020-01-20 17:50:23 UTC
This is not a LibreOffice problem but a OS problem. Once it runs out of battery, everything is closed. LibreOffice doesn't know the battery's status, thus it can't trigger the autosave before running out of battery.
OTOH, the autosave interval can be changed in the Options dialog.
Closing as RESOLVED WONTFIX