MATLAB 2018b freezes with >100% CPU usage on Mac OS Mojave 10.14.3

조회 수: 5 (최근 30일)
Francesco Carotenuto
Francesco Carotenuto 2019년 3월 3일
답변: hb chen 2019년 10월 28일
Hello,
I run MATLAB r2018b on a MacBook Pro 2018 with 16 GB of RAM and a 2.7 GHz i7.
Every time I use MATLAB, after ~5,10 min of normal usage (basic tasks like plots or small vector computations), the CPU usage goes above 100% and the software becomes unusable, with an average of ~1.3 GB or RAM used. In this condition, I cannot save variables or plots and I have to force the termination of the session, but without seeing any error message.
After reading other MATLAB Answers, I can say that don't use Magnet and I disabled the Source Control and the auto-refresh of the Current Folder. The Java Heap Memory is set to a maximum of 4 GB. This issue occurs regardless if I am connected with Internet or not. Re-installing from scractch didn't solve the problem.
What could be the issue? The software alsways crashes after a short usage, I never experienced such problems with the r2016 version.
Thank you very much for your help.
  댓글 수: 7
Francesco Carotenuto
Francesco Carotenuto 2019년 4월 4일
Not yet unfortunately. From the support they suggested to regenerate my preferences in the
/Users/{username}/Library/ApplicationSupport/MathWorks/MATLAB/R2018b folder, but it didn;t work.
This is still happening after updating to R2019a, but I noticed that it mostly happens when I try to save objects, like new variables or plots. If I don't try to save anything in my working folder, MATLAB usually works fine, but when I try to save, the object is not saved and my CPU usage rises up to 100~120% and the software becomes unusable.
Ayman Suliman
Ayman Suliman 2019년 5월 16일
편집: Ayman Suliman 2019년 5월 21일
I'm getting the same issue, it just recently started happening a few hours after updating my Mac to 10.14.5 .
I noticed the virtual memory keeps increasing while it is frozen, so I suspect it's some kind of memory leak? The virtual memory size (from the activity monitor) went over 90 GB before I terminated it.
I'm on 2018b.
EDIT: Reinstalling has solved the problem for me (for now).

댓글을 달려면 로그인하십시오.

답변 (5개)

hb chen
hb chen 2019년 10월 28일
Now, I have solve this problem. There isn't Magnet app installed in my Mac. But there is another window snapping apps in my Mac: Eudi,so I closed it and open Matlab again, it works!
Hope this can help you!

Cao Duo
Cao Duo 2019년 6월 13일

Eric
Eric 2019년 7월 25일
Same here. No Magnet App. R2019 on MacOSx 10.14.5 on MacbookPro 2018 15". Hangs for several minutes, UI unresponsive on any window. Activity Monitor MATLAB process sample attached.
/eric rehm
Takuvik / ULaval

Deepak Ingole
Deepak Ingole 2019년 10월 25일
편집: Deepak Ingole 2019년 10월 25일
The same issue persists with macOS Catalina (10.15) and MATLAB2019a. The solutions given at https://www.mathworks.com/matlabcentral/answers/421446-r2018b-r2019a-runs-very-slow-on-macos-10-14?s_tid=answers_rc1-2_p2_BOTH doesn't help. This is happening after macOS update, MATLAB freezes for some time and then works well. Need help to solve this issue.
Thank you.
  댓글 수: 2
Ayman Suliman
Ayman Suliman 2019년 10월 25일
Does it happen when you run Simulink? I noticed the problem occurred for me when using the "Scope" tool in Simulink, but that was a long time ago. Normal Matlab works fine for me.
Deepak Ingole
Deepak Ingole 2019년 10월 25일
No, I am not using Simulink. For me, it freezes after plotting some figures.

댓글을 달려면 로그인하십시오.


hb chen
hb chen 2019년 10월 28일
!!The same issue persists with macOS Catalina (10.15) and MATLAB2019a/MATLAB2019b. Once I open a .m file and run it. Matlab freezes and the CPU usage goes above 100%.
Please help! Thanks!

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by