MATLAB 2017b freezes on Ubuntu 17.10: memory issue?

2 views (last 30 days)
Hi,
I recently installed MATLAB2017b on a machine with 32 GB RAM (+32GB of swap) running Ubuntu 17.10 in order to run some computations that require a decent amount of memory. After running parts of the code MATLAB freezes (and with it the whole system). No error message is displayed, the computer just crashes and a hard restart is the only thing I can do. I was able to pin down the exact line at which MATLAB freezes. Before that line is executed my system indicator shows that I'm using 25 GB RAM. Since that specific line creates another large object, I'm assuming that the reason for the freeze is some kind of memory issue.
I'm puzzled by this behavior since, on my iMac running OS X and MATLAB 2016b with only 16GB RAM the exact same code runs without any problems.
Does anybody know what the problem with my code/MATLAB under Linux is? Is there anything I can do to make the code run on the Ubuntu machine?
Thank you very much!
Stefan
  12 Comments
Guillaume R
Guillaume R on 5 Feb 2018
Hello, this is also happening to me, my swap folder is encrypted but I do not wish to disable encryption for obvious security reasons. Is there any other option to solve this problem ? For me the freeze is only on Matlab, not on the whole system though, so it could be a different issue but I don’t know where to start looking.
Walter Roberson
Walter Roberson on 5 Feb 2018
Please read through https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1647400 . It is a confirmed Linux bug, and fixes for it have been released. You should follow the "Continued at" link at the end too as the fix for this problem triggers other related but distinct issues so you need multiple fixes.

Sign in to comment.

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!