Bug 81146

Summary: Avoid corruption of registrymodifications.xcu
Product: LibreOffice Reporter: Kumāra <kumara.bhikkhu>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: medium    
Version: 4.1.6.2 release   
Hardware: x86-64 (AMD64)   
OS: All   
Whiteboard: target:7.4.0
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 77999    

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.