octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #42579] textscan error out of memory or dimens


From: anonymous
Subject: [Octave-bug-tracker] [bug #42579] textscan error out of memory or dimension too large
Date: Wed, 18 Jun 2014 16:16:18 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0

URL:
  <http://savannah.gnu.org/bugs/?42579>

                 Summary: textscan error out of memory or dimension too large
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 18 Jun 2014 04:16:17 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: Chris Mumby
        Originator Email: chris,address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.1
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Loading a 37mb file using textscan In Octave 3.6.4 and Octave 3.8.1 I get the
following error: "error: out of memory or dimension too large for Octave's
index type".

If I replace textscan with dlmread it works fine. Using the command line
debugger (only way I could track down exactly where the error was being
generated), I had tracked down the line it throws the error, it is in
strread.m line 404 which reads 'rxp_wsp = sprintf ("[%s]+", white_spaces);'

Use the following code with the example file in the attached 7z file.

fid = fopen(isofilename);
data=textscan(fid,  '%f %f %f %f %f %f %f %f');
fclose(fid);


I have only used Octave on Windows and I have tried converting the line
endings to Windows one but that doesn't help. I have Matlab at work and this
is a barrier to using Octave to run the script without changing all the
scripts to dlmread.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42579>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]