Matlab 2025 crashing when running script through ssh

When I ssh into my desktop computer which is running matlab 2025, and execute a matab script, eg running this command:
matlab -nodisplay -nosplash -nodesktop -r "run('/home/user/run_script.m');exit;"
matlab unceremoniously crashes. Screenshots attached.
This only started happening after updating to Matlab 2025 (so I could use the Deep Learning toolbox).
Please help! This makes it impossible to run any scripts remotely.

3 件のコメント

Meg Noah
Meg Noah 2025 年 8 月 10 日
When you ssh did you use any options, for example, ssh -XY and then not the nodisplay option? Qt platform is a GUI, right?
Anne
Anne 2025 年 8 月 11 日
MATLAB 2025 crashes when running over SSH with the -nodisplay -nosplash -nodesktop options. Is there a way to configure it to ignore the Among Us Qt platform plugin and just run pure scripts?
Veronica
Veronica 2025 年 8 月 20 日
@Meg Noah I didn't use any of the -XY tags initially, but using -XY actually solves this issue for the specific script I'm running! thanks for the idea :)

サインインしてコメントする。

回答 (1 件)

Ronit
Ronit 2025 年 8 月 13 日

0 投票

Hello @Veronica,
When running MATLAB R2025a scripts remotely via SSH, crashes may occur if certain required system dependencies are missing, particularly on Linux installations.
Below is a list of the linked dependencies. Please ensure that all of them are installed on your system.
You can also try a workaround by setting:
export QT_QPA_PLATFORM=vnc
This setting can help MATLAB run scripts in environments without a display server.
I hope this helps!

1 件のコメント

Veronica
Veronica 2025 年 8 月 20 日
is this version of Matlab compatible with ubuntu 20.04? the requirements say support for 20.04 will be discontinued in a future release, but a number of the package requirements are not available in 20.04 (also i had to use the listed package requirements for 22.04 because there aren't any listed for 20.04)

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

製品

リリース

R2025a

質問済み:

2025 年 8 月 10 日

コメント済み:

2025 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by