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

 
 

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

Submitted by:  None
Submitted on:  Wed 08 Jun 2011 09:41:13 AM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: DuplicateAssigned to: None
Originator Name: Lidia BressanOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.4.0
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project 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 File(s):
   
   
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
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by None (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 17 Jul 2011 04:36:16 AM UTCrik5StatusNone=>Duplicate
      Open/ClosedOpen=>Closed
    Wed 08 Jun 2011 09:41:13 AM UTCNoneAttached File-=>Added script_bug.m, #23509

    Back to the top


    Powered by Savane 3.1-cleanup1