help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fw: memory exhausted error


From: Ákos Gáborjáni Szabó
Subject: Fw: memory exhausted error
Date: Fri, 30 Mar 2001 11:54:24 +0200

 
Hi there -
 
I may have found a bug. - If you think it is not a real bug, and you have any idea how to solve it, please help me.
(I am using Octava for some statistical calculations to include them to my thesis. Since I am in a hurry because of the deadlines :) , I would really appreciate any help!)
 
I've running version 2.1.31 on windows 98 and windows 2000. Free RAM is more than 160M, free HDD is more than 100M in both of them.
On both systems Octave crashes when running a (quite simple) function file.
 
 
 
octave:1> C=korr_matrix("eq_stand.ocd",805,16,1,805)
Error: memory exhausted -- trying to return to prompt
 
D:\PROGRAM FILES\GNU\OCTAVE\USR\LOCAL\BIN\OCTAVE.EXE: *** MEM_COMMIT failed, Win32 error 8
      0 [main] OCTAVE 1003 lock_pinfo_for_update: rc 0, pinfo_mutex 0xFFFFFFFF, Win32 error 6
      0 [main] OCTAVE 1002 sync_with_child: child -1803231(0xBC) died before initialization with status code 0x1
    102 [main] OCTAVE 1002 sync_with_child: *** child state waiting for longjmp
 
Error: memory exhausted -- trying to return to prompt
Error: memory exhausted -- trying to return to prompt
Error: memory exhausted -- trying to return to prompt
..... (endless loop)
 
------------------------------------------------------------------------------------------------------------------------
The function file korr_matrix is:
 
function C=korr_matrix(filename,row,column,r_start,r_end)
## Calculate correl matrix of selected rows (r_start,r_end) in a matrix (row x column) from file filename
 [fid,msg]=fopen(filename,"r","ieee-le")
 ## column,row are replaced, because of the inverse format of the input file
 E=fscanf(fid,"%f",[column,row]) 
 fclose(fid)
 E=rot90(flipud(E),-1)
 E=E(r_start:r_end,:)
  m=mean(E)
 v=sum(tril(triu(sqrt(cov(E)))))
 [sor,oszlop]=size(E) 
 for i= 1:sor
  E(i,:)=(E(i,:)-m)./v
 endfor 
 C=corrcoef(E)
endfunction
 
------------------------------------------------------------------------------------------------------------------------
The data file eq_stand.ocd is a matrix with 805 rows, 16 columns, containing fixed floating point variables, separated with spaces. Data file format: first row first.
 
------------------------------------------------------------------------------------------------------------------------
 
Thank you very much
 
Akos

reply via email to

[Prev in Thread] Current Thread [Next in Thread]