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 496250 - WARNING **: Unknown color when exporting to xls
WARNING **: Unknown color when exporting to xls
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export MS Excel (tm)
git master
Other All
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2007-11-12 20:38 UTC by sum1
Modified: 2018-05-03 14:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (873 bytes, patch)
2007-11-13 09:04 UTC, Jean Bréfort
needs-work Details | Review
ms-chart.c patch (2.20 KB, patch)
2008-04-12 07:42 UTC, Jean Bréfort
none Details | Review

Description sum1 2007-11-12 20:38:13 UTC
Version: r16116
OS: Ubuntu Gutsy

Steps to reproduce:
- From gnumeric/src, convert chart-tests-excel.xlsx to Excel format:
 ./ssconvert ../samples/excel12/chart-tests-excel.xlsx /tmp/foo.xls


Relevant console output (warnings and repeated criticals ignored):

** (/home/s/cvs/gnumeric/src/.libs/lt-ssconvert:11426): CRITICAL **: gnm_go_data_get_expr: assertion `dep != NULL' failed

** (/home/s/cvs/gnumeric/src/.libs/lt-ssconvert:11426): CRITICAL **: gnm_expr_top_get_range: assertion `IS_GNM_EXPR_TOP (texpr)' failed

** (/home/s/cvs/gnumeric/src/.libs/lt-ssconvert:11426): CRITICAL **: gnm_expr_top_get_constant: assertion `IS_GNM_EXPR_TOP (texpr)' failed
Comment 1 Morten Welinder 2007-11-13 00:11:03 UTC
I see this too.
Comment 2 Morten Welinder 2007-11-13 03:24:44 UTC
This looks graph related.

  • #0 gnm_go_data_get_expr
    at graph.c line 181
  • #1 chart_write_AI
    at ms-chart.c line 3854
  • #2 chart_write_text
    at ms-chart.c line 3953
  • #3 ms_excel_chart_write
    at ms-chart.c line 4997
  • #4 excel_write_objs_v8
    at ms-excel-write.c line 3814
  • #5 excel_write_sheet
    at ms-excel-write.c line 4731
  • #6 excel_write_workbook
    at ms-excel-write.c line 5481
  • #7 excel_write_v8
    at ms-excel-write.c line 5531
  • #8 excel_save
    at boot.c line 256

Comment 3 Jean Bréfort 2007-11-13 08:51:07 UTC
xlsx importe seems to put titles and labels in GODataScalarStr, while xls exporter assumes they are GnmGODataScalar instances.
Comment 4 Jean Bréfort 2007-11-13 09:04:34 UTC
Created attachment 99008 [details] [review]
Proposed patch
Comment 5 Jody Goldberg 2007-11-13 09:56:28 UTC
Comment on attachment 99008 [details] [review]
Proposed patch

The patch will work.  We'd be better off going the other way, and making xls export more flexible.  It's not unreasonable to assume people would put the  simple data types in there.
Comment 6 Morten Welinder 2008-04-11 23:06:01 UTC
Any objections to this?
Comment 7 Jean Bréfort 2008-04-12 06:32:53 UTC
hmm, it is of course possible to make xls export more flexible, but xlsx should still not use GODataScalarStr. In my opinion, gnumeric should always use GnmGOData to be more consistent.
Comment 8 Jean Bréfort 2008-04-12 07:42:14 UTC
Created attachment 109106 [details] [review]
ms-chart.c patch

Seems I (or someone else) commited the first patch:

2008-03-07  Jean Brefort  <jean.brefort@normalesup.org>

	* xlsx-read.c: (xlsx_chart_text): create GnmGOData instead
	of GOData, (xlsx_axis_cleanup): do not unref a non deletable axis.

Anyway, this one fixes the issue the other way (I just do not like it).
Comment 9 Jody Goldberg 2008-04-12 13:49:34 UTC
Jean #7 : why a preference for GnmGOData ?
Comment 10 Jean Bréfort 2008-04-12 13:59:38 UTC
It might refer to the contents of a cell, isn't it enough?
Comment 11 Andreas J. Guelzow 2009-06-24 21:36:48 UTC
Since the criticals were fixed and nobody seemed sufficiently interested in changing the way it was fixed I was going to close this report, but running the command that started it out yields lots of warnings:
[aguelzow@kirkman ~/git/gnumeric]$ jhbuild run ssconvert ./samples/excel12/chart-tests-excel.xlsx /tmp/foo.xls
Using exporter Gnumeric_Excel:excel_biff8

** (ssconvert:31624): WARNING **: EXCEL : unknown widths for font 'Nimbus Sans L', guessing

** (ssconvert:31624): WARNING **: Unknown color (ffce00), converting it to black


** (ssconvert:31624): WARNING **: Unknown color (ffce00), converting it to black


** (ssconvert:31624): WARNING **: Unknown color (ffffce), converting it to black


** (ssconvert:31624): WARNING **: Unknown color (ffffce), converting it to black


** (ssconvert:31624): WARNING **: Unknown color (ceffff), converting it to black

and many more
Comment 12 Morten Welinder 2018-05-03 14:59:15 UTC
We still have the colour complaints but it looks like we're just hitting
a palette size limit in xls.  That's just too bad.

--> Closing.  (As fixed because the important parts really were fixed long
ago.)