dcfucheng / randomforest-matlab

Automatically exported from code.google.com/p/randomforest-matlab
0 stars 0 forks source link

MATLAB crashes after tens of thousands runs !! #63

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

Hi Abhirana,

   Thank you at first for your developing and maintaining the codes. 

   I have met a similar issue to Issue 21 & Issue 24 where matlab crashes after multiple runs.

   I downloaded the latest code I can find (randomforest-matlab_may30_2013_svn.zip & checkout the lastest version) and compiled it successfully by myself. MATLAB crashes after several runs in either windows 7 64-bit or Ubuntu 13.10 64-bit. Errors are attached. In windows 7, the error leads to error_windows.jpg and errors in Linux are recorded in matlab_crash_dump.4938-1 and matlab_crash_dump.6260-1. 

   The data used is very small (approximately 200×200 data matrix) and my computer has 32 Gb ram and I checked that the code can be executed correctly on the same data for once or a small number of times. The MATLAB version is R2012a in windows 7 and R2013a in Ubuntu Linux. All the parameters used are default.

   My code is like following:

   loop 1:10 datasets {

      function_A(){

      call classRF_train/predict around 7*10*30*30 times

      } 
   }
   end loop

   which means I need to run 60,000 times for each data.

   Based on previous issues, I guess it may be the same problem as before. Could you please take a look and tell me how to fix it?

Thank you very much,
Yashu

Original issue reported on code.google.com by liuya...@gmail.com on 4 Aug 2014 at 10:10

Attachments:

GoogleCodeExporter commented 8 years ago
hi yashu

can you take a look at the memory consumption (in task manager) before this 
happens. like does the matlab memory seem to increase as the iterations 
increase.

i just want to ensure its a memory issue rather than some errant variable being 
allocated and not unallocated (matlab is very finicky about that)

Original comment by abhirana on 9 Aug 2014 at 4:21

GoogleCodeExporter commented 8 years ago
Hi Abhirana,

   Thank you for your reply. My code is sort of complicated and thus it is difficult to monitor the memory consumption exactly (the running time is too long and there are multiple loops). However, I did find (by eye watching --!) the the memory increases slowly as running time goes by. For example, the memory goes from ~290 mb to ~340mb after around 25~30 mins.

   I am relative new to such issues. Please let me know if there is any better way to monitor the memory consumption or you have any other comments.

   Thank you very much!

Yashu

Original comment by liuya...@gmail.com on 9 Aug 2014 at 7:17

GoogleCodeExporter commented 8 years ago
Hi Abhirana,

   I think the increase of memory is due to other causes (e.g the increasing size of variables). When it crashes, the memory is in a normal size ~450mb. It seems that the crash is not due to the memory issue. I will continue to check and post what I find. Thanks.

Original comment by liuya...@gmail.com on 9 Aug 2014 at 5:36