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 605474 - crash: sheet_row_get: assertion `pos >= 0' failed
crash: sheet_row_get: assertion `pos >= 0' failed
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export MS Excel (tm)
1.9.x
Other Linux
: Normal critical
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2009-12-26 11:51 UTC by yassin_mrabet
Modified: 2010-03-22 13:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
xls file (82.50 KB, application/vnd.ms-excel)
2009-12-26 11:51 UTC, yassin_mrabet
Details
file with removed macros (72.50 KB, application/vnd.ms-excel)
2009-12-27 22:21 UTC, yassin_mrabet
Details

Description yassin_mrabet 2009-12-26 11:51:15 UTC
Created attachment 150400 [details]
xls file

When I try to open this file .xls (see attachment) gnumeric crashes.

With terminal commands I obtain the following error:
$ gnumeric /home/chart.xls
** (gnumeric:24033): CRITICAL **: sheet_row_get: assertion `pos >= 0' failed
** (gnumeric:24033): CRITICAL **: sheet_row_get: assertion `pos >= 0' failed
... (infinitely)

$ gnumeric
and I try to open the file from the GUI, gnumeric crashes and I obtain this error message:
GLib-ERROR **: gmem.c:136: failed to allocate 4217641616 bytes
aborting...
Abandon

gnumeric version: 1.9.14

OS: Mandriva 2010

Thank you for your help.
Comment 1 Jean Bréfort 2009-12-26 19:18:11 UTC
Hmm, would be nice if you could try with 1.9.17 or attach the file.
Comment 2 Andreas J. Guelzow 2009-12-26 19:23:42 UTC
Jean: the file is attached (see the very beginning of the report). 

I cannot replicate with current git, so giving 1.9.17 a try would be a good idea.
Comment 3 Andreas J. Guelzow 2009-12-26 19:32:16 UTC
This looks like bug 587428 but that one was supposedly fixed with 1.9.10.
Comment 4 yassin_mrabet 2009-12-27 22:21:00 UTC
Created attachment 150475 [details]
file with removed macros
Comment 5 yassin_mrabet 2009-12-27 22:21:58 UTC
I tried to open this file (chart.xls) with oo-calc -I suspected that this file maybe corrupted - and it works. A oo-calc message inform me that this file contains some macros (in VBA) which were disabled. I removed the sheets containing these scripts and open the new file (please see attachment) with gnumeric and now it runs properly. 

So this bug is due to VBA macros compatibility which is not a very serious problem. 

Please pass the status from "critical" → "normal"
Comment 6 Andreas J. Guelzow 2009-12-27 22:55:05 UTC
Any crash can lead to data loss, so we'll keep this at critical. The presence of macros (that we ignore anyways) should not lead to a crash. (And there is the possibility that something else on those sheets caused the crash.) Unfortunately I cannot replicate the crash.
Comment 7 Morten Welinder 2010-03-22 12:44:32 UTC
I cannot reproduce with current sources.  Jean?
Comment 8 Jean Bréfort 2010-03-22 13:01:07 UTC
No critical either. I supposed this was fixed somewhere between 19.14 and 1.9.17.
Comment 9 Morten Welinder 2010-03-22 13:06:01 UTC
Believed fixed.  Please reopen in case you still see it with a recent version
of Gnumeric.