unoconv / unoserver

MIT License
495 stars 69 forks source link

unoserver sometimes generates errored PDF files without crashing #109

Open niels-bosman opened 3 months ago

niels-bosman commented 3 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 1 month 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 1 month 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 1 month ago

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