bugGNU Octave - Bugs: bug #36275, Problem in loading saved data

 
 

bug #36275: Problem in loading saved data

Submitter:  Helios De Rosario <heliosdr>
Submitted:  Mon 23 Apr 2012 11:25:06 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Helios De Rosario Open/Closed:  * Closed
Release:  * 3.6.1 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sat 27 Apr 2013 05:03:48 PM UTC, comment #11: 

Fixed in 3.6.4.  Solution is to upgrade to latest stable release.  Closing report.

Rik <rik5>
Group administrator
Sat 13 Apr 2013 02:48:09 PM UTC, comment #10: 

Solved in 3.6.4, at least in the MinGW version.

Helios De Rosario <heliosdr>
Thu 14 Mar 2013 03:52:58 PM UTC, comment #9: 

Could this bug be re-tested with the available 3.6.4 release for Windows?

Rik <rik5>
Group administrator
Tue 25 Sep 2012 03:46:34 PM UTC, comment #8: 

I finally installed 3.6.2 MinGW version, since I had important unreadable files to load. It did the work.

I will wait and try the 3.6.4 release to upgrade my MSVC version when available.

Thank you for your time.

Jérémie <thorgal>
Mon 24 Sep 2012 05:58:39 PM UTC, comment #7: 

A few important bugs were discovered in 3.6.3 and a 3.6.4 release is planned soon, so perhaps the Windows packagers are waiting for 3.6.4.

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Mon 24 Sep 2012 05:33:09 PM UTC, comment #6: 

I am afraid I cannot. Is there any way to have it built in the coming days?

Thanks.

Jérémie <thorgal>
Mon 24 Sep 2012 05:21:16 PM UTC, comment #5: 

There doesn't seem to be a 3.6.3 Windows build yet:

https://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/

Can you make one?

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Mon 24 Sep 2012 05:17:16 PM UTC, comment #4: 

I would love to. Where could I find the 3.6.3 release?

Jérémie <thorgal>
Mon 24 Sep 2012 04:51:03 PM UTC, comment #3: 

Sorry, I meant of bug #35852. Can you check if this happens on 3.6.3?

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Mon 24 Sep 2012 04:49:38 PM UTC, comment #2: 

Could be a duplicate of #35852

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Mon 24 Sep 2012 04:32:50 PM UTC, comment #1: 

I faced the same problem.

I have tried different sizes in a loop since the problem shows randomly depending on the recorded data:

while(1)
   x = randn(200,1);
   save test.mat x;
   load test.mat;
end

I carried out some experiments with different number of rows and columns.

Here are my findings:

   1) The problem only appears for data containing negative real (double) numbers.

   2) This is not the number of columns nor the number of rows that counts but the total file size (actually the total file size depend on the size of each single recorded double that varies)

   4) The problem arise above around 190 recorded doubles (e.g. x = randn(190,1) or x = randn(95,2)... etc.) and is more frequent as the number of recorded double increase.

   5) For small files (e.g. 200 elements) any character (space or non significant zero) added to any part (including header) makes an unreadable file readable.

   6) No easy solution appears for larger files.

I join here an example of an unreadable file generated from the above program loop:

# Created by Octave 3.6.1, Mon Sep 24 18:31:09 2012 Paris, Madrid (heure d’été) <unknown@jju-port>
# name: a
# type: matrix
# rows: 200
# columns: 1
 -1.148522356490188
 1.143155412031432
 2.029113100175301
 1.433470377473792
 0.5881021062605867
[...]
(full file available in joints documents)

This file can be turn readable by adding any character:
1) # columns: 1 --> # columns: 01
2) # name: a --> # name: ab
3)  -01.148522356490188
4) adding one space anywhere

I hope that helps!

Thorgal

(file #26622)

Jérémie <thorgal>
Mon 23 Apr 2012 11:25:06 AM UTC, original submission:  

Octave often fails when I try to load a previously saved data file. Example:

octave-3.6.1.exe:2> x=randn(100000,1)
octave-3.6.1.exe:3> save test.mat x
octave-3.6.1.exe:4> load test.mat
error: load: failed to load matrix constant
error: load: trouble reading ascii file `test.mat'
error: load: reading file test.mat

This does not happen with "lighter" data. E.g, this does work:

octave-3.6.1.exe:6> x=randn(100,1)
octave-3.6.1.exe:7> save test.mat x
octave-3.6.1.exe:8> load test.mat

But I have not found a consistent threshold for the size of the variable where the error occurs.

This happens in my installation of Octave 3.6.1 for Windows Microsoft Visual Studio 2010 (by Michael Goffioul), both in the CLI and in the experimental GUI. No success in re-installing.

No problem with other installations of Octave (e.g. 3.4.3), or for data saved in binary format.

Thanks for your attention,
Helios

Helios De Rosario <heliosdr>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #26622:  test.txt added by thorgal (4KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jordigh (Posted a comment)
  • -email is unavailable- added by thorgal (Updated the item)
  • -email is unavailable- added by heliosdr (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-04-27 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2012-09-24 jordigh StatusNone Confirmed
    2012-09-24 thorgal Attached File- Added test.txt, #26622

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code