How to run MATLAB Runtime on Ubuntu Server 18.0.4?

1 回表示 (過去 30 日間)
Kimmo Nöjd
Kimmo Nöjd 2019 年 1 月 23 日
コメント済み: Kimmo Nöjd 2019 年 1 月 23 日
I have built a C++ application which uses shared MATLAB C++ libraries to do some calculations. The application runs smoothly on my development machine (Ubuntu Desktop 18.0.4), but doesn't start without errors on production environment (Ubuntu Server 18.0.4).
Runtime is initialized with -nojvm and -nodisplay options during the startup of the application, which should prevent the loading of display functionality as Server usually doesn't have those.
When I try to launch the app on Server, it crashes during Runtime initialization:
-------------------------------------------------------------------------
std::terminate() detected at <insert current timestamp here>
-------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
GNU C Library : 2.27 stable
MATLAB Architecture : glnxa64
MATLAB Root : /usr/local/MATLAB/MATLAB_Runtime/v95
MATLAB Version : 9.5.0.944444 (R2018b)
Operating System : Ubuntu 18.04.1 LTS
Process ID : 13781
Processor ID : x86 Family 6 Model 158 Stepping 9, GenuineIntel
Static TLS mitigation : Disabled: Unable to open display
Fault Count : 1
Any ideas how to solve this? Is it actually possible to run Runtime without any display functionality on Ubuntu Server or is there some I should install?
  1 件のコメント
Kimmo Nöjd
Kimmo Nöjd 2019 年 1 月 23 日
More info about the issue. I commented from code all the shared C++ library initilizations and now the Runtime itself starts successfully, but it's the initialization of the shared C++ library which causes the above error. And it seems that you cannot build shared C++ libraries with -nodisplay nor -nojvm options to prevent display and java from loading.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by