Kill unresponsive fullscreen matlab on mac

36 views (last 30 days)
Is there a way to force kill an unresponsive matlab? Frequently, while executing a full-screen script, it just freezes. None of the typical mac/matlab key-combinations to terminate processes work (or anything else for that matter). Basically, the computer (a macbook) becomes completely unresponsive, it is impossible to switch to other windows or open applications, or to access the terminal, or to do anything for that matter. The only option is to force-shutdown and start over, which is extremely undesirable.
Is there a way to forcefully kill a non-responsive matlab without having to kill the entire computer?
  2 Comments
D.
D. on 5 Oct 2015
That is not useful at all. Please refrain from answering without bothering to understand the situation. If you need a clarification, ask for it, but this kind of "answers" do not help. You might as well have said "Well, don't use a computer, WTP?"

Sign in to comment.

Accepted Answer

Steven Lord
Steven Lord on 5 Oct 2015
From the fact that you mentioned "displays stimuli" in one of your comments I'm guessing you're using Psychophysics Toolbox. Is that correct? I believe that third party toolbox does some special screen manipulation above and beyond what MATLAB does. If you are using this toolbox try this entry in their FAQ or try posting in their forum a description of the problem and ask if this is a known issue with a solution.
  5 Comments
Walter Roberson
Walter Roberson on 10 Mar 2017
Not a cure but an alleviation:
If you go into System Preferences -> Sharing, you can enable "remote login". Then, when you get a freeze, try to ssh in from another device. If the system is completely hung you will not be able to do so. If it is just the process managing the display that is hung, then you can use your ssh session to issue shell "kill" commands to zap the process.
I have a remote terminal program set up on my Android phone for this purpose; the Android program I use for this is "JuiceSSH"
Walter Roberson
Walter Roberson on 10 Mar 2017
Side note: between late December 2016 and late January 2017, El Capitan could completely freeze for several minutes at a time in circumstances related to use of the GPU for graphics (happened for all three gpu manufacturers).

Sign in to comment.

More Answers (1)

Cole Schlavin
Cole Schlavin on 24 Sep 2019
Edited: Cole Schlavin on 24 Sep 2019
Hey, I had the same issue on my mac laptop. I was able to fix it by sliding up with three fingers to see all open windows, and clicking & dragging matlab to the right of the open, full-screen windows in the top bar. It should automatically open matlab into full screen.
Let me know if it works for you.

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!