mathworks / matlab-proxy

Python® package enables you to open a MATLAB® desktop in a web browser tab.
Other
48 stars 23 forks source link

[Can't stop MATLAB] #44

Open Kubadrew opened 6 days ago

Kubadrew commented 6 days ago

Summary

I can't Stop MATLAB and matlab-proxy-app from my browser.

MATLAB instance is down but matlab-proxy-app shows MATALB Status as Stopping on status info screen.

In terminal I see repeating messages: MATLABProxyApp - DEBUG - track_embedded_connector_state:: MATLAB Embedded Connector is up, not checking for any errors in MATLABs stderr pipe. Sleeping for 10 seconds...

During troubleshooting I found that there are MathWorksServiceHost services that still running after MATLAB is stopped. Killing MathWorksServiceHost service allow matlab-proxy-app to change MATLAB status to 'Not running'. After this it's possible to shutdown matlab-proxy-app too.

Can you please take a look and investigate? ps_aux.txt log_INFO.txt

Browser(s) used

Chrome

Script output

============================ MATLAB

matlab - /usr/local/bin/matlab OK

============================ matlab-proxy-app

matlab-proxy-app - /usr/local/bin/matlab-proxy-app OK

============================ Python and pip executables

python - None  X Recommendation: python is not installed. Please install python.

pip - /usr/local/bin/pip OK

pip 24.3.1 from /usr/local/lib/python3.11/dist-packages/pip (python 3.11)

python3 - /usr/local/bin/python3 OK

Python 3.11.10

============================ Xvfb

Xvfb - /usr/bin/Xvfb OK

============================ OS information

Linux 5.15.153.1-microsoft-standard-WSL2 Linux-5.15.153.1-microsoft-standard-WSL2-x86_64-with-glibc2.35 uname_result(system='Linux', node='cce96ba50a95', release='5.15.153.1-microsoft-standard-WSL2', version='#1 SMP Fri Mar 29 23:14:13 UTC 2024', machine='x86_64')

============================ Conda information

conda - None

============================ Installed packages

/bin/sh: 1: python: not found

============================ Environment variables

MWI_BASE_URL=/matlab MWI_MATLAB_STARTUP_SCRIPT=matlab.engine.shareEngine('MATLAB_GUI') MWI_APP_PORT=8888 MWI_LOG_FILE=/tmp/matlab_proxy_logs.txt MATLAB_IMAGE_VERSION=1.1.0_rc0_debug3 MATLAB_ENGINE_SESSION=MATLAB_GUI MWI_LOG_LEVEL=DEBUG

============================ matlab-proxy logs