-
Notifications
You must be signed in to change notification settings - Fork 6
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
Spawn LibreOffice in a separate thread/process to avoid crashing the whole thing #7
Comments
I'm not sure i want the library to use multiprocessing by default, but i can add a code example for sure. I'll try to cook a patch in the next few days. BTW asked some more info in your bugreport to understand the issue better. Nice to find out some users of the lib :) |
Riccardo, thanks for a quick response! |
I've tried to debug libreoffice crashes i see here with pylokit but hadn't much success: |
Hi, I found that pylokit can crash easily with a corrupted/badly damaged file when trying to convert a .docx file to PDF. Here is mine: https://ufile.io/27814 |
@pcdinh please don't hijack issues, pylokit is a very thin layer around libreofficekit so issues with documents are very likely an upstream libreoffice issue. |
Hey guys, thanks for the great library. We use it in the
templated_docs
Django package, and some bright guy offered us to spawn LO in a separate process to avoid misterious crashes. Here's the PR, looks pretty simple. But I thought this whole thing is better off living inpylokit
itself so that others can benefit from this update as well.What do you guys think about changing the
exit()
way to a multiprocess one? If you feel this goes in line with your vision, let me know, I'll create the PR against the latestpylokit
version. Or, fell free to make the change yourselves :).The text was updated successfully, but these errors were encountered: