[cairo] cairo-trace core dump

Jennifer Adams jma at cola.iges.org
Thu Jan 20 09:22:06 PST 2011


A recent thread on 'performance tuning questions' is relevant for me  
as well. I have noticed significant performance difference between the  
cairo installation of macports (on OSX 10.5.8) and and a build I did  
myself, following the guidelines outlined at http://cairographics.org/end_to_end_build_for_mac_os_x

I cannot get cairo-trace to work. The error message I'm getting is:

 > cairo-trace hello
Assertion failed: (cairo_pdf_surface_create_real != NULL), function  
cairo_pdf_surface_create, file trace.c, line 4310.
/opt/local/bin/cairo-trace: line 136: 80818 Abort trap               
(core dumped) CAIRO_TRACE_OUTDIR=`pwd` "$@"

hello.c looks like this:

#include <cairo.h>
#include <cairo-pdf.h>
int main() {
   cairo_surface_t *surface;
   cairo_t *cr;

   surface = cairo_pdf_surface_create ("hello.pdf",792,612);
   cr = cairo_create (surface);
   cairo_select_font_face (cr, "serif", CAIRO_FONT_SLANT_NORMAL,  
CAIRO_FONT_WEIGHT_BOLD);
   cairo_set_font_size (cr, 32.0);
   cairo_set_source_rgb (cr, 0.0, 1.0, 1.0);
   cairo_move_to (cr, 10.0, 50.0);
   cairo_show_text (cr, "Hello, World!");
   cairo_surface_show_page (surface);
   cairo_destroy (cr);
   cairo_surface_finish (surface);
   cairo_surface_destroy (surface);
   return 0;
}

I compiled with this command: gcc -o hello -I/opt/local/include/cairo - 
L/opt/local/lib -lcairo hello.c

--Jennifer

--
Jennifer M. Adams
IGES/COLA
4041 Powder Mill Road, Suite 302
Calverton, MD 20705
jma at cola.iges.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20110120/69f3f0a3/attachment.htm>


More information about the cairo mailing list