bugGNU Octave - Bugs: bug #33495, error of memory exhausted at...

 
 

bug #33495: error of memory exhausted at random while plotting

Submitter:  None
Submitted:  Wed 08 Jun 2011 09:41:13 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Duplicate Assigned to:  None
Originator Name:  Lidia Bressan Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.4.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 10 Jun 2011 06:21:30 AM UTC, comment #1: 

This appears to be a duplicate of bug #32528 which has been fixed in the development code.  You will need to build from source, however, to access the fix.  Instructions for downloading from the Mercurial repository are here (http://www.gnu.org/software/octave/download.html).  There should also be a 3.4.1 bug fix release within the next 2 months which will have the fix.

Rik <rik5>
Group administrator
Wed 08 Jun 2011 09:41:13 AM UTC, original submission:  



I work on a pc with fedora 15 and I have octave and octave-devel installed:
octave.i686  6:3.4.0-6.fc15   @anaconda-InstallationRepo-201105131946.i686
octave-devel.i686   6:3.4.0-6.fc15   @anaconda-InstallationRepo-201105131946.i686

In a script I get the following error without reason. I think this is a bug.

error: memory exhausted or requested size too large for range of Octave's index type -- trying to return to prompt

The script runs within the octave shell, it loads some data and plot it. There is no indication about the line where the error occurs, but I checked and the script stops at a plot command.

I don't know how to reproduce this error, since the script runs well  with some values and stop with others.

In my specific case, it stops at the second of this two plot commands with:

ert=2
tat= 879
sst=1/60
ym=-75.153
yM=103.778.


figure(12);
 subplot(2,1,1)
 hold on;
 plot((+ert+tat)*sst.*[1 1],[ym yM]);
 plot((-ert+tat)*sst.*[1 1],[ym yM]);

but the same script runs if tat=878 or if sst=1, while loading exactly the same data !!

octave:164>
octave:164> close all; clear;  tat=879; ert=2;  script_bug
error: memory exhausted or requested size too large for range of Octave's index type -- trying to return to prompt
ans = loading
ans = loading done
ym = -75.153
yM =  103.78
tat =  879
ert =  2
ans = figure
octave:164> close all; clear;  tat=878; ert=2;  script_bug
ans = loading
ans = loading done
ym = -75.153
yM =  103.78
tat =  878
ert =  2
ans = figure
ans = end figure
octave:165>

I run each line of the script alone, and I didn't get any error in the first part of the script. The only thing I found are these gnuplot warning:


octave:159>       figure(12);
octave:160>        subplot(2,1,1)
octave:161>
gnuplot> plot "-";
              ^
         line 10: warning: Skipping data file with no valid points

octave:161>
octave:161>        hold on;
octave:162>
gnuplot> plot "-";
              ^
         line 12: warning: Skipping data file with no valid points

octave:162>
octave:162>           plot((+ert+tat)*sst.*[1 1],[ym yM]);
octave:163>           plot((-ert+tat)*sst.*[1 1],[ym yM]);
error: memory exhausted or requested size too large for range of Octave's index type -- trying to return to prompt

No idea why it runs with some values and with others no.
I attach the script. In case you need more information, please ask me by email.

Regards

Lidia Bressan


Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #23509:  script_bug.m added by None (25KiB - text/x-objcsrc)

 

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 None (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-07-17 rik5 StatusNone Duplicate
        Open/ClosedOpen Closed
    2011-06-08 None Attached File- Added script_bug.m, #23509

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code