[cairo] cairo_surface_write_to_png & out of memory return status?

Malcolm Tredinnick malcolm at pointy-stick.com
Thu Feb 5 15:38:06 PST 2009


On Thu, 2009-02-05 at 13:10 -0600, P.Romero wrote:
> Ok, I somewhat figured out how to do this.
> Installed gdb
> Re-compiled pixman, cairo, and my program (GrADS) all with the -g option
> Ran gdb and loaded the symbols for my program
> Set the breakpoint at _cairo_error
> Ran the program, hit the breakpoint and, sure enough, received the following
> message from gdb:
> 
> 
> Breakpoint 1, _cairo_error (status=CAIRO_STATUS_NO_MEMORY) at cairo.c:87
> 87          assert (_cairo_status_is_error (status));
> 
> Missing separate debuginfos, use: debuginfo-install e2fsprogs.i386
> expat.i386 fontconfig.i386 freetype.i386 glibc.i686 libICE.i386 libSM.i386
> libX11.i386 libXau.i386 libXcursor.i386 libXdmcp.i386 libXext.i386
> libXfixes.i386 libXmu.i386 libXpm.i386 libXrender.i386 libXt.i386
> libpng.i386 libxcb.i386 zlib.i386
> 
> Now what????

The error message tells you what to do next (starting after the word
"use:"). That would be a good first step, since being able to see the
full stack trace and inspect variable values, etc, will be useful if you
have to go the gdb approach.

Regards,
Malcolm



More information about the cairo mailing list