Bug 161416 - Not all output filters seem to be able to handle XOutputStream
Summary: Not all output filters seem to be able to handle XOutputStream
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
7.6.3.1 rc
Hardware: All All
: medium normal
Assignee: Not Assigned
URL: https://github.com/unoconv/unoserver/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-04 09:59 UTC by jerbob92
Modified: 2024-06-27 18:06 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jerbob92 2024-06-04 09:59:39 UTC
When trying to convert documents using the unoserver tool from RTF to XML using the "DocBook File" output filter, LibreOffice crashes when using an XOutputStream as output. When using a file path as output, it works fine. 

The error that I get is: 
uno.com.sun.star.uno.RuntimeException: illegal object given! at /home/buildozer/aports/community/libreoffice/src/libreoffice-7.6.3.1/stoc/source/corereflection/crefl.cxx:320
 
Other output formats and output filters work fine when using XOutputStream so it seems like it might be something very specific. Here is the original issue on Gitlab for Unoserver: https://github.com/unoconv/unoserver/issues/117

We also tried to upgrade to the latest LibreOffice, but that also seems to have the same issue.
Comment 1 Stéphane Guillou (stragu) 2024-06-24 14:57:39 UTC
Thanks for the report.

This works as expected:

libreoffice24.2 --headless --convert-to "xml:DocBook File" infile.rtf

What would be the equivalent command to get the same error with LibreOffice?
Comment 2 jerbob92 2024-06-26 12:58:43 UTC
I don't think the libreoffice headless command has the ability to load files from stdin or to stdout (which wuld most likely use an XOutputStream), so I don't think you can replicate this with the normal libreoffice command.
Comment 3 Noel Grandin 2024-06-27 09:54:35 UTC
Reasonable feature request, not sure when/if anyone will around to it, however.
Comment 4 jerbob92 2024-06-27 18:06:10 UTC
It's not a feature request right? XOutputStream already works in UNO/LibreOffice, it's only not working in one very specific case.

I'm not asking for XOutputStream support in the LibreOffice command.