xjiang4 / ellipsoids

Automatically exported from code.google.com/p/ellipsoids
Other
0 stars 1 forks source link

Matlab throws "Out of memory" exception when running the test pack on PC with Windows 64 and 8GB RAM #109

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Matlab is 32bit though.

The bug has been reported by Yuri Admiralsky:

I found one test, which raises "memory out" on Windows 7 64-bit system with 8GB 
of memory:

gras.ellapx.uncertcalc.test.regr.run_regr_tests({'uosc8'})

The main reason is plot visualixation:

 \products\+gras\+ellapx\+uncertcalc\run.m lines 96-103 

The error is raised while saving plots. The code is:

\lib\+smartdb\+disp\@RelationDataPlotter\RelationDataPlotter.m, lines 161-183

Here memory consuming grows rapidly and then program crash or raises "Out of 
memory" with errors in bultin matlab functions.

Also memory greatly consumes in:

 \products\+gras\+ellapx\+uncertcalc\run.m lines 96-102 but this code doesn't raise error itself.

Optimization of plotting (memory consuming) will greatly reduce problems with 
testing.

Original issue reported on code.google.com by heartofm...@gmail.com on 23 Apr 2013 at 11:39

GoogleCodeExporter commented 8 years ago
Memory consumption while evaluating \products\+gras\+ellapx\+uncertcalc\run.m 
(debug points):

line 96 ~ 500MB
line 102 ~ 2.7GB
line 106 - unreachable - writes "out of memory" and then exits with error in 
MATLAB print.m built-in function.

So the memory leak not only in saveas() but in plotting (in fact the code in 
\lib\+smartdb\+disp\@RelationDataPlotter\RelationDataPlotter.m at first shows 
the plot, then save it (and doesn't close). And we also add plots, produced by 
lines 96-98.

Original comment by heartofm...@gmail.com on 23 Apr 2013 at 12:40