Description: Starting with version 7.4.2 on many different computers with Windows 10 and LO fast startup enabled, when trying to open an ODT or ODS LO document at a random time, it gives the error "Write error. Unable to write file.". The occurrence does not depend on whether the user has administrator rights. Steps to Reproduce: 1. Activate fast loading LO, make sure that the corresponding icon appears in the tray. 2. Open *.odt files (possibly also *.ods) in everyday mode or try to create a new ODT document from a tray component or from a running Writer or Calc. Actual Results: At a random moment in time, files stop opening or being created, instead a window is displayed with the error message "Write error. Unable to write file.". Expected Results: Documents should be created and opened without this error. Reproducible: Sometimes User Profile Reset: No Additional Info: Temporarily this is cured by unloading the "LO Quick Launch" component from the memory by right-clicking on the icon in the tray, or by ending the OS user session and re-entering it (re-authorization in the OS). Version: 7.4.3.2 (x64) / LibreOffice Community Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890 CPU threads: 6; OS: Windows 10.0 Build 19045; UI render: default; VCL: win Locale: ru-RU (ru_RU); UI: ru-RU Calc: CL
This happens with different files? May be people uses some the same template? Could you try just disable "LO Quick Launch" for all people and then look if the problem will be still there?
(In reply to Roman Kuznetsov from comment #1) > This happens with different files? May be people uses some the same template? > Could you try just disable "LO Quick Launch" for all people and then look if > the problem will be still there? 1. Templates users do not use at all. 2. Disabling Quick Launch solves the problem, but is not an acceptable solution because it causes each document to take a long time to open. 3. This problem remains in version 7.4.4.
Created attachment 184965 [details] Screenshot of the error
So, you didn't see the problem in 7.3 version?
(In reply to Roman Kuznetsov from comment #4) > So, you didn't see the problem in 7.3 version? Yes.
I can't repro it in current dev version Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 0bb90afaeb193181d7b98b79e962549d8a1dd85a CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win Locale: ru-RU (ru_RU); UI: en-US Calc: CL threaded
*** Bug 153471 has been marked as a duplicate of this bug. ***
NEW per dupe
On my Windows 7 x64 is 100% reproducible. Maybe it also depends on the version of windows or installed add-ons or updates in the system.
I can send a video shot of how this error appears.
This error occurs after running CCleaner. Before version 7.4.0, this error did not occur after running CCleaner. I attach a video of the error occurring.
Created attachment 186462 [details] Error after running CCleaner.
(In reply to Mariusz from comment #11) > This error occurs after running CCleaner. Before version 7.4.0, this error > did not occur after running CCleaner. I attach a video of the error > occurring. But isn't that intentional sabotage, then?
(In reply to Buovjaga from comment #13) > (In reply to Mariusz from comment #11) > > This error occurs after running CCleaner. Before version 7.4.0, this error > > did not occur after running CCleaner. I attach a video of the error > > occurring. > > But isn't that intentional sabotage, then? CCleaner starts in autostart. It cleans the system of junk, removes history, compacts browser databases. For me, it is indispensable.
(In reply to Mariusz from comment #14) > (In reply to Buovjaga from comment #13) > > (In reply to Mariusz from comment #11) > > > This error occurs after running CCleaner. Before version 7.4.0, this error > > > did not occur after running CCleaner. I attach a video of the error > > > occurring. > > > > But isn't that intentional sabotage, then? > > CCleaner starts in autostart. It cleans the system of junk, removes history, > compacts browser databases. For me, it is indispensable. Can you check what CCleaner removes that causes this?
(In reply to Buovjaga from comment #15) > (In reply to Mariusz from comment #14) > > (In reply to Buovjaga from comment #13) > > > (In reply to Mariusz from comment #11) > > > > This error occurs after running CCleaner. Before version 7.4.0, this error > > > > did not occur after running CCleaner. I attach a video of the error > > > > occurring. > > > > > > But isn't that intentional sabotage, then? > > > > CCleaner starts in autostart. It cleans the system of junk, removes history, > > compacts browser databases. For me, it is indispensable. > > Can you check what CCleaner removes that causes this? It's cleaning up temporary files.
(In reply to Mariusz from comment #16) > (In reply to Buovjaga from comment #15) > > (In reply to Mariusz from comment #14) > > > (In reply to Buovjaga from comment #13) > > > > (In reply to Mariusz from comment #11) > > > > > This error occurs after running CCleaner. Before version 7.4.0, this error > > > > > did not occur after running CCleaner. I attach a video of the error > > > > > occurring. > > > > > > > > But isn't that intentional sabotage, then? > > > > > > CCleaner starts in autostart. It cleans the system of junk, removes history, > > > compacts browser databases. For me, it is indispensable. > > > > Can you check what CCleaner removes that causes this? > > It's cleaning up temporary files. Please give the exact LibreOffice files that it cleans.
(In reply to Buovjaga from comment #17) > (In reply to Mariusz from comment #16) > > (In reply to Buovjaga from comment #15) > > > (In reply to Mariusz from comment #14) > > > > (In reply to Buovjaga from comment #13) > > > > > (In reply to Mariusz from comment #11) > > > > > > This error occurs after running CCleaner. Before version 7.4.0, this error > > > > > > did not occur after running CCleaner. I attach a video of the error > > > > > > occurring. > > > > > > > > > > But isn't that intentional sabotage, then? > > > > > > > > CCleaner starts in autostart. It cleans the system of junk, removes history, > > > > compacts browser databases. For me, it is indispensable. > > > > > > Can you check what CCleaner removes that causes this? > > > > It's cleaning up temporary files. > > Please give the exact LibreOffice files that it cleans. It is an empty folder lu12010126gv21.tmp. But each time it has a different name (lu..........tmp).
(In reply to Mariusz from comment #18) > It is an empty folder lu12010126gv21.tmp. But each time it has a different > name (lu..........tmp). Please state the full path of that empty folder.
(In reply to Stephan Bergmann from comment #19) > (In reply to Mariusz from comment #18) > > It is an empty folder lu12010126gv21.tmp. But each time it has a different > > name (lu..........tmp). > > Please state the full path of that empty folder. C:\Users\%USERPROFILE%\AppData\Local\Temp\lu..........tmp
(In reply to Mariusz from comment #11) > This error occurs after running CCleaner. Before version 7.4.0, this error > did not occur after running CCleaner. I attach a video of the error > occurring. I watched the video, and see that the problem is the removal of the temporary files *while the program that uses them is open* (the quicklauncher). And that is plain wrong - to remove the temporary files of *running* applications. Sorry, I didn't realize this bit of the problem before. No matter if that happened to work, if it did then it only happened by chance. And any application is free to decide to use different tempfile strategy. If a user believes that tempfiles are created for a joke, they are mistaken. Removal of all temporary files is a destructive process. It may only occur when the user knows what they do. If done incorrectly, the refusal to open files would be the least dangerous problem. Programs may crash, or save garbage to files, or fail in any other thinkable way. (In reply to Mariusz from comment #14) > CCleaner starts in autostart. It cleans the system of junk, removes history, > compacts browser databases. And this is exactly the wrong way to clean temporary files. Because it competes to do it before the programs start; and Windows will decide itself which of the autostarted applications would start in which order. If quicklauncher happened to already start, it already uses the files. Removing them is wrong. Having said that, I can speculate that the program originated from some recent work of Armin in bug 126742, specifically in commit 4a75df6d31ac6362957104f976c05e7c425cdc50. I suspect that now it's possible to modify and remove files that are opened by LibreOffice on Windows, and that allows CCleaner to destroy stuff.
Indeed, CCleaner should start first in the autostart but this is probably impossible to set. I have currently disabled cleaning of the TEMP directory. Until I discovered that it was the directory deletion that was causing the problem, I thought it was a bug. Versions of LibreOffice before 7.4.0 did not create this directory so I had no idea what was causing this error. By trial and error, I managed to find the cause.
STR: 0. Configure LibreOffice to "Load during system start-up". 1. Make sure LibreOffice process (including quicklauncher) is not running. 2. Open system TEMP directory in file manager, to watch its content. 3. Open LibreOffice. See that quicklauncher is started. 4. Close LibreOffice. See that quicklauncher keeps running. 5. Try opening files in LibreOffice, see that succeeding. 6. In the system TEMP directory, see that there is an empty directory now, named like lu11144d8wy4y.tmp, created when LibreOffice started at step #3. Delete the directory. 7. Now try opening LibreOffice documents. See the problem. Indeed, restarting LibreOffice process would resolve the problem.
This seems to have been fixed at least since version 24.2.5.
Yes, bug 152542 had also been reported as WFM
*** This bug has been marked as a duplicate of bug 159769 ***