-
-
Notifications
You must be signed in to change notification settings - Fork 704
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
Cairo out of memory #566
Comments
Do you have the same problem using WeasyPrint in a terminal, or does it only happen in your Flask application? |
Error appears both in Flask app and in standalone python app. Here is a test application to reproduce the error: Replace Simple application create the same pdf from same html in loop and after certain number of loops, it crashes. Sometimes after 10, 100 or 200 iterations. The same exception appears much sooner with weasyprint 0.40 than with latest version. Of course, my PC doesn't runs out of memory, it has like 9GB free out of 16GB.
Environment:
|
Thank you for this full example. I can reproduce the issue.
Yes, that's because of #441. This issue seems to be very similar, as it happens when using both
Yes, |
Yea, it looks like the issue #441 is still present. Thanks for looking into it. |
#441 was still present, its fix was not enough. Keeping a mandatory reference to |
I had the same error recently and it disappeared after removing all |
Sometimes cairo raises exception with out of memory error when converting simple html document to single page pdf. Example of html which sometimes raises the error is included in issue #565
Environment:
The text was updated successfully, but these errors were encountered: