What to do when Matlab R2011b crashes and does not restart?

4 Ansichten (letzte 30 Tage)
Jane Jean
Jane Jean am 27 Mär. 2012
I have Matlab R2011b installed on a 64-bit Windows. It crashed due to some coding error in my mex function and when I wanted to launch Matlab again, it doesn't work. The splash screen appeared for a second or two and nothing happened next. I have to restart the computer.
Is there a simpler way to restart Matlab without restarting the computer?
Thanks.
  2 Kommentare
Friedrich
Friedrich am 27 Mär. 2012
I know this issue. I also have to restart my whole PC. Seems like that Windows is caching some stuff which leads to an instant crash when restarting ML.
+1 for this good question
Daniel Shub
Daniel Shub am 27 Mär. 2012
Does logging out and logging back in help? Is there anything obvious in the process list that is sticking around from the crash?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Sean de Wolski
Sean de Wolski am 27 Mär. 2012
You can try starting it with -nojvm, i.e. from Windows command prompt:
matlab -nojvm
Run it, do some basic calculation:
magic(2)*rand(2);
Close it and restart normally.
This does not always work but does some times.
  1 Kommentar
Daniel Shub
Daniel Shub am 28 Mär. 2012
+1 In my comment to the question I was thinking that the jvm was not exiting correctly. I think ideally one would find the process that is hanging around and kill it manually. Since I don't know how to find the jvm process I like the idea of starting MATLAB without the jvm and then seeing if that fixes it.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by