GNOME Bugzilla – Bug 341917
Cannot open specific Excel file
Last modified: 2006-05-16 21:12:05 UTC
Steps to reproduce: 1. try to open the attached .xls file 2. 3. Stack trace: Sorry, I don't have a debugger. Other information:
Created attachment 65557 [details] made with real microsoft excel
lots of warnings like: (gnumeric:24602): gnumeric:read-WARNING **: XL: Xf index 0x701 is not in the range[0..0x1E) ** (gnumeric:24286): CRITICAL **: sheet_cell_new: assertion `col < SHEET_MAX_COLS' failed ** (gnumeric:24286): CRITICAL **: cell_set_value: assertion `cell != NULL' failed (gnumeric:24286): gnumeric:read-WARNING **: XL: Xf index 0x2300 is not in the range[0..0x1E)
Confirmed. Here's the stack trace for the first I get. (gdb) where
+ Trace 68241
Here's the data for that record: (gdb) x /12h q->data 0x414bcdef: 0x0010 0x000b 0x000f 0x0000 0x4014 0x000f 0x0000 0x4020 0x414bcdff: 0xff0f 0xffff 0xffff 0xffff Note the final 0xffff which claims to be the column number of the last column in this segment. The file would appear to be corrupted. All other excel readers that I can find with google read the record the same way we do, except http://cm.bell-labs.com/sources/plan9/sys/src/cmd/aux/msexceltables.c which simply stops when less than 6 bytes are left. What version of Excel generated that file?
Excel 2003 can't read it either
Fixed in the development version. The fix will be available in the next major release. Thank you for your bug report. I don't think the file is valid, but I made Gnumeric get less confused while reading it. It now spews just a few warnings.