https://bugs.documentfoundation.org/show_bug.cgi?id=170114
Bug ID: 170114
Summary: LibreOffice hangs indefinitely when converting corrupt
word/DOC/DOCX in headless mode
Product: LibreOffice
Version: 4.4 all versions
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: framework
Assignee: [email protected]
Reporter: [email protected]
LibreOffice hangs indefinitely when converting a corrupt DOC/DOCX file to PDF
in headless mode.
We use LibreOffice in headless server mode (via UNO, using JODConverter) to
convert Word documents (DOC/DOCX) to PDF.
When a corrupted or malformed Word file is uploaded for conversion:
- LibreOffice does not return an error
- The conversion never completes
- The soffice.bin (UNO) process becomes stuck
- All subsequent Word→PDF conversions also hang
- Only restarting LibreOffice or the server fixes the issue
Expected behavior:
LibreOffice should fail the conversion gracefully and release the UNO process
when a corrupt Word file is encountered.
Actual behavior:
LibreOffice enters a permanently blocked state after attempting to convert a
corrupt DOC/DOCX file to PDF, making the service unusable until restarted.
This makes LibreOffice unreliable for server-side Word-to-PDF conversion when
invalid or corrupted files are uploaded.
Steps to reproduce:
1. Run LibreOffice in headless mode via JODConverter (UNO)
2. Convert a corrupted DOC/DOCX file to PDF
3. The conversion hangs
4. Try converting a valid DOC/DOCX file
5. It also hangs until LibreOffice is restarted
--
You are receiving this mail because:
You are the assignee for the bug.