unoconv / unoserver

MIT License
596 stars 81 forks source link

unoserver sometimes generates errored PDF files without crashing #109

Closed niels-bosman closed 4 months ago

niels-bosman commented 8 months ago

We've noticed that some of our users are experiencing invalid PDF's being generated form our unoserver-server. I will attach a document that is crashed to demonstrate (OUTPUT.pdf). I have noticed the following things when this happens:

How can we prevent this kind of behaviour from happening and possibly prevent this?

INPUT.pptx OUTPUT.pdf

regebro commented 6 months ago

For me it does print an "ioerror" indicating that something is wrong with the input file. It does generate an output file anyway, though. That was with Libreoffice 7.3.7.2.

niels-bosman commented 6 months ago

@regebro I can confirm that this was something that was not reproducible on a per file basis. After one retry it often times works with the same file...

regebro commented 6 months ago

Hmm, I wonder if "unoconvert error: signal: killed" means the OS killed it because it used too many resources, maybe?