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 676641 - CRITICALs on adding trend line
CRITICALs on adding trend line
Status: RESOLVED FIXED
Product: libgoffice
Classification: Other
Component: Graphing / Charting
GIT
Other All
: Normal normal
: ---
Assigned To: Jean Bréfort
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2012-05-23 14:48 UTC by Morten Welinder
Modified: 2012-05-24 14:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Morten Welinder 2012-05-23 14:48:13 UTC
1. New Gnumeric.
2. A1:A3 = 1, 3, 4
3. Select A1:A3, click graph icon
4. Select line type
5. Forward
6. Select series 1
7. Add polynomial trend line to Series 1.

-->

(/home/welinder/gnome-src/gnumeric/src/.libs/gnumeric:16704): Gtk-CRITICAL **: gtk_widget_get_parent: assertion `GTK_IS_WIDGET (widget)' failed

(/home/welinder/gnome-src/gnumeric/src/.libs/gnumeric:16704): Gtk-CRITICAL **: gtk_grid_attach_next_to: assertion `gtk_widget_get_parent (sibling) == (GtkWidget*)grid' failed

(/home/welinder/gnome-src/gnumeric/src/.libs/gnumeric:16704): Gtk-CRITICAL **: gtk_widget_get_parent: assertion `GTK_IS_WIDGET (widget)' failed

(/home/welinder/gnome-src/gnumeric/src/.libs/gnumeric:16704): Gtk-CRITICAL **: gtk_grid_attach_next_to: assertion `gtk_widget_get_parent (sibling) == (GtkWidget*)grid' failed

(/home/welinder/gnome-src/gnumeric/src/.libs/gnumeric:16704): Gtk-CRITICAL **: gtk_grid_attach_next_to: assertion `gtk_widget_get_parent (sibling) == (GtkWidget*)grid' failed
Comment 1 Jean Bréfort 2012-05-23 16:52:43 UTC
I'm unable to reproduce.
Comment 2 Morten Welinder 2012-05-23 17:17:30 UTC
First critical:

  • #0 g_log
    from /lib64/libglib-2.0.so.0
  • #1 gtk_widget_get_parent
    at gtkwidget.c line 7777
  • #2 gtk_grid_attach_next_to
    at gtkgrid.c line 1422
  • #3 gog_lin_reg_curve_populate_editor
    at gog-lin-reg.c line 159
  • #4 gog_polynom_reg_curve_populate_editor
    at gog-polynom-reg.c line 199
  • #5 gog_reg_curve_populate_editor
    at gog-reg-curve.c line 167
  • #6 gog_object_get_editor
    at gog-object.c line 1388
  • #7 cb_attr_tree_selection_change
    at gog-guru.c line 648


Using gtk_grid_attach_next_to with sibling==NULL is new as-of 3.1.18.
Comment 3 Morten Welinder 2012-05-23 17:18:36 UTC
See bug 657793.
Comment 4 Jean Bréfort 2012-05-23 18:57:40 UTC
Ah, this explains things.
Comment 5 Jean Bréfort 2012-05-23 19:41:12 UTC
Can we request gtk+-3.2? There is no simple solution otherwise.
Comment 6 Morten Welinder 2012-05-24 01:13:41 UTC
That would leave me behind.

If I understand things right, this call just adds a row.  We can find the
position use with a gtk_grid_attach call by looking at all children's
"top-attach" child property for the largest value.  Then add one.
Inconvenient, but not the end of the world.
Comment 7 Jean Bréfort 2012-05-24 14:22:34 UTC
This problem has been (hopefuly) fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.