You are not logged in.

#1 2025-02-05 12:18:57

MrMountainhome
Member
From: Germany
Registered: 2025-02-05
Posts: 2

Problem with Matlab 'Service'

Hello everyone,

today, my MATLAB installation stopped working, after a system update (yesterday, pre update it worked).

> Command `service` threw an exception
Error loading /home/$myusername/.MathWorks/ServiceHost/-mw_shared_installs/v2024.11.0.2/bin/glnxa64/mathworksservicehost/rcf/matlabconnector/serviceprocess/rcf/service/libmwmshrcfservice.so. libmwfoundation_crash_handling.so: Kann den Stack nicht ausführbar machen wie vom Shared Object verlangt: Das Argument ist ungültig: Erfolg: Erfolg
Unable to communicate with required MathWorks services (error 5201).

Translation of the later error: Cant execute stack, as demanded from Shared Object. invalid Argument: Success: Success

It appears to be the matlab authentication software

I tried to go through all the troubleshooting steps proposed on the Matlab help .
I reinstalled the Mathworks Service Host, or I think I did ( followed this , not sure how to confirm. )
According to that post, and the error message the culprit is obviously MathWorksServiceHost.Now I am lost, because I don't know how to allow or connect the service to matlab, so that it works again.

This is my first month on Arch and setting up MATLAB in the first place was quite the journey for me in the first place (but I managed on my own), but now I am lost and can not find any helpful recourses. So any help or guidance is appreciated.

Cheers

Offline

#2 2025-02-05 13:56:08

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,644
Website

Re: Problem with Matlab 'Service'

Mod note: moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2025-02-05 14:06:08

Havrak
Member
Registered: 2020-02-15
Posts: 1

Re: Problem with Matlab 'Service'

I'm facing the same issue. It persist even when installing  MATLAB from the official source and regardless of version - tried 2024b or 2024a. It's squarely an issue with Matlab Connector on Mathworks side and not an AUR issue. Reinstalling just the connector from official source doesn't fix it either, in my case the installation straight up fails on the same erorr as posted by the OP.

Offline

#4 2025-02-05 14:22:09

palatable
Member
Registered: 2025-02-05
Posts: 3

Re: Problem with Matlab 'Service'

As of today, I have the same error. Both on 2024a and 2024b.

Offline

#5 2025-02-05 14:54:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,098

Re: Problem with Matlab 'Service'

regression with the new glibc? you probably don't want to downgrade that in isolation but if you do a full system rollback to a version that predated glibc you might be able to avoid this.

Online

#6 2025-02-06 08:16:35

vroom
Member
Registered: 2024-07-06
Posts: 1

Re: Problem with Matlab 'Service'

Hello, I had the same problem and I can confirm that after downgrading glibc from 2.4.1 to 2.4.0 matlab works again for me  with no errors or warnings.
I am on version 24.2.0.2806996 (R2024b) Update 3.
Matlab was installed with official installer from the mathworks webpage and started with this script:

#! /bin/sh
export GTK_PATH=/usr/lib/gtk-2.0
export LD_PRELOAD=/usr/lib/libstdc++.so
export LD_LIBRARY_PATH=/usr/lib/dri/
~/matlab/bin/matlab

EDIT: Added version + startup script.

Last edited by vroom (2025-02-06 08:46:57)

Offline

#7 2025-02-06 19:49:37

LyCC
Member
Registered: 2012-09-05
Posts: 168

Re: Problem with Matlab 'Service'

I have the same problem. The strange thing is that it starts just fine with root user from console.

with any regular user, it dies the same way:

Error loading /home/user/.MathWorks/ServiceHost/-mw_shared_installs/v2024.13.0.2/bin/glnxa64/mathworksservicehost/rcf/matlabconnector/serviceprocess/rcf/service/libmwmshrcfservice.so. libmwfoundation_crash_handling.so: cannot enable executable stack as shared object requires: Invalid argument: Success: Success

Last edited by LyCC (2025-02-06 19:53:24)

Offline

#8 2025-02-06 20:17:17

Apocalypse480
Member
Registered: 2025-02-06
Posts: 1

Re: Problem with Matlab 'Service'

Same problem here, too.

Offline

#9 2025-02-06 20:39:57

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,098

Re: Problem with Matlab 'Service'

See https://gitlab.archlinux.org/archlinux/ … /issues/19 and the comment from loqs to try and remove the executable stack flag from the library. If there are any such channels you should probably report this to matlab so they can fix it in a newer release.

Last edited by V1del (2025-02-06 20:41:20)

Online

#10 2025-02-06 21:26:21

LyCC
Member
Registered: 2012-09-05
Posts: 168

Re: Problem with Matlab 'Service'

Ok, so a workaround is:

patchelf --clear-execstack /home/user/.MathWorks/ServiceHost/-mw_shared_installs/v2024.13.0.2/bin/glnxa64/libmwfoundation_crash_handling.so
patchelf --clear-execstack /home/user/.MathWorks/ServiceHost/-mw_shared_installs/v2024.13.0.2/bin/glnxa64/mathworksservicehost/rcf/matlabconnector/serviceprocess/rcf/service/libmwmshrcfservice.so

replace "user" with your own user, and v2024.13.0.2 with your own version.
the 2nd may not be needed.

Thank you V1del!

Last edited by LyCC (2025-02-07 07:38:42)

Offline

#11 2025-02-06 22:39:11

MrMountainhome
Member
From: Germany
Registered: 2025-02-05
Posts: 2

Re: Problem with Matlab 'Service'

Thank you all so much. The patch does work. (I had to change to my respective Matlab Version in the Filepath to v.2024.11.0.2).

Last edited by MrMountainhome (2025-02-06 22:39:46)

Offline

#12 2025-02-20 18:10:36

DotProduct
Member
Registered: 2025-02-20
Posts: 1

Re: Problem with Matlab 'Service'

I have just run into this issue today. I figured it was caused by the new glibc 2.41 issue.

LyCC wrote:
patchelf --clear-execstack /home/user/.MathWorks/ServiceHost/-mw_shared_installs/v2024.13.0.2/bin/glnxa64/libmwfoundation_crash_handling.so
patchelf --clear-execstack /home/user/.MathWorks/ServiceHost/-mw_shared_installs/v2024.13.0.2/bin/glnxa64/mathworksservicehost/rcf/matlabconnector/serviceprocess/rcf/service/libmwmshrcfservice.so

the 2nd may not be needed.


Personally I started by running `execstack -c` on the second file first because that was the only file that matlab reported having issues loading.

Alone it didn't work but after seeing your message, I applied `execstack -c` on the other file and it solved it so thank you.

Also for those trying to apply my solution, I installed execstack from the AUR.

Offline

#13 2025-03-04 09:27:51

Indecisive
Member
Registered: 2021-03-19
Posts: 6

Re: Problem with Matlab 'Service'

This works for me, but I can no longer install matlab addons through the addon explorer. Instead, I just get:

Mar 04 03:19:27 arch-pc matlab.desktop[7058]: Launching updater executable
Mar 04 03:19:27 arch-pc matlab.desktop[9387]: An unexpected error has occurred.
Mar 04 03:19:27 arch-pc matlab.desktop[9387]: To resolve this issue, contact <a href="https://www.mathworks.com/pi_gene_mci_glnxa64">Technical Support</a>.

in the journal.

Offline

Board footer

Powered by FluxBB