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 325142 - Crash while saving .gnumeric file
Crash while saving .gnumeric file
Status: RESOLVED FIXED
Product: libgsf
Classification: Core
Component: General
1.14.x
Other All
: Normal critical
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2005-12-28 13:35 UTC by serpof
Modified: 2007-01-06 12:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Error message (25.94 KB, image/jpeg)
2006-01-24 12:03 UTC, serpof
Details
Error message for microsoft (49.30 KB, text/plain)
2006-01-24 12:04 UTC, serpof
Details
test file which cannot be saved in gnumeric format (10.00 KB, application/vnd.ms-excel)
2006-11-16 13:23 UTC, Christian Göbel
Details
error-report related to test.xls-file. (48.55 KB, text/plain)
2006-11-16 13:34 UTC, Christian Göbel
Details

Description serpof 2005-12-28 13:35:36 UTC
They open up the different formats correctly, but when keeping them in another format, Gnumeric gives error message and he/she closes the application without saving the changes.  
I use WinXP SP2   
Micro AMD Athlon XP 2.0  
RAM 256  
Mother integrated PCChips

Se puede enviar en español??

Thanks
Comment 1 Morten Welinder 2005-12-31 17:47:13 UTC
Could you please give us a sample file that causes problems?

Also, what format are you trying to save in?
Comment 2 serpof 2006-01-01 14:08:34 UTC
The forms with those that I have problems cannot be sent because they have but of 1Mb of size.   
Can the size be the cause of the problem?
Comment 3 Morten Welinder 2006-01-02 01:01:17 UTC
Size is probably not an issue, but it is easy to check: delete large
areas with numbers or text and retry.  (Be careful not to overwrite
your original, of course.)

What format are you trying to save as?

My guess would be that there is some sheet object in the file -- some graph
type, for example -- that we have a problem with.
Comment 4 Ivan Wong 2006-01-23 18:10:41 UTC
Is it a Win32 only bug or not?
Comment 5 serpof 2006-01-24 11:34:18 UTC
I only have installed winXP   
It doesn't use it in Linux because it doesn't still install it

Comment 6 serpof 2006-01-24 11:37:19 UTC
my disk is fat32 formated
no ntfs
Comment 7 serpof 2006-01-24 12:03:20 UTC
Created attachment 58007 [details]
Error message
Comment 8 serpof 2006-01-24 12:04:52 UTC
Created attachment 58009 [details]
Error message for microsoft
Comment 9 serpof 2006-01-24 12:07:28 UTC
Comment on attachment 58007 [details]
Error message

This message appears when I erase the image and intent save
Comment 10 Jon Kåre Hellan 2006-10-28 20:37:44 UTC
Close as incomplete?
Comment 11 Christian Göbel 2006-11-16 13:23:55 UTC
Created attachment 76702 [details]
test file which cannot be saved in gnumeric format

To make gnumeric crash (on WinXP), just open this file and try to save it as a gnumeric file.
Comment 12 Christian Göbel 2006-11-16 13:32:56 UTC
I guess I have the same issue like described in the original bug-report. However I am not sure since there is only little information. 

I use Gnumeric 1.7.1 Build 1 like provided on the Gnumeric homepage on WinXP. 

The description of the uploaded testfile says it all: The file can be opened/modified and saved in the original .xls format. However saving the file in Gnumeric format leads to a crash. 

I will also attach the error-report.
Thanks a lot for Gnumeric!
Comment 13 Christian Göbel 2006-11-16 13:34:12 UTC
Created attachment 76703 [details]
error-report related to test.xls-file.
Comment 14 Daniel Vianna 2006-12-05 05:45:17 UTC
Confirmed, same problem on Gnumeric 1.7.2 under Linux. I was saving a .XLS file as .gnumeric, and the program crashed without saving. Reproducible. I'm compiling 1.7.5 now to check if the bug is still present.
Comment 15 Daniel Vianna 2006-12-05 06:05:57 UTC
Just tested it in Gnumeric 1.7.5 and yes, the program still crashes when saving from an .xls file as .gnumeric.
Comment 16 Morten Welinder 2006-12-05 14:41:26 UTC
I like reproducability.

Daniel: could you please try running under gdb:

gdb `which gnumeric`
run
# do whatever it takes to provoke crash
where
# that should print a stack trace -- attach it here
quit
Comment 17 Daniel Vianna 2006-12-06 02:08:12 UTC
Reading file:///home/daniel/Documents/old.papers/unb/a5%20lesion%20size%20and%20history.xls
(no debugging symbols found)
(no debugging symbols found)
Excel 97 +
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)

** (/usr/bin/gnumeric:18831): CRITICAL **: xl_chart_read_dataformat: assertion `series_index < s->series->len' failed
Writing file:///home/daniel/Documents/old.papers/unb/a5%20lesion%20size%20and%20history%20work.gnumeric

** (/usr/bin/gnumeric:18831): CRITICAL **: gsf_value_get_docprop_vector: assertion `VAL_IS_GSF_DOCPROP_VECTOR (value)' failed

Program received signal SIGSEGV, Segmentation fault.
0xb75e3794 in gsf_opendoc_metadata_write () from /usr/lib/libgsf-1.so.114
(gdb) 
Comment 18 Morten Welinder 2006-12-06 14:19:14 UTC
Almost!  You missed the important "where" command after the crash.
Comment 19 Morten Welinder 2006-12-06 14:42:34 UTC
Crash reproduced.  No further info currently needed.
Comment 20 Morten Welinder 2006-12-06 15:40:40 UTC
Aha.  This was fixed in current code:

2006-10-25  Jody Goldberg <jody@gnome.org>

	* gsf/gsf-opendoc-utils.c (meta_write_props) : clean up the code to
	  handle missing values and invalid properties.

That explains why we couldn't reproduce with the sample file from comment 11.
The fix is in libgsf 1.14.3 and will eventually be propagated.
Comment 21 Christian Göbel 2007-01-06 12:47:33 UTC
This is just to confirm that the crash doesn't happen any more with the 
test file from comment 11 using the newest 1.7.6 build for win32 on XP. 
Thanks a lot.