Bug 138317 - soffice.exe 7.0.1.2 crashes on Windows Server Core 1903 or newer.
Summary: soffice.exe 7.0.1.2 crashes on Windows Server Core 1903 or newer.
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.0.1.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: wantBacktrace
Depends on:
Blocks:
 
Reported: 2020-11-18 19:49 UTC by Remigiusz
Modified: 2021-03-31 11:55 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
soffice dump file (355.08 KB, application/octet-stream)
2021-02-27 21:46 UTC, Remigiusz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Remigiusz 2020-11-18 19:49:45 UTC
Description:
Libre Office portable starts to crash on Windows Server Core 1903 or newer (both Hyper-V and run as docker image). After crash I didn't see any logfile, also eventlog was empty.


Libre Office works correctly only on Windows Server Core version LTSC - 1809.


Easiest way to reproduce this error is to run LibreOffice as docker image and run convert operation. I described whole procedure in "Steps to reproduce" section.

Steps to Reproduce:
1. Install "Docker Desktop for Windows" on Windows 1903 or higher

2. Intall LibreOffice portable to "C:\LibreTmp\Libre7" ; create file "C:\LibreTmp\sample.docx" (sample file to convert)

3. Run "Windows Server Core 1903" container in "interactive mode" with mounted tmp folder: 

   C:\> docker run -it --entrypoint powershell -v "C:\LibreTmp\:C:\LibreTmp" mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-1903

3. Run conversion for any document (in my case I used "sample.docx" and convert it to pdf) in container:

   C:\> mkdir c:\user\env
   C:\> mkdir c:\user\profile
   C:\> $env:USERPROFILE = "C:\user\profile"
   C:\> Start-Process "C:\LibreTmp\App\libreoffice\program\soffice.exe" -argumentlist "--convert-to pdf --outdir C:\LibreTmp\ C:\LibreTmp\sample.docx" -wait
   C:\> dir C:\LibreTmp\

4. As a result there is no converted document (c:\LibreTmp\sample.pdf) because Libre Office crashed in strange way..

5. Exit and shutdown container

   C:\> exit 


If you run above operations using "Windows Server Core 1809" container everything will work perfectly. To check just change step "3" to:

   C:\>  docker run -it --entrypoint powershell -v "C:\LibreTmp\:C:\LibreTmp" mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2019


Actual Results:
Libre Office crashed, there is no converted document

Expected Results:
there is converted document as result of operation.


Reproducible: Always


User Profile Reset: No



Additional Info:
LibreOffice crashed without any logfile..
Comment 1 Julien Nabet 2020-11-19 18:24:22 UTC
Any better with 7.0.3? (with non portable version if possible from https://www.libreoffice.org/download/download/)

Here are some info to retrieve a backtrace:
https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#Windows:_How_to_get_a_backtrace
Comment 2 Remigiusz 2021-02-27 21:46:39 UTC
Created attachment 170122 [details]
soffice dump file
Comment 3 Remigiusz 2021-02-27 21:47:49 UTC
I checked on 7.1.0.3 version and there is still the same situation.

I attached dump (procdump.exe -accepteula -w soffice.exe) - maybe it will help.
Comment 4 Remigiusz 2021-03-31 11:55:52 UTC
I have already rechecked this bug on "Windows Server 2019 20H2" (both: as virtual machine and as container) and LibreOffice in versions: 6.4.7, 7.0.4, 7.1.1 works properly on this Windows Server edition.

Notes:
1. LibreOffice versions was downloaded from https://www.libreoffice.org/download/portable-versions/

2. There is still problem with running LibreOffice on "Windows Server 2019 1903" and "Windows Server 2019 1909"

3. It look like there was an error in Windows and was fixed recently by Microsoft.


Because LibreOffice works properly on newest version on Windows Server 2019 20H2 I'm closing this case.