After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 132059 - Crash if Label vector len < Data Series vector len
Crash if Label vector len < Data Series vector len
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Charting
1.2.x
Other Linux
: Normal critical
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2004-01-21 04:18 UTC by Luke Hutchison
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Luke Hutchison 2004-01-21 04:18:24 UTC
When creating a graph, in preview mode, if you select a range of values for
the labels that is shorter than the range that defines the data series, the
following backtrace can result.  I guess if the Label series is too short,
the extra labels should be blank.


Backtrace was generated from '/home/lukeh/GARNOME/bin/gnumeric'

[New Thread 1092943808 (LWP 7924)]
0x4001544e in _dl_sysinfo_int80 () from /lib/ld-linux.so.2

Thread 1 (Thread 1092943808 (LWP 7924))

  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 waitpid
    from /lib/tls/libpthread.so.0
  • #2 libgnomeui_segv_handle
    at gnome-ui-init.c line 738
  • #3 <signal handler called>
  • #4 go_data_vector_get_len
    at go-data.c line 228
  • #5 gog_axis_num_markers
    at gog-axis.c line 906
  • #6 gog_axis_view_render
    at gog-axis.c line 1082
  • #7 gog_view_render
    at gog-view.c line 485
  • #8 gog_chart_view_render
    at gog-chart.c line 603
  • #9 gog_view_render
    at gog-view.c line 485
  • #10 gog_view_render_real
    at gog-view.c line 308
  • #11 gog_outlined_view_render
    at gog-outlined-object.c line 148
  • #12 gog_view_render
    at gog-view.c line 485
  • #13 gog_renderer_pixbuf_update
    at gog-renderer-pixbuf.c line 697
  • #14 gog_control_foocanvas_update
    at gog-control-foocanvas.c line 197
  • #15 foo_canvas_item_invoke_update
    at foo-canvas.c line 433
  • #16 foo_canvas_group_update
    at foo-canvas.c line 1383
  • #17 foo_canvas_item_invoke_update
    at foo-canvas.c line 433
  • #18 do_update
    at foo-canvas.c line 2916
  • #19 idle_handler
    at foo-canvas.c line 2951
  • #20 g_idle_dispatch
    at gmain.c line 3273
  • #21 g_main_dispatch
    at gmain.c line 1752
  • #22 g_main_context_dispatch
    at gmain.c line 2300
  • #23 g_main_context_iterate
    at gmain.c line 2381
  • #24 g_main_loop_run
    at gmain.c line 2601
  • #25 gtk_main
    at gtkmain.c line 1124
  • #26 main
    at main-application.c line 237
  • #27 __libc_start_main
    from /lib/tls/libc.so.6
  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2

Comment 1 Jody Goldberg 2004-01-26 15:51:36 UTC
I can not replicate this.  It does highlight a problem where we draw
axis ticks based on the number of labels rather than data points. 
However it does not crash.

What version are you using ?  There was a problem with labels in early
1.2.x
Comment 2 Luke Hutchison 2004-01-26 18:11:08 UTC
v1.2.2.  Was it fixed before then, or should I upgrade and try again?
Comment 3 Jody Goldberg 2004-01-27 15:20:11 UTC
Hard to say.  Please try again with 1.2.5
Comment 4 Luke Hutchison 2004-01-27 23:40:31 UTC
Hmm, couldn't replicate it in 1.2.5, but it is possibly because a new
problem has surfaced: in 1.2.2, whenever you select another Label
range, within a second or two the preview in the Graph Properties
window updates to show the new Label range.

In 1.2.5, the axis labels are only ever updated automatically once;
the second time you select a range while the cursor is in the Label
field, even without clicking OK/Close, no update occurs.  If you
accept the new Label range, i.e. click OK, then the graph in the main
sheet is not updated with the new range either.  The only way to
update the range is right-click->Properties->OK.

Once this is fixed (in v. >1.2.5), I will try to get the label range
crash again -- as it is, I can't replicate it in 1.2.5, but then again
it sometimes required the selection of a few different ranges in 1.2.2
before it would crash, and only one range is selectable in 1.2.5
before it stops updating both the preview and the actual graph in the
sheet.
Comment 5 Luke Hutchison 2004-01-28 00:01:52 UTC
See also bug 132060.
Comment 6 Jody Goldberg 2004-02-02 05:23:11 UTC
Things update correctly in both trees now.  Still no crash.