[Libreoffice-bugs] [Bug 129799] New: Recovered document is missing a couple of paragraphs after battery depleted.

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Jan 5 04:44:10 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=129799

            Bug ID: 129799
           Summary: Recovered document is missing a couple of paragraphs
                    after battery depleted.
           Product: LibreOffice
           Version: 6.0.7.3 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: framework
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: me at tomaszubiri.com

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200105/7a3aa5fa/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list