Freezes when running commands

37 vues (au cours des 30 derniers jours)
Xiaoting Sun
Xiaoting Sun le 25 Juil 2019
Réponse apportée : Rupesh le 27 Mai 2024
Update: Needed to be able to use Matlab so ended up uninstalling and reinstalling. I don't know what the issue was but it does what I need.
I'm using R2018a on OSX 10.14. Yesterday I was able to use/edit/run a script that grabbed data from a network drive without any issues. The network drive remained connected overnight. Today I attempted to run the same script again but Matlab froze and I was unable to break using Ctrl + C. After restarting, Matlab opened to a directory in the network drive and I was able to navigate using the Address Bar but not through the Current Folder window. Tools from the Plots and Apps menu bars seemed to not be loading. I was also able to type in the open script in Editor, close Editor tabs, and open new tabs, but couldn't open existing scripts. Simple commands through the command window (e.g. just typing the number 2 and hitting enter) went on forever and didn't respond to Ctrl + C.
After reading some posts about network issues, I force closed Matlab and disconnected the network drive, then restarted Matlab and got the usual "Warning: Name is nonexistent or not a directory". Same problems as above. After another restart, I didn't get any warnings but still had the same problems. Restarted computer and threw in some system updates as well. Still having the same issues. It also doesn't respond when I click "Set Path" or "Preferences" in the Home menu bar.
Trying to exit out right after startup gives me the "An operation is in progress" window. Ctrl + Q doesn't do anything. It hasn't given me any actual errors, it just doesn't respond.
How do I fix this?
  2 commentaires
Rebecca Culver
Rebecca Culver le 30 Sep 2020
Modifié(e) : Rebecca Culver le 30 Sep 2020
I had the exact same issue today. Obviously a long time ago, but do you by chance remember how this issue was resolved?
Nipun
Nipun le 16 Juin 2022
Hi, these issues can occur if sone commands have been stopped abruptly causing the network drive listed as unrecognised. While you may expect fewer such issues in the new versions (with the R2022 release), here is a MATLAB answer that might help: https://in.mathworks.com/matlabcentral/answers/97966-why-am-i-unable-to-browse-to-a-mapped-network-drive-when-activating-on-windows-7
Cheers!
Nipun

Connectez-vous pour commenter.

Réponses (1)

Rupesh
Rupesh le 27 Mai 2024
Hi Xiaoting,
To address the issue with MATLAB on your OSX 10.14 system, especially after encountering problems with scripts and network drives, first try resetting MATLAB's preferences. Close MATLAB, navigate to ~/Library/Application Support/MathWorks/MATLAB, and rename the preferences directory for R2018a. This forces MATLAB to regenerate default preferences, potentially resolving erratic behavior. Ensure your network drive is accessible and stable, as network issues could exacerbate the problem.
If resetting preferences doesn't help, consider running MATLAB in safe mode by holding down the Shift key immediately after starting the program. This can help bypass issues caused by startup scripts or path problems. As a last resort, reinstalling MATLAB might be necessary, ensuring you backup any essential scripts or data beforehand. These steps target the core issues without extensive system or software diagnostics.
you can refer to below matlab answer for more information
Hope this helps!
Thanks

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by