Message Service fatally disconnected

hi,
I am recently seeing the following error popup while running my code in MATLAB R2019b.
JavaScript Alert - https://localhost:31515
Message Service fatally disconnected.
it happens randomly and i would like to know what could be the cause of it and how to fix it.
I never had this issue while running R2014b and it suddenly started when I switched to R2019b. My computer is running under Windows 10 pro (build 1909).
thank you in advance.
yuki

5 Kommentare

NGUYEN Nho Gia Hien
NGUYEN Nho Gia Hien am 13 Jun. 2020
Just adding more info to this question:
I'm on Ubuntu 18.04 with MATLAB 2020a and having the same issue. It seems this is not OS specific error.
John Anderson
John Anderson am 22 Jun. 2020
hi, the same thing for me, I'm also using Ubuntu 18.04 with MATLAB 2020a. Any help will be greatly appreciated !
YUKI GOYA
YUKI GOYA am 29 Jun. 2020
I increased the java heap memory size to 1024MB recently and it seems to fix the issue for now, but I cannot tell for sure...
Weijie Liu
Weijie Liu am 10 Okt. 2020
The same for me. macOS Catalina 10.15.6 with MATLAB R2019b
Amin Salehi
Amin Salehi am 6 Apr. 2021
Same here, following, MacOS Big Sir

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Patrik Forssén
Patrik Forssén am 12 Nov. 2020

2 Stimmen

Got this error also and (local) help-pages stoped working. Not even reinstallation of MATLAB (R2020a, Win 10) helped to resolve the issue.
Seems to be a problem with corrupt preferences. After deleting the preferences directory, and reinstallation, help worked again with no error messages (so far). Type
prefdir
in the MATLAB command window, exit MATLAB and delete the preferences directory (WARNING! all your custom settings will be lost). I do not think reinstallation is actually necessary after that, just re-starting MATLAB should be sufficent.
After you have set your custom preferences again you might want to exit MATLAB and save a backup copy of the preferences directory so you can replace it if you experience similar problems again.

2 Kommentare

I am currently affected by the same error message, however the broken part of the Program is the Editor.
Deleting the preferences did not work.
Running Matlab with administrator rights resolves the issue of not displayed editor, but is not an option for regular use. It is a quick fix, though and might be helpful to other users. Using R2022a currently.
John McCaleb
John McCaleb am 23 Mär. 2026
same error in Matlab 2024b

Melden Sie sich an, um zu kommentieren.

Kategorien

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

Produkte

Version

R2019b

Gefragt:

am 1 Apr. 2020

Kommentiert:

am 23 Mär. 2026

Community Treasure Hunt

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

Start Hunting!

Translated by