Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not all export filters seem to be able to handle private:stream #117

Open
jerbob92 opened this issue May 22, 2024 · 4 comments
Open

Not all export filters seem to be able to handle private:stream #117

jerbob92 opened this issue May 22, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@jerbob92
Copy link

Hi there!

When executing the following command:

unoconvert --output-filter "DocBook File" --convert-to xml - - < infile.rtf

To convert an RTF file to a DocBook XML File, and sending the output to stdout (really specific, I know), the following error occurs:

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

And the LibreOffice process seems to crash.

When outputting to a file path:

unoconvert --output-filter "DocBook File" --convert-to xml - outfile.xml < infile.rtf

Everything seems to work fine!

When looking at the code the only difference seems to be the usage of OutputStream in the first command.

Any idea what might be going on here? Thanks in advance!

@regebro
Copy link
Member

regebro commented May 31, 2024

Yeah, you are right, I get the same error. That's amazingly annoying. The only way I can see to fix that is to use temporary files in the server part, which is doable, but really shouldn't be needed.

@regebro regebro added the bug Something isn't working label May 31, 2024
@jerbob92
Copy link
Author

That's how we have solved it now indeed.
Would the next step be reporting an issue with LibreOffice? Or does this issue originate in the uno/unoserver package?

@regebro
Copy link
Member

regebro commented May 31, 2024

It's Libreoffice, and getting bugs fixed there takes time, they definitely need more people helping actually fix bugs, which I unfortunately don't have the time or language experience to do.

@jerbob92
Copy link
Author

jerbob92 commented Jun 4, 2024

Same for me, I don't see myself diving into the LibreOffice codebase right now.

I have reported the issue here: https://bugs.documentfoundation.org/show_bug.cgi?id=161416

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants