[cairo] Very large number of lines

Andrea Canciani ranma42 at gmail.com
Mon Aug 30 03:18:47 PDT 2010

On Mon, Aug 30, 2010 at 12:04 PM, Arjen Nienhuis <a.g.nienhuis at gmail.com> wrote:
> Hi,
> If you stroke each line you need (on my system) 500 bytes per line. That
> would be 10GB RAM. I don't have that. You can use swap (and you need 64
> bits), but it will be very slow.
> If you try to create a path with 20 milion subpaths, cairo will fail
> silently(!!!) which I think is a bug.
It doesn't fail silently. Check the status of cr after cairo_stroke.
It will say that
you don't have enough memory (CAIRO_STATUS_NO_MEMORY).
You might also want to check the status after finishing the surface
(before destroying it).

More information about the cairo mailing list