当前位置: 首页 > 工具软件 > matlab-on-aws > 使用案例 >

matlab Runtime R2017b在centos7中部署运行的问题

罗新
2023-12-01

在使用到MCR时,发现Matla Runtime R2017b在Centos7.5.1804版本中是会报错的,报错信息如:

------------------------------------------------------------------------
          std::terminate() detected at Mon Dec 10 08:40:05 2018
------------------------------------------------------------------------

Configuration:
  Crash Decoding      : Disabled - No sandbox or build area path
  Crash Mode          : continue (default)
  Default Encoding    : UTF-8
  GNU C Library       : 2.17 stable
  Host Name           : ecs-test.novalocal
  MATLAB Architecture : glnxa64
  MATLAB Root         : /usr/local/MATLAB/MATLAB_Runtime/v93
  MATLAB Version      : 9.3.0.713579 (R2017b)
  Operating System    : Linux 3.10.0-862.9.1.el7.x86_64 #1 SMP Mon Jul 16 16:29:36 UTC 2018 x86_64
  Processor ID        : x86 Family 6 Model 85 Stepping 4, GenuineIntel

Fault Count: 1


Abnormal termination:
std::terminate()

Register State (captured):
  RAX = 0000000000000001  RBX = 00007f12851472c8
  RCX = 000000000000ffd7  RDX = 00007f1285138360
  RSP = 00007f12868a2550  RBP = 00007f12868a2910
  RSI = 00007f1284efa7d6  RDI = 00007f12868a2560

   R8 = 00007f12851472c8   R9 = 00007f128544e390
  R10 = 00007f12eb44988a  R11 = 7461747300000000
  R12 = 00007f1285157358  R13 = 00007f12868a2d00
  R14 = 0000000000000002  R15 = 00007f12868a3620

  RIP = 00007f1284e6eafe  EFL = 0000000000000000

   CS = 0000   FS = 0000   GS = 0000

Stack Trace (captured):
[  0] 0x00007f1284e68f33                             bin/glnxa64/libmwfl.so+00884531
[  1] 0x00007f1284e68f8c                             bin/glnxa64/libmwfl.so+00884620 _ZN10foundation4core4diag15stacktrace_base7captureEm+00000028
[  2] 0x00007f1284e6b562                             bin/glnxa64/libmwfl.so+00894306
[  3] 0x00007f123afd0f1a                            bin/glnxa64/libmwmcr.so+00806682
[  4] 0x00007f123afd2c88                            bin/glnxa64/libmwmcr.so+00814216
[  5] 0x00007f123afd2e6a                            bin/glnxa64/libmwmcr.so+00814698
[  6] 0x00007f123afd33cc                            bin/glnxa64/libmwmcr.so+00816076
[  7] 0x00007f123afd3f57                            bin/glnxa64/libmwmcr.so+00819031
[  8] 0x00007f12851b7646 /usr/local/MATLAB/MATLAB_Runtime/v93/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6+00386630
[  9] 0x00007f12851b7691 /usr/local/MATLAB/MATLAB_Runtime/v93/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6+00386705
[ 10] 0x00007f12851b78a8 /usr/local/MATLAB/MATLAB_Runtime/v93/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6+00387240
[ 11] 0x00007f123f10bbf3                       bin/glnxa64/libmwservices.so+01887219 _ZNK5boost16exception_detail10clone_implINS0_39current_exception_std_exception_wrapperISt13runtime_errorEEE7rethrowEv+00000195
[ 12] 0x00007f123f110aaa                       bin/glnxa64/libmwservices.so+01907370 _ZN5boost6detail17shared_state_base13wait_internalERNS_11unique_lockINS_5mutexEEEb+00000538
[ 13] 0x00007f123e264321                         bin/glnxa64/libmwmclmcr.so+01737505 _ZN5boost13unique_futureINS_10shared_ptrIN3mvm3MVMEEEE3getEv+00000113
[ 14] 0x00007f123e262e22                         bin/glnxa64/libmwmclmcr.so+01732130
[ 15] 0x00007f123e24085f                         bin/glnxa64/libmwmclmcr.so+01591391
[ 16] 0x00007f123e2fb11b                         bin/glnxa64/libmwmclmcr.so+02355483
[ 17] 0x00007f123e2fb747                         bin/glnxa64/libmwmclmcr.so+02357063 _Z30mclInitializeComponentInstanceRKN5boost8functionIFiPKcEEES6_NS_9function0INS_10shared_ptrI21mclExtractedComponentEEEE+00000999
[ 18] 0x00007f123fd66670                        bin/glnxa64/libnativemcl.so+01484400 Java_com_mathworks_toolbox_javabuilder_internal_MWMCR_mclInitializeComponentInstance+00002208
[ 19] 0x00007f12d5017774                                   <unknown-module>+00000000
[ 20] 0x00007f12d5007d80                                   <unknown-module>+00000000
[ 21] 0x00007f12d5007d80                                   <unknown-module>+00000000
[ 22] 0x00007f12d50004e7                                   <unknown-module>+00000000
[ 23] 0x00007f12eaa2fe96 /usr/java/jdk1.8.0_144/jre/lib/amd64/server/libjvm.so+06897302
[ 24] 0x00007f12ead3c447 /usr/java/jdk1.8.0_144/jre/lib/amd64/server/libjvm.so+10093639
[ 25] 0x00007f12ead3fb57 /usr/java/jdk1.8.0_144/jre/lib/amd64/server/libjvm.so+10107735
[ 26] 0x00007f12eaac354b /usr/java/jdk1.8.0_144/jre/lib/amd64/server/libjvm.so+07501131 JVM_InvokeMethod+00000619
[ 27] 0x00007f12d56d956d                                   <unknown-module>+00000000
[ 28] 0x00007f12d56dab14                                   <unknown-module>+00000000

根据这个链接:https://ww2.mathworks.cn/matlabcentral/answers/414983-why-does-my-complied-matlab-application-crash-on-aws 找到了临时解决方案:

yum install -y mesa-libGL libXmu
 类似资料: