Soffice.bin stuck when convert file to pdf

asked 2021-05-10 16:29:09 +0200

GVN gravatar image

Hello, I meet a problem when i try to convert a specific file ( file that contains .odttf font) and that the command line to convert is executed from a Window Service.

when i launch the service in a console the convertion works , but if i launch the convertion from a service Windows with a c# Process "soffice.exe --headless --convert-to pdf:writer_pdf_Export --outdir d:\xxx xxx.pdf", soffice.bin freeze and the process cannot be kill ( access denied) i need to restart the server( i tried taskkill, powershell, ProcessExplorer nothing works).

if I remove the odttf from the docx, the problem disappears

PS : i tried to use via the API CLI and some problems

Thx for your Help.

OS : Windows Server 2016 v1607 LO : LibreOffice 7.0.5.2

edit retag flag offensive close merge delete

Comments

Hard to tell without an repro document and procedure. E.g., this runs fine here on Windows 10:

PsExec64.exe -s path\to\soffice --convert-to pdf --outdir path\to\outdir path\to\loremODTTF.docx

with the loremODTTF.docx being a sample DOCX created in LibreOffice with embedded fonts (it has 17 ODTTF files inside).

Maybe related: why do you use soffice.exe to run a console application? There is soffice.com (since LO 6.3) for that.

i need to restart the server( i tried taskkill, powershell, ProcessExplorer nothing works)

You need to run taskkill or similar tools using an admin session (e.g., run cmd.exe as admin).

Mike Kaganski gravatar imageMike Kaganski ( 2021-05-10 17:35:04 +0200 )edit

Hello, thx for the response.

i have not problem when i used the same service on Windows 10, only on Windows Server 2016

and yes i run Taskkill with admin account.

https://dropfiles.org/yRUrLVUa, here the file.

GVN gravatar imageGVN ( 2021-05-11 09:26:33 +0200 )edit