Skip to content

The trouble when I ran test_gerad_norm.m #150

Open
@Lht97

Description

@Lht97

Hi,

I meet the following problem when using the MATLAB interface of NOMAD. The version of MATLAB I used is R2023a, and the version of NOMAD I used is NOMAD 4. My computer system is Ubuntu 22.04.3 LTS. After following the installation instructions, when I try to run test_gerad_norm.m under /home/<me>/Documents/nomad, it shows me the error:

--------------------------------------------------------------------------------
             std::terminate() detected at 2023-09-04 11:26:06 +0800
--------------------------------------------------------------------------------

Configuration:
  Crash Decoding           : Disabled - No sandbox or build area path
  Crash Mode               : continue (default)
  Default Encoding         : UTF-8
  Deployed                 : false
  Desktop Environment      : ubuntu:GNOME
  GNU C Library            : 2.35 stable
  Graphics Driver          : Uninitialized software 
  Graphics card 1          : 0x8086 ( 0x8086 ) 0x9a49 Version 0.0.0.0 (0-0-0)
  Interpreter 0            : Executing request: 73657474696E67736170692F73657474696E67734D50726F78792E637070
  Java Version             : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
  MATLAB Architecture      : glnxa64
  MATLAB Entitlement ID    : 11507760
  MATLAB Root              : /usr/local/MATLAB/R2023a
  MATLAB Version           : 9.14.0.2306882 (R2023a) Update 4
  OpenGL                   : software
  Operating System         : Ubuntu 22.04.3 LTS
  Process ID               : 377594
  Processor ID             : x86 Family 6 Model 140 Stepping 1, GenuineIntel
  Session Key              : 4e65ffdc-f755-4c50-8f44-15f339003532
  Window System            : The X.Org Foundation (12201001), display :0

Fault Count: 1


Abnormal termination:
std::terminate()

Current Thread: 'MCR 0 interpret' id 140032731723328

Register State (captured):
  RAX = 0000000000000000  RBX = 00007f5ca257c2c8
  RCX = 0000000000000000  RDX = 00007f5ca2575ec0
  RSP = 00007f5be93ad530  RBP = 00007f5be93ad910
  RSI = 00007f5ca255c705  RDI = 00007f5be93ad540

   R8 = 0000000000000000   R9 = 00007f5be93ad820
  R10 = 0000000000000000  R11 = 0000000000000000
  R12 = 00007f5ca258c348  R13 = 00007f5be93adde0
  R14 = 00007f5be93ad970  R15 = 0000000000000000

  RIP = 00007f5ca2509d9f  EFL = 0000000000000000

   CS = 0000   FS = 0000   GS = 0000

Stack Trace (captured):
[  0] 0x00007f5ca25030e3    /usr/local/MATLAB/R2023a/bin/glnxa64/libmwfl.so+00319715
[  1] 0x00007f5ca25032dc    /usr/local/MATLAB/R2023a/bin/glnxa64/libmwfl.so+00320220 _ZN10foundation4core4diag15stacktrace_base7captureEm+00000028
[  2] 0x00007f5ca2505a78    /usr/local/MATLAB/R2023a/bin/glnxa64/libmwfl.so+00330360
[  3] 0x00007f5ca2505d13    /usr/local/MATLAB/R2023a/bin/glnxa64/libmwfl.so+00331027
[  4] 0x00007f5c96456582   /usr/local/MATLAB/R2023a/bin/glnxa64/libmwmcr.so+01090946
[  5] 0x00007f5c96459ecf   /usr/local/MATLAB/R2023a/bin/glnxa64/libmwmcr.so+01105615
[  6] 0x00007f5c9645a088   /usr/local/MATLAB/R2023a/bin/glnxa64/libmwmcr.so+01106056
[  7] 0x00007f5c9645a51d   /usr/local/MATLAB/R2023a/bin/glnxa64/libmwmcr.so+01107229
[  8] 0x00007f5ca14d77b6 /usr/local/MATLAB/R2023a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6+00710582
[  9] 0x00007f5ca14d7821 /usr/local/MATLAB/R2023a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6+00710689
[ 10] 0x00007f5ca14d7ab4 /usr/local/MATLAB/R2023a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6+00711348
[ 11] 0x00007f5afd0ec2bf /home/<me>/Documents/nomad/build/release/src/libnomadAlgos.so.4.3+03064511 _ZN9NOMAD_4_34Step13debugSegFaultEi+00000285
[ 12] 0x00007f5ca1242520                    /lib/x86_64-linux-gnu/libc.so.6+00271648
[ 13] 0x00007f5c51f168a5 /usr/local/MATLAB/R2023a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+09529509
[ 14] 0x00007f5c520a43cb /usr/local/MATLAB/R2023a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+11158475
[ 15] 0x00007f5bed4316ea                                   <unknown-module>+00000000
[ 16] 0x00007f5bee91ef80                                   <unknown-module>+00000000

I ran the following to install NOMAD:

cmake -DTEST_OPENMP=OFF -DBUILD_INTERFACE_MATLAB=ON -DBUILD_INTERFACE_PYTHON=ON -S . -B build/release
cmake --build build/release
cmake --install build/release

I added the following to the MATLAB path:

/home/<me>/Documents/nomad/build/release/lib
/home/<me>/Documents/nomad/build/release/interfaces/Matlab_MEX

The compiler I am using is GCC version 10.5.0.

Do you have any idea how to solve this issue?

Thank you in advance for your help,
Cheers,
Haitian.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions