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 649901 - CRITICAL **: gnm_go_data_get_expr: assertion `dep != NULL' failed
CRITICAL **: gnm_go_data_get_expr: assertion `dep != NULL' failed
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Charting
git master
Other Linux
: Normal normal
: ---
Assigned To: Jean Bréfort
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2011-05-10 14:49 UTC by Andreas J. Guelzow
Modified: 2011-05-13 15:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample file (28.11 KB, application/vnd.oasis.opendocument.spreadsheet)
2011-05-10 14:49 UTC, Andreas J. Guelzow
  Details
Proposed patch (1.14 KB, patch)
2011-05-10 18:40 UTC, Jean Bréfort
none Details | Review
New patch (336 bytes, patch)
2011-05-10 19:11 UTC, Jean Bréfort
committed Details | Review

Description Andreas J. Guelzow 2011-05-10 14:49:55 UTC
Created attachment 187579 [details]
sample file

open the attached file and save.

This yields

** (gnumeric:26291): CRITICAL **: gnm_go_data_get_expr: assertion `dep != NULL' failed

** (gnumeric:26291): CRITICAL **: gnm_go_data_get_expr: assertion `dep != NULL' failed

This could be an ODF export/import or a charting issue.
Comment 1 Jean Bréfort 2011-05-10 17:07:16 UTC
gdb says:

  • #4 gnm_go_data_get_expr
    at graph.c line 291
  • #5 odf_graph_get_series
    at openoffice-write.c line 2506

Comment 2 Morten Welinder 2011-05-10 18:20:24 UTC
No valgrind events.

FWIW:

(gdb) p (char *)g_type_name_from_instance (dat)
$7 = 0x62ea07 "GODataScalarVal"
(gdb) p go_data_serialize (dat, (void*)0)
$8 = 0x6dd930 "9"
Comment 3 Jean Bréfort 2011-05-10 18:27:17 UTC
The issue is that we can't assume that a GOData has an associated GnmDependent. gog_axis_set_bounds creates simple scalar data.
Comment 4 Jean Bréfort 2011-05-10 18:40:36 UTC
Created attachment 187594 [details] [review]
Proposed patch
Comment 5 Morten Welinder 2011-05-10 18:48:28 UTC
I don't like putting such tests in openoffice-write.c

We could teach gnm_go_data_get_expr to return NULL in the absence of
a dep.
Comment 6 Jean Bréfort 2011-05-10 19:11:59 UTC
Created attachment 187595 [details] [review]
New patch

We can just remove the critical.
Comment 7 Andreas J. Guelzow 2011-05-10 19:22:58 UTC
For the purpose that we are using it in openoffice-write here, just removing the critical would be the fine.

Elsewhere it might be more useful if in the case of simple scalar data we would return an expression representing that data.
Comment 8 Morten Welinder 2011-05-10 21:25:35 UTC
> Elsewhere it might be more useful if in the case of simple scalar data we would
> return an expression representing that data.

I thought of that, but current API doesn't return a ref.
Comment 9 Andreas J. Guelzow 2011-05-10 22:58:23 UTC
gnm_go_data_get_expr is in Gnumeric, so why are we restricted by API?
Comment 10 Morten Welinder 2011-05-11 01:19:39 UTC
> gnm_go_data_get_expr is in Gnumeric, so why are we restricted by API?

We're not -- beyond "then it's more work".
Comment 11 Andreas J. Guelzow 2011-05-12 06:16:17 UTC
Jean, I think you should commit your patch of comment 6 ("just remove the critical")

When we run into a place where it would be useful to have it return even scalar data as a texpr, we can make any other changes then.
Comment 12 Jean Bréfort 2011-05-13 15:52:45 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.

At least there is no more critical.