[cairo] No memory error with a matrix and pattern

cecashon at aol.com cecashon at aol.com
Mon Nov 9 17:31:08 UTC 2020

I am getting a cairo CAIRO_STATUS_NO_MEMORY error caused by a matrix used with a pattern. It looks like it has been reported before.


The matrix that is used works fine with text but not a pattern created from a surface. There doesn't seem to be a way to recover from the error. Does anyone have this one figured out? I am stuck.

To reproduce, the test program is at


in files cairo3d.c, cairo3d.h and cairo3d_UI.c. 

In cairo3d_UI.c find "draw_wrap_sphere_image" and uncomment. Comment out "draw_wrap_sphere" just above, which works, and compile. 

  gcc -Wall cairo3d.c cairo3d_UI.c -o cairo3d_shapes `pkg-config --cflags --libs gtk+-3.0` -lm

Run the program and in the second combo box select Wrap Sphere. In the first combobox Animate Rotation. It will run for a little while and then give up the no memory ghost.

Any help appreciated.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20201109/cecbc024/attachment.htm>

More information about the cairo mailing list