by mikeguz » Fri Mar 03, 2017 9:56 am
My issue was with the "Impress" Presentation program. By default, it brings up this "Wizard" which allows you to either create a blank presentation, open a template, or select files you have edited before.
When I selected one of the files I had edited before, a "Preview" shows up. Then when attempt to Open that file, the Open fails with the lock message.
I made two changes in the Wizard, (1) for the Wizard to never show me Previews and (2) for Impress itself to never show the Wizard at all and just always open up a blank presentation upon launch. I then exited the program, killed all of the Open Office processes in the process table, deleted the .~lock* files as described in responses above, then ran Impress again.
Now, the Wizard never comes up, and the lock problem has not resurfaced since.
I did also notice that Preview in the Wizard is in itself generating these lock files as you switch from one file to the next, and the lock files don't seem to go away while the Wizard is running. So as best as I can tell, what is happening is a classic race condition, where the actual File Open is attempted before the Wizard Preview has had a chance to close and unlock the file it was previewing.
OpenOffice 4.1.3 on Windows 7