Bug 80602

Summary: Font not found error reported as CAIRO_STATUS_NO_MEMORY
Product: cairo Reporter: mathuin
Component: generalAssignee: Chris Wilson <chris>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium CC: freedesktop
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

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.