-
-
Notifications
You must be signed in to change notification settings - Fork 680
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_STATUS_NO_MEMORY when using @font-face #441
Comments
Various hints for anyone interested in fixing this issue:
|
Ow. I just stepped on that. |
That's magically fixed by f5367c8. Other rendering errors could happen before, but they were not fatal as this one. The font was sometimes removed from filesystem before the surface was written on the output PDF/image. |
Version 0.41 ------------ Released on 2017-10-05. WeasyPrint now depends on pdfrw >= 0.4. New features: * `#471 <https://github.com/Kozea/WeasyPrint/issues/471>`_: Support page marks and bleed. Bug fixes: * `#513 <https://github.com/Kozea/WeasyPrint/issues/513>`_: Don't crash on unsupported image-resolution values. * `#506 <https://github.com/Kozea/WeasyPrint/issues/506>`_: Fix @font-face use with write_* methods. * `#500 <https://github.com/Kozea/WeasyPrint/pull/500>`_: Improve readability of _select_source function. * `#498 <https://github.com/Kozea/WeasyPrint/issues/498>`_: Use CSS prefixes as recommanded by the CSSWG. * `#441 <https://github.com/Kozea/WeasyPrint/issues/441>`_: Fix rendering problems and crashes when using @font-face. * `bb3a4db <https://github.com/Kozea/WeasyPrint/commit/bb3a4db>`_: Try to break pages after a block before trying to break inside it. * `1d1654c <https://github.com/Kozea/WeasyPrint/commit/1d1654c>`_: Fix and test corner cases about named pages. Documentation: * `#508 <https://github.com/Kozea/WeasyPrint/pull/508>`_: Add missing libpangocairo dependency for Debian and Ubuntu. * `a7b17fb <https://github.com/Kozea/WeasyPrint/commit/a7b17fb>`_: Add documentation on logged rendering steps.
Version 0.41 ------------ Released on 2017-10-05. WeasyPrint now depends on pdfrw >= 0.4. New features: * `#471 <https://github.com/Kozea/WeasyPrint/issues/471>`_: Support page marks and bleed. Bug fixes: * `#513 <https://github.com/Kozea/WeasyPrint/issues/513>`_: Don't crash on unsupported image-resolution values. * `#506 <https://github.com/Kozea/WeasyPrint/issues/506>`_: Fix @font-face use with write_* methods. * `#500 <https://github.com/Kozea/WeasyPrint/pull/500>`_: Improve readability of _select_source function. * `#498 <https://github.com/Kozea/WeasyPrint/issues/498>`_: Use CSS prefixes as recommanded by the CSSWG. * `#441 <https://github.com/Kozea/WeasyPrint/issues/441>`_: Fix rendering problems and crashes when using @font-face. * `bb3a4db <https://github.com/Kozea/WeasyPrint/commit/bb3a4db>`_: Try to break pages after a block before trying to break inside it. * `1d1654c <https://github.com/Kozea/WeasyPrint/commit/1d1654c>`_: Fix and test corner cases about named pages. Documentation: * `#508 <https://github.com/Kozea/WeasyPrint/pull/508>`_: Add missing libpangocairo dependency for Debian and Ubuntu. * `a7b17fb <https://github.com/Kozea/WeasyPrint/commit/a7b17fb>`_: Add documentation on logged rendering steps.
weasyprint sometimes crashes with a "CAIRO_STATUS_NO_MEMORY" error when rendering documents with @font-face CSS rules.
The crashes are not deterministic, same document may render fine 100 times, and crash on the 101th time.
Test case:
Some previous discussion is in #103
The text was updated successfully, but these errors were encountered: