MATLAB keeps crashing my entire computer and I've tried everything I can think of to fix it. I have final projects due starting next week and they are all heavily MATLAB-related.

180 visualizaciones (últimos 30 días)
It started with Simulink in R2020b. The .slx file runs fine, but while going through the results, my whole computer freezes and becomes unresponsive, not just MATLAB/Simulink. I have to power down via the physical power button. It happens just about every time, always a little while after running the simulink file. Now it's doing it for an old .m file that I wrote a couple years ago and never had an issue with, so it's not isolated to one file. Another frequent symptom is that sometimes there will be two instances of MATLAB running in the task manager even though I only ever use one at a time. When the second one shows up, it usually uses more resources than the first one and doesn't have the MATLAB thumbnail icon, just an icon that looks like a sheet of paper. But either way, I always have a lot of available resources across the board.
I think it has something to do with either Java or graphics. The reason I think it has something to do with Java is that the issue started right around the time I downloaded and setup destreamer from github following instructions from this reddit post. It involves installing node.js as well as some other stuff and configuring a few things in command prompt. It also uses a lot of Java. I have tried reversing whatever I did to no avail, as well as uninstalling everything that it had me install. Also, in task manager, MATLAB always has at least three instances of Java Chromium Embedded Framework running, which I don't remember seeing in the past. The destreamer thing I downloaded had me install chromium as well as Python and VS, so maybe that's related. The reason I think it has something to do with graphics is that it always seems to happen when there are a lot of figures or graphics windows open. However, none of my other apps have any issues with graphics and the task manager shows that I have ample resources available.
I've tried upgrading to R2021a, uninstalling all MATLAB products and doing a clean install of R2021a, and uninstalling all MATLAB products and doing a clean install of R2019b. When R2019b froze my computer, my machine automatically shut itself down, which the newer versions didn't do. When I reinstalled R2021a, the taskbar shortcut had no thumbnail, and after running the old .m file that I mentioned above, the app bugged out when I tried to go fullscreen. That was a first. Then my computer froze like always. When I rebooted, MATLAB gave the error "Warning: An error occurred while reading the desktop configuration file." I followed the advice online about checking the Java environment, but MATLAB was already using the Java version it shipped with since it was a clean install. It also gave me an error when I tried to open Simulink: 'Caught "std::exception" Exception message is: Value of settings could not be read.'
Recently I used the system file checker tool (sfc /scannow) in command prompt which found some corrupt files and repaired them, but the issue persists. I used the Intel Processor Diagnostics tool to see if there was a problem with my intel CPU. There was no issue. I used the Windows Memory Diagnostic tool to check for memory issues, which got stuck when I did the extended scan but found no issues when I did the standard scan. When I use the Windows Performance Monitor, it says it's unable to add a couple counters related to the physical disk.
My specs:
Windows 10 Home installed on an Acer Aspire VN7-592G laptop
RAM: 32 gb
CPU: Intel Core i7 6700HQ @ 2.6 GHz
Display Graphics: Intel Graphics HD 530
Dedicated Graphics: Nvidia GeForce GTX 960m
All software is fully up to date.
  4 comentarios

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 18 de Abr. de 2021
Editada: Image Analyst el 18 de Abr. de 2021
Yes, but did you do what it says in the FAQ:
Yes, or no???
And do you really have two instances of MATLAB or do you really have something like this:

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by