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

libreoffice can hang in an infinite(?) loop #1

Open
blizzz opened this issue Oct 18, 2018 · 0 comments
Open

libreoffice can hang in an infinite(?) loop #1

blizzz opened this issue Oct 18, 2018 · 0 comments

Comments

@blizzz
Copy link
Member

blizzz commented Oct 18, 2018

Observed it with an ogg file. LibreOffice would try to treat it with the Writer import filter and just run and run and run as waste CPU cycles but don't come to an end (I waited about half an hour). Audio- and Video mimetype now are black listed, howerver I would not trust LibreOffice be working properly with other unexpected formats or perhaps corrupted files. Since the libreoffice would run, the cron job would run, too, and not finish, thus block everything.

To avoid this, we shoud switch from using exec to proc_open and friends which allow more control, for instance cancelling the process after some time. Cf. https://github.com/nextcloud/pdf_converter/blob/master/lib/BackgroundJobs/Convert.php#L87-L95

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant