[cairo] Bug?
Steve Chaplin
stevech1097 at yahoo.com.au
Thu Oct 28 08:15:08 PDT 2004
Here's a snippet which I think highlights a bug:
#include <stdlib.h>
#define LENGTH 20000
cairo_move_to (cr, .0, .50);
int i;
float x, y;
for (i=0; i<=LENGTH; i++){
x = (float) i/LENGTH;
y = (float) rand() / RAND_MAX;
cairo_line_to (cr, x, y);
}
cairo_stroke (cr);
It simulates drawing lines connecting points on a graph.
With LENGTH=10,000 it works OK, with LENGTH=20,000
cairo_snippets_gtk dies with the message 'Broken pipe'.
Regards,
Steve
More information about the cairo
mailing list