#83 Segmentation Fault in gtk_plot_canvas_paint

closed-works-for-me
None
5
2013-03-10
2010-10-25
Anonymous
No

Segmentation fault in gtkplot.c on this place gtk_plot_draw_axis():

for(ntick = 0; ntick < axis->ticks.nticks; ntick++){
GtkPlotTick tick = axis->ticks.values[ntick];

was observed in gtk_plot_canvas_paint, while using following code:

gtk_plot_autoscale(GTK_PLOT(plot1DX));
gtk_plot_set_xrange(GTK_PLOT(plot1DX), xmin, xmax);
gtk_plot_canvas_paint(GTK_PLOT_CANVAS(plotCanvas1DX));
gtk_widget_queue_draw(plotCanvas1DX);

adding gtk_plot_axis_set_ticks(gtk_plot_get_axis(GTK_PLOT(plot1DX), GTK_PLOT_AXIS_BOTTOM), (int)ceil(dimX / zoomFactor / 10), 3);
before gtk_plot_canvas_paint() solved the issue

version2-2.1.1_5 debian/lenny

Discussion

  • Fredy Paquet

    Fredy Paquet - 2011-05-01
    • summary: Segmentation Fault --> Segmentation Fault in gtk_plot_canvas_paint
     
  • Fredy Paquet

    Fredy Paquet - 2013-03-10

    Cannot reproduce this on RHEL6 / CentOS6 / MinGW.
    Seams to be fixed.

     
  • Fredy Paquet

    Fredy Paquet - 2013-03-10
    • assigned_to: nobody --> fpaquet
    • status: open --> closed-works-for-me
     

Log in to post a comment.