bugGNU Octave - Bugs: bug #41646, io: errors on gnumeric file with...

 
 

bug #41646: io: errors on gnumeric file with OCT interface

Submitter:  Sébastien Villemot <svillemot>
Submitted:  Thu 20 Feb 2014 03:10:18 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  philipnienhuis
Originator Name:  Open/Closed:  * Closed
Release:  * other Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 20 Feb 2014 09:54:22 PM UTC, comment #3: 

Fix:

Replace L.102 with this:

  pattrn = '<gnm:Cell Row="(\d*?)" Col="(\d*?)" (?:ValueType="(\d*?)"|ExprID="(\d*?)")(?: ValueFormat="\w+")>(.*?)</gnm:Cell>';


Patch attached. Your example file can be read here after applying it.

This fix is to be included in io-2.2.0 (= next version).

Thanks for reporting


(file #30620)

Philip Nienhuis <philipnienhuis>
Group Member
Thu 20 Feb 2014 09:35:14 PM UTC, comment #2: 

Ah, we (Markus and I) didn't know about the gnumeric "ValueFormat=" tag.

This seems like an easy fix.

Philip Nienhuis <philipnienhuis>
Group Member
Thu 20 Feb 2014 09:28:15 PM UTC, comment #1: 

Confirmed.

BTW, AFAIK a "crash" is that Octave itself disappears from sight, optionally with some last error cries :-)

This is more an "execution error".

I'll look into it.

<title adapted>

Philip Nienhuis <philipnienhuis>
Group Member
Thu 20 Feb 2014 03:10:18 PM UTC, original submission:  

Hi,

When reading a Gnumeric file with interface OCT, I get the following crash (with io 2.0.2):


error: operator =: no conversion for assignment of 'cell' to indexed 'matrix'
error: assignment failed, or no method for 'matrix = cell'
error: called from:
error:   /usr/share/octave/packages/io-2.0.2/private/__OCT_gnm2oct__.m at line 109, column 19
error:   /usr/share/octave/packages/io-2.0.2/xls2oct.m at line 211, column 27
error:   /usr/share/octave/packages/io-2.0.2/xlsread.m at line 206, column 25


I attach the gnumeric file fore reference.

Cheers,

Sébastien Villemot <svillemot>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #30620:  __OCT_gnm2oct__.m.patch added by philipnienhuis (1KiB - application/x-download)
file #30614:  test.gnumeric added by svillemot (24KiB - application/x-gnumeric)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by svillemot (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-02-20 philipnienhuis StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2014-02-20 philipnienhuis Attached File- Added _OCT_gnm2oct_.m.patch, #30620
        StatusConfirmed Patch Submitted
    2014-02-20 philipnienhuis StatusNone Confirmed
        Assigned toNone philipnienhuis
        Summaryio: crash on gnumeric file with OCT interface io: errors on gnumeric file with OCT interface
    2014-02-20 svillemot Attached File- Added test.gnumeric, #30614

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code