Filter löschen
Filter löschen

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

20 Ansichten (letzte 30 Tage)
Why is the MATLAB Connector crashing when I try to start it from the Linux Terminal via the command "MATLABConnector start". I have Version 1.3.1.2 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/libmwfl.so+00770291
[ 1] 0x00007fb3ab4f22ec bin/glnxa64/libmwfl.so+00770796 _ZN10foundation4core4diag15stacktrace_base7captureEm+00000028
[ 2] 0x00007fb3ab4f4a64 bin/glnxa64/libmwfl.so+00780900
[ 3] 0x00007fb3ae25413c bin/glnxa64/libmwagentutils.so+00618812
[ 4] 0x00007fb3ae2564af bin/glnxa64/libmwagentutils.so+00627887
[ 5] 0x00007fb3ae256fc8 bin/glnxa64/libmwagentutils.so+00630728
[ 6] 0x00007fb3ae2522ca bin/glnxa64/libmwagentutils.so+00611018
[ 7] 0x00007fb3ad2a33a6 /home/USERNAME/.MATLABConnector/v1.3.1.2/HOSTNAME/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6+00582566
[ 8] 0x00007fb3ad2a33f1 /home/USERNAME/.MATLABConnector/v1.3.1.2/HOSTNAME/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6+00582641
[ 9] 0x00007fb3ad2cde8e /home/USERNAME/.MATLABConnector/v1.3.1.2/HOSTNAME/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6+00757390
[ 10] 0x00007fb3acde66db /lib/x86_64-linux-gnu/libpthread.so.0+00030427
[ 11] 0x00007fb3acb0f88f /lib/x86_64-linux-gnu/libc.so.6+01185935 clone+00000063
[ 12] 0x0000000000000000 <unknown-module>+00000000
 

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 29 Mai 2024 um 0:00
Bearbeitet: MathWorks Support Team am 29 Mai 2024 um 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 1.3.2.0, you can execute the following command in the Linux Terminal to install it:
/bin/bash ~/Downloads/matlabconnector_1.3.2.0_glnxa64_installer.bin

Weitere Antworten (0)

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by