Matlab keeps shutting down while my program is running

조회 수: 67 (최근 30일)
Aaron Ouyang
Aaron Ouyang 2022년 5월 18일
댓글: Walter Roberson 2022년 5월 19일
Hi! I've been running the same image transformation program for a while, but for some reason it keeps crashing today. There's no error message; my code runs for like 5 minutes and then before completion, the Matlab program quits.
I'm running Matlab_R2022a on macOS Monterey 12.3.1. Any advice would be appreciated.
  댓글 수: 2
VBBV
VBBV 2022년 5월 18일
did you check if there are any "exit" or "quit" commands in your program ?
Aaron Ouyang
Aaron Ouyang 2022년 5월 18일
Yup. There are no exit or quit commands.

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

답변 (1개)

Walter Roberson
Walter Roberson 2022년 5월 18일
편집: Walter Roberson 2022년 5월 18일
One thing I would check is for overheating https://www.bestmaccleaner.com/mac-temperature-monitor/
I also suggest testing RAM https://support.apple.com/en-us/HT202731
  댓글 수: 3
Aaron Ouyang
Aaron Ouyang 2022년 5월 18일
I also checked temperature and RAM.
I ran the diagnostics and it says there were no issues found. I checked the temperature and it is hotter (usually its 77 degrees F but it gets to 87 with Matlab open), so I don't know if that's an issue.
I checked Memory Used/Allocated through Activity Monitor and it seems like a very big chunk of memory (26 GB) is being used/allocated for the Matlab process so I don't know if that's where the issue is. Let me know if you have any suggestions.
Walter Roberson
Walter Roberson 2022년 5월 19일
I think it might be theoretically possible for MATLAB itself to crash from running out of memory. Normally running out of memory would be noticed at the computation level, and would result in an uncatchable exception . However, in principle the amount of memory in use could be almost at the limit, and then when MATLAB itself needed memory (such as to open a variable in the variable browser) then potentially MATLAB itself could crash, I suspect.
But that does not sound like what is happening to you.

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

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by