Libreoffice crashes while converting docx to pdf - Redhat Linux

Hello,

We have an application where we store microsoft office documents. As part of the release management we convert the office documents to pdf with watermarks using libreoffice.

Scenario:

  1. Almost all documents are coverted to pdf without any problem.
  2. Our observation shows that some are getting failed with heavy memory consumption.
  3. Libreoffice crashes when the documents contains heavy images and more pages (Ex: around 600 - 1000 pages)

I have tested both CLI and GUI. Result is same.

Technical Stack:

Redhat Enterprise 7.9 (3.10.0-1160.83.1.el7.x86_64)

Tested multiple versions: Result is not ok.
LibreOffice 7.1.5.2
LibreOffice 7.4.6.2
LibreOffice 7.5.1.2

CLI Command:
/opt/libreoffice75/program/soffice --headless --convert-to “pdf:writer_pdf_Export” --outdir /tmp 7090190.docx

Size of docx : 100MB

Appreciate some pointers to solve this problem.
Thank you in advance.

The vast majority of us aren’t developers. So, a stack trace is no use. You should instead describe in layman words what you were doing when the crash occurred: CLI vs. GUI session, exact Linux distro, LO version. Mention also the DOCX size.

Add this information by editing your question. Don’t add a comment for now.