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

 
 

bug #36275: Problem in loading saved data

Submitted by:  Helios De Rosario <heliosdr>
Submitted on:  Mon 23 Apr 2012 11:25:06 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: Helios De RosarioOpen/Closed: Closed
Release: 3.6.1Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission 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>
Project 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>
Project 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>
Project Administrator
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>
Project Administrator
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>
Project Administrator
Mon 24 Sep 2012 04:49:38 PM UTC, comment #2:

Could be a duplicate of #35852

Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
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 File(s):
   
   
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
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by thorgal (Updated the item)
  • -unavailable- added by heliosdr (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 27 Apr 2013 05:03:48 PM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Mon 24 Sep 2012 04:49:51 PM UTCjordighStatusNone=>Confirmed
    Mon 24 Sep 2012 04:32:50 PM UTCthorgalAttached File-=>Added test.txt, #26622

    Back to the top


    Powered by Savane 3.1-cleanup1