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
|