Clear Filters
Clear Filters

Why is MATLAB Connector crashing with "An unexpected error has occurred" when starting it from the Linux Terminal?

24 views (last 30 days)
Why is the MATLAB Connector crashing when I try to start it from the Linux Terminal via the command "MATLABConnector start". I have Version installed.
To reproduce the issue, I executed "MATLABConnector start" in the Linux Terminal, and I see a dialog containing the message "An unexpected error has occurred".
The Connector logs indicate that the "MATLABConnector" process has crashed with the exception "Abnormal termination: std::terminate()".
Here is the stack trace from one of the crash reports present in directory "~/.MATLABConnector/$HOSTNAME/logs":
ERROR: Stack Trace (captured):
[ 0] 0x00007fb3ab4f20f3 bin/glnxa64/
[ 1] 0x00007fb3ab4f22ec bin/glnxa64/ _ZN10foundation4core4diag15stacktrace_base7captureEm+00000028
[ 2] 0x00007fb3ab4f4a64 bin/glnxa64/
[ 3] 0x00007fb3ae25413c bin/glnxa64/
[ 4] 0x00007fb3ae2564af bin/glnxa64/
[ 5] 0x00007fb3ae256fc8 bin/glnxa64/
[ 6] 0x00007fb3ae2522ca bin/glnxa64/
[ 7] 0x00007fb3ad2a33a6 /home/USERNAME/.MATLABConnector/v1.3.1.2/HOSTNAME/bin/glnxa64/../../sys/os/glnxa64/
[ 8] 0x00007fb3ad2a33f1 /home/USERNAME/.MATLABConnector/v1.3.1.2/HOSTNAME/bin/glnxa64/../../sys/os/glnxa64/
[ 9] 0x00007fb3ad2cde8e /home/USERNAME/.MATLABConnector/v1.3.1.2/HOSTNAME/bin/glnxa64/../../sys/os/glnxa64/
[ 10] 0x00007fb3acde66db /lib/x86_64-linux-gnu/
[ 11] 0x00007fb3acb0f88f /lib/x86_64-linux-gnu/ clone+00000063
[ 12] 0x0000000000000000 <unknown-module>+00000000

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 29 May 2024 at 0:00
Edited: MathWorks Support Team on 29 May 2024 at 17:38
This may be because MATLAB Connector is detecting a newer version and is attempting but failing to auto-update due to permissions-related issues.  This can happen if MATLAB Connector was previously installed with superuser permissions.  Note that MATLAB Connector is not designed to be installed as superuser, and this is neither a supported workflow nor expected to work.
To resolve the issue, I recommend that you perform a clean reinstallation of the MATLAB Connector.  The relevant steps are detailed below:
1) Execute the following commands in the Linux Terminal to completely uninstall any remnants of the previously-installed MATLAB Connector.
sudo rm -rf ~/.MATLABConnector
sudo rm ~/bin/MATLABConnector
sudo rm -rf ~/Downloads/MathWorkssudo chown -R $USER: ~/MATLABDrive
2) Download the latest MATLAB Connector:
3) Once downloaded, proceed with the installation.  Again, note that this step should NOT be done as superuser.  As an example, if the latest version is version, you can execute the following command in the Linux Terminal to install it:
/bin/bash ~/Downloads/matlabconnector_1.3.2.0_glnxa64_installer.bin

More Answers (0)


Find more on Introduction to Installation and Licensing in Help Center and File Exchange


No tags entered yet.




Community Treasure Hunt

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

Start Hunting!