Comment 17 for bug 284546

Revision history for this message
Johan Engelen (johanengelen) wrote : debug patch

Because I cannot make it crash, I need your help. Can you apply this
patch, and see what messages you get on the terminal? You should be
looking for something like "point1[0] not finite".

=== modified file src/dyna-draw-context.cpp
--- src/dyna-draw-context.cpp 2011-06-23 16:38:51 +0000
+++ src/dyna-draw-context.cpp 2011-08-18 20:01:00 +0000
@@ -1250,6 +1250,15 @@
  {
      dc->currentcurve->reset();

+ for (gint i = dc->npoints-1; i >= 0; i--) {
+ if (!dc->point1[i].isFinite()) {
+ g_message("point1[%d] not finite",i);
+ }
+ if (!dc->point2[i].isFinite()) {
+ g_message("point2[%d] not finite",i);
+ }
+ }
+
      dc->currentcurve->moveto(dc->point2[dc->npoints-1]);
      for (gint i = dc->npoints-2; i >= 0; i--) {
          dc->currentcurve->lineto(dc->point2[i]);

Thanks,
   Johan