Bug 81146 - Avoid corruption of registrymodifications.xcu
Summary: Avoid corruption of registrymodifications.xcu
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.1.6.2 release
Hardware: x86-64 (AMD64) All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard: target:7.4.0
Keywords:
Depends on:
Blocks: AutoSave-AutoRecovery-Backup
  Show dependency treegraph
 
Reported: 2014-07-10 06:22 UTC by Kumāra
Modified: 2021-12-14 10:38 UTC (History)
0 users

See Also:
Crash report or crash signature:
Regression By:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kumāra 2014-07-10 06:22:44 UTC
Situation:

When I experience a system crash or power cut, there's a chance that I lose settings in registrymodifications.xcu. (A new file is created upon reload.)

This seems to happen when the file is being written, and the chances of it is greater when AutoSave is set more frequently.

It has happen to me a few times before. Now I have it backed up regularly, thus it can be restored. However, this can be very annoying for non-power users.

Request:

EITHER
Isolate the AutoSave from registrymodifications.xcu

OR (at least)
Have LO run AutoSave only if indeed changes have been made to the doc. (This shouldn't be difficult as LO already has the ability to detect changes since last save. The change of color in the Save icon indicates so.)
Comment 1 Commit Notification 2021-12-14 10:38:15 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/a5167ae1d69dc6c9a88807113c9315860048f462

tdf#81146: try to make saving registrymodifications.xcu more robust

It will be available in 7.4.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.