my-archives / nchart

nChart for node.js inspired by Chart.js.
MIT License
48 stars 10 forks source link

libcairo Issues 'Ακυρώθηκε (core dumped)' #10

Open pc-magas opened 8 years ago

pc-magas commented 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.

pc-magas commented 8 years ago

I solved the problem it is that I just gave the wrong data