MATLAB Answers

Why is MATLAB Drive Connector crashing with "An unexpected error has occurred"?

31 views (last 30 days)
Why is the MATLAB Drive 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":
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 25 May 2019
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 Drive Connector was previously installed with superuser permissions. Note that MATLAB Drive 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 Drive 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 Drive Connector.
sudo rm -rf ~/.MATLABConnector
sudo rm ~/bin/MATLABConnector
sudo rm -rf ~/Downloads/MathWorks
sudo chown -R $USER: ~/MATLABDrive
2) Download the latest MATLAB Drive 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


Sign in to comment.

More Answers (0)




Translated by