Closed Naetmul closed 5 months ago
Same here. In my case, the Matlab process has 2 subprocesses, mwdocsearch.exe
and conhost.exe
.
Hi @Naetmul, I believe this should be improved in the newest version of the extension (v1.2.1). Can you try this out and let us know if you see a reduction in leaking MATLAB instances?
Thanks!
Thank you for the update regarding the newest version (v1.2.1) of the extension. I am currently using a different system (Windows 11), with the updated version of the extension, and I can confirm that the issue of lingering MATLAB processes does not occur on this system.
This observation suggests that the improvements might be effective. However, as the conditions differ from my original setup, I cannot confirm this conclusively.
Thank you for trying this out!
Closing this issue for now, as this should have been improved. I am happy to reopen if more reports of this arise.
Describe the bug The background MATLAB instance does not always terminate when VS Code is closed. This leads to accumulated MATLAB processes occupying RAM and virtual memory after multiple instances of opening and closing VS Code.
To Reproduce Steps to reproduce the behavior:
"D:\Program Files\MATLAB\R2023a\bin\win64\MATLAB.exe" "-log" "-noAppIcon" "-nosplash" "-r" "addpath(fullfile('%USERPROFILE%\.vscode-insiders\extensions\mathworks.language-matlab-1.1.3\server\out', '..', 'matlab')); initmatlabls('%USERPROFILE%\AppData\Local\Temp\matlabls_?????\matlabls_conn.json')" "-useStartupFolderPref" "-noDisplayDesktop" ""
) is still running in the background. This does not always occur, but it happens frequently.Expected behavior When VS Code is closed, the background MATLAB instance should also terminate and not remain in the background.
Screenshots
Useful Information
Additional context The extension is enabled for a workspace.
MATLAB version: R2023a Update 5 (9.14.0.2337262) Extension version: v1.1.3
I am using VS Code Insiders.