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

            Bug ID: 173024
           Summary: Automatic update to LibreOffice 26.2 repeatedly
                    restarts after failure, leaving a persistent update
                    state and installing a crashing version
           Product: LibreOffice
           Version: 26.2.5.2 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Description:
I encountered the following reproducible sequence on Windows 10 Pro (22H2,
build 19045.7548).

Initial situation
LibreOffice 25.8.3.2 x64 installed and working correctly.
During startup, LibreOffice proposed an update to 26.2.
I accepted the update.

The update completed without displaying any error message.

After that, LibreOffice no longer started.

Symptoms
soffice.exe starts soffice.bin.
soffice.bin terminates almost immediately.
Windows Event Viewer reports:
APPCRASH
faulting module: MSVCP140.dll
Process Monitor shows the process exiting with status:
0xC0000142 (STATUS_DLL_INIT_FAILED)
Investigation

I verified:

Visual C++ Redistributable repaired.
sfc /scannow completed successfully.
DISM /Online /Cleanup-Image /RestoreHealth completed successfully.
Malwarebytes disabled (no change).
Fresh LibreOffice user profile (no change).

None of these changed the behaviour.

Important observation

After completely removing LibreOffice (including cleaning the MSI registration
using Microsoft's Program Install and Uninstall Troubleshooter) and
reinstalling LibreOffice 25.8.3.2:

soffice.bin was correctly version 25.8.3.2.
Writer started successfully.

However, immediately after startup:

a web page saying "You have updated to LibreOffice 26.2" opened,
LibreOffice launched updater.exe,
Windows displayed a UAC prompt requesting elevation.

The command line shown by the UAC dialog contained:

...\updater.exe
"C:\Users\<user>\AppData\Roaming\LibreOffice\4\updates\0"
"C:\Program Files\LibreOffice"
...

If I refused elevation:

Writer 25.8.3.2 continued to run normally.
Every subsequent launch repeated exactly the same behaviour.
Workaround

I renamed:

%APPDATA%\LibreOffice\4\updates

to

updates_old

After doing so:

the updater was no longer launched,
no UAC prompt appeared,
LibreOffice 25.8.3.2 worked normally.
Expected behaviour

If a previous update failed, LibreOffice should either:

discard the stale update state,
or inform the user and offer to retry,

but it should not repeatedly relaunch the updater on every startup.

It also appears that the failed update left LibreOffice in a state where
version 26.2 consistently crashed on startup.

Additional information

Windows:

Windows 10 Pro 22H2
Build 19045.7548

Previous working version:

LibreOffice 25.8.3.2 x64

Steps to Reproduce:
See detailed description above.

Actual Results:
See details above

Expected Results:
See details above


Reproducible: Always


User Profile Reset: No

Additional Info:
This bug prevents using Libre Office.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to