Bug 80602 - Font not found error reported as CAIRO_STATUS_NO_MEMORY
Summary: Font not found error reported as CAIRO_STATUS_NO_MEMORY
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Chris Wilson
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-27 15:15 UTC by mathuin
Modified: 2015-05-01 19:35 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description mathuin 2014-06-27 15:15:39 UTC
I encountered this bug while using cairocffi, and the developer of that product informed me that errors received by cairocffi come from cairo and thus I needed to send the bug report to you guys.

The module wanted one of the liberation fonts, but they weren't installed. The error returned was "out of memory". This confused me for a few hours until someone helped me search through strace output and found that the last thing before the exception was a collection of attempts to access fonts.

To replicate this issue:

Create a Centos 6.5 VM, update it (but do not install liberation-sans-fonts), install cairocffi, use it to make an SVG with text.

What I got:

CAIRO_STATUS_NO_MEMORY exception

What I expected:

Some kind of "font not found" message.
Comment 1 Behdad Esfahbod 2015-05-01 19:35:26 UTC
I think I fixed this with this commit:
http://cgit.freedesktop.org/cairo/commit/?id=bb01fd879448b47074d4d800fe1620a57caf1dbe


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.