Anyone else having issues with MATLAB 2023a hanging after some period of inactivity?

81 views (last 30 days)
I'm running a Live Script that reads data collected from lab test equipment saved as csv types. I process the data, do some statistical analysis, and plot a number of figures. If I then switch to do something else, and come back to it, if I try to run it again, it doesn't run "right". For instance, I point the script to other datafiles, but the figures in the live script window are still the figures from the old datafiles (even though the script seems to have run). It just doens't update the new figures.
Then, when I try to exit by typing exit so I can relaunch the program, It stays in "busy" mode and never quits. I then have to go to the task manager to end the task.
I've updated my Intel® UHD Graphics driver to version 31.0.101.2125 dated 5/24/2023 and still have the issue. I'm running MATLAB version:
MATLAB Version: 9.14.0.2206163 (R2023a)
MATLAB License Number: 41106910
Operating System: Microsoft Windows 10 Business Version 10.0 (Build 19045)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
version R2023b does the same thing, but, I don't remember ever having this issue with R2022.
Is anyone else having similar issues?
  5 Comments
Jorge
Jorge on 9 Aug 2023
not sure....the issue is I don't know it will do it until I run the script and then it hangs. Perhaps I can try in the future doing a few things first before running the script after I come back to it after a few hours or so....
Yeah, this is a difficult one to send in a problem report on because I don't know exactly how to recreate it! It just happens, and it seems to be after a long period of inactivity with the program. I'll figure out how to report it.
Thanks!
Christopher
Christopher on 9 Oct 2023
I am having similar problems. As I work on a live script at some point, I may receive random code warnings and the script runs "wrong." For example, when generating a plot, I will receive a plot previously generated from a different part of the live script and code warnings don't seem to be real. I must use task manager to force quit MATLAB. When I load it up again everything runs properly for a while. My problems started after the recent update.
16 GB RAM, Intel(R) Core(TM) i7-10750H CPU, RO2023a Update 4 (9.14.0.2306882)

Sign in to comment.

Answers (2)

Image Analyst
Image Analyst on 9 Aug 2023
Happens to me sometimes. Like if I and click on MATLAB after not using it for a few hours, it seems to take a while to "wake up" even though I had just been using a web browser with not much delay right before. I figured it was something to do with my computer (only 8 MB with 95% being used) rather than MATLAB. Like the computer had swapped MATLAB out of memory and had to swap it back in or something like that. When I had my 32 GB RAM computer, I don't recall much delay on getting MATLAB to respond.
  1 Comment
Jorge
Jorge on 9 Aug 2023
I need to try and do something else before I rerun the script to see if it is a memory swap, or something else. I think it is something with the graphics card, but I can't prove it yet.
the other thing is that I can't even exit the program when this happens....I need to kill it from the task manager...

Sign in to comment.


Dan
Dan on 29 May 2024
Thanks for brining this topic up.
I'm having issues with 2023b hanging all the time ... I haven't correlated it to any particular action like returning to MATLAB after being in another app for a bit, but I will try to become more attuned to the potential cause now. I just had the issue now and all I did was open MATLAB, go to another app, and then come back at which point I had to wait for 30 seconds of 'swirley' ...
  2 Comments
Iain Collings
Iain Collings on 30 May 2024
I have to wait for 30sec to 1 min (sometimes more) every time I run a script. It's a major pain! I can't seem to find the solution.
Image Analyst
Image Analyst on 30 May 2024
Bring up task manager (control-shift-Esc if in Windows) and look at the row for MATLAB. After you start your script, do you see any increase in the CPU usage for MATLAB? How about any of the other apps? Sort the column by CPU usage and try it again and see what the computer is spending all its time on during those 30 seconds.
Put this line
fprintf('Beginning to run %s.m at %s...\n', mfilename, datetime('now','TimeZone','local','Format','HH:mm:ss'));
and this as the last line in your script
fprintf('Done running %s.m at %s...\n', mfilename, datetime('now','TimeZone','local','Format','HH:mm:ss'));
to see exactly when your script starts running after you click the green run triangle button.

Sign in to comment.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!