Open pc-magas opened 8 years ago
On this Sample Code:
/*Generating Canvas and Contect*/ console.log("Generating Canvas"); console.log("Canvas size "+width+"X"+height); console.log(typeof width); var canvas=new Canvas(parseInt(width),parseInt(height)); var ctx = canvas.getContext('2d'); console.log("Generating Chart"); new Chart(ctx).Pie(datad,config); console.log("Export image"); canvas.toBuffer(function (err, buf) { console.log("Rendering"); callback(err,buf); });
I get the Following Output:
Generating Canvas Canvas size 300X600 string Generating Chart node: /build/buildd/cairo-1.13.0~20140204/src/cairo-arc.c:189: _cairo_arc_in_direction: Assertion `angle_max >= angle_min' failed. Ακυρώθηκε (core dumped)
The issue is with libcairo:
node: /build/buildd/cairo-1.13.0~20140204/src/cairo-arc.c:189: _cairo_arc_in_direction: Assertion `angle_max >= angle_min' failed. Ακυρώθηκε (core dumped)
And I cannot figure out if is this a bug or not.
I solved the problem it is that I just gave the wrong data
On this Sample Code:
I get the Following Output:
The issue is with libcairo:
And I cannot figure out if is this a bug or not.