Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MATLAB crashes after tens of thousands runs !! #63

Open
GoogleCodeExporter opened this issue Mar 7, 2016 · 3 comments
Open

MATLAB crashes after tens of thousands runs !! #63

GoogleCodeExporter opened this issue Mar 7, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link






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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant