127.0.0.1:31516 – Message service fatally disconnected
Hi,
I have a problem with Matlab (both R2023b and R2024a) not being able to resume after PC wakes from sleep mode. If Matlab is open when trying to put my PC to sleep, it stalls for several minutes preventing it from sleeping (until some process times out I guess and it finally enters sleep mode). Then, after it wakes, Matlab throws this error that Message service was disconnected at a specific localhost port (see title, the port number can vary). I followed advice from other posts (https://www.mathworks.com/matlabcentral/answers/514453-message-service-fatally-disconnected, https://www.mathworks.com/matlabcentral/answers/1637690-session-locks-when-connected-to-internet-after-disconnect-it-eventually-unlocks-with-matlab-error, and links within) that suggested to reset the preferences folder in AppData and download help documentation to local storage, but neither helped. This issue started in R2023b, recently I’ve upgraded to R2024a, but the issue still persists (this means I have a fresh install of R2024a that does this).
This disconnect issue causes the session to "freeze" – I can still write code into scripts and the GUI still responds, but I cannot execute any lines, and any edits in scripts cannot be saved (meaning that anything I write/edit will be lost). Restarting Matlab "fixes" this (until the next sleep mode), but that is not a solution for me. I use Windows 11 Home 23H2 with a Ryzen 3600, the Matlab is an Academic Total Headcount licence if any of that matters.Hi,
I have a problem with Matlab (both R2023b and R2024a) not being able to resume after PC wakes from sleep mode. If Matlab is open when trying to put my PC to sleep, it stalls for several minutes preventing it from sleeping (until some process times out I guess and it finally enters sleep mode). Then, after it wakes, Matlab throws this error that Message service was disconnected at a specific localhost port (see title, the port number can vary). I followed advice from other posts (https://www.mathworks.com/matlabcentral/answers/514453-message-service-fatally-disconnected, https://www.mathworks.com/matlabcentral/answers/1637690-session-locks-when-connected-to-internet-after-disconnect-it-eventually-unlocks-with-matlab-error, and links within) that suggested to reset the preferences folder in AppData and download help documentation to local storage, but neither helped. This issue started in R2023b, recently I’ve upgraded to R2024a, but the issue still persists (this means I have a fresh install of R2024a that does this).
This disconnect issue causes the session to "freeze" – I can still write code into scripts and the GUI still responds, but I cannot execute any lines, and any edits in scripts cannot be saved (meaning that anything I write/edit will be lost). Restarting Matlab "fixes" this (until the next sleep mode), but that is not a solution for me. I use Windows 11 Home 23H2 with a Ryzen 3600, the Matlab is an Academic Total Headcount licence if any of that matters. Hi,
I have a problem with Matlab (both R2023b and R2024a) not being able to resume after PC wakes from sleep mode. If Matlab is open when trying to put my PC to sleep, it stalls for several minutes preventing it from sleeping (until some process times out I guess and it finally enters sleep mode). Then, after it wakes, Matlab throws this error that Message service was disconnected at a specific localhost port (see title, the port number can vary). I followed advice from other posts (https://www.mathworks.com/matlabcentral/answers/514453-message-service-fatally-disconnected, https://www.mathworks.com/matlabcentral/answers/1637690-session-locks-when-connected-to-internet-after-disconnect-it-eventually-unlocks-with-matlab-error, and links within) that suggested to reset the preferences folder in AppData and download help documentation to local storage, but neither helped. This issue started in R2023b, recently I’ve upgraded to R2024a, but the issue still persists (this means I have a fresh install of R2024a that does this).
This disconnect issue causes the session to "freeze" – I can still write code into scripts and the GUI still responds, but I cannot execute any lines, and any edits in scripts cannot be saved (meaning that anything I write/edit will be lost). Restarting Matlab "fixes" this (until the next sleep mode), but that is not a solution for me. I use Windows 11 Home 23H2 with a Ryzen 3600, the Matlab is an Academic Total Headcount licence if any of that matters. matlab startup, message service MATLAB Answers — New Questions