bastibe / transplant

Transplant is an easy way of calling Matlab from Python
https://transplant.readthedocs.io
Other
110 stars 26 forks source link

crash at startup with matlab 2019a (ubuntu derivative) #75

Closed kupiqu closed 5 years ago

kupiqu commented 5 years ago

It crashes with matlab's libraries, as well as with system's and conda's. I'm out of ideas...

                            < M A T L A B (R) >
                  Copyright 1984-2019 The MathWorks, Inc.
                  R2019a (9.6.0.1072779) 64-bit (glnxa64)
                               March 8, 2019

To get started, type doc.
For product information, visit www.mathworks.com.

--------------------------------------------------------------------------------
        std::terminate() detected at dc. d’abr. 17 09:07:48 2019 -0400
--------------------------------------------------------------------------------

Configuration:
  Crash Decoding           : Disabled - No sandbox or build area path
  Crash Mode               : continue (default)
  Default Encoding         : UTF-8
  Deployed                 : false
  Desktop Environment      : KDE
  GNU C Library            : 2.27 stable
  Graphics Driver          : Unknown hardware 
  Graphics card 1          : 0x8086 ( 0x8086 ) 0x5917 Version 0.0.0.0 (0-0-0)
  Java Version             : Java 1.8.0_181-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
  MATLAB Architecture      : glnxa64
  MATLAB Entitlement ID    : 3633855
  MATLAB Root              : /home/matlab/Matlab2019a
  MATLAB Version           : 9.6.0.1072779 (R2019a)
  OpenGL                   : hardware
  Operating System         : KDE neon User Edition 5.15
  Process ID               : 21724
  Processor ID             : x86 Family 6 Model 142 Stepping 10, GenuineIntel
  Session Key              : 2180ea6d-ca6a-433b-8a2d-1bd2e80cd443
  Static TLS mitigation    : Enabled: Full
  Window System            : The X.Org Foundation (11906000), display :0

Fault Count: 1

Abnormal termination:
std::terminate()

Register State (captured):
  RAX = 00000000f574f1c0  RBX = 00007fcd132b4d98
  RCX = 0000000000000000  RDX = 00007fcd132b4da0
  RSP = 00007fccf6d80120  RBP = 00007fccf6d804e0
  RSI = 00007fcd1325d3c7  RDI = 00007fccf6d80130

   R8 = 00007fcd132a4d68   R9 = 00007fcd151dea80
  R10 = 00000001000016d0  R11 = 0000000000000000
  R12 = 00007fcd132a4d08  R13 = 00007fccf6d808a0
  R14 = 00007fccf6d80d90  R15 = 00007fccf6d80d60

  RIP = 00007fcd131ad1ae  EFL = 0000000000000000

   CS = 0000   FS = 0000   GS = 0000

Stack Trace (captured):
[  0] 0x00007fcd131a4713    /home/matlab/Matlab2019a/bin/glnxa64/libmwfl.so+00829203
[  1] 0x00007fcd131a490c    /home/matlab/Matlab2019a/bin/glnxa64/libmwfl.so+00829708 _ZN10foundation4core4diag15stacktrace_base7captureEm+00000028
[  2] 0x00007fcd131a7052    /home/matlab/Matlab2019a/bin/glnxa64/libmwfl.so+00839762
[  3] 0x00007fcd04bad553   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+01213779
[  4] 0x00007fcd04bb0157   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+01225047
[  5] 0x00007fcd04bb038a   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+01225610
[  6] 0x00007fcd04bb0951   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+01227089
[  7] 0x00007fcd04bb18d7   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+01231063
[  8] 0x00007fcd15148b16 /home/matlab/Matlab2019a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6+00641814
[  9] 0x00007fcd15147f91 /home/matlab/Matlab2019a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6+00638865
[ 10] 0x00007fcd1514879d /home/matlab/Matlab2019a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6+00640925 __gxx_personality_v0+00000830
[ 11] 0x00007fcd16159f56 /home/matlab/Matlab2019a/bin/glnxa64/../../sys/os/glnxa64/libgcc_s.so.1+00053078
[ 12] 0x00007fcd1615a3e9 /home/matlab/Matlab2019a/bin/glnxa64/../../sys/os/glnxa64/libgcc_s.so.1+00054249 _Unwind_Resume+00000097
[ 13] 0x00007fccf6342405 /home/matlab/Matlab2019a/bin/glnxa64/libmwmcos_impl.so+04649989
[ 14] 0x00007fcd12f58caf      /home/matlab/Matlab2019a/bin/glnxa64/libmx.so+00924847
[ 15] 0x00007fcd12f5a468      /home/matlab/Matlab2019a/bin/glnxa64/libmx.so+00930920
[ 16] 0x00007fcd12f5a512      /home/matlab/Matlab2019a/bin/glnxa64/libmx.so+00931090
[ 17] 0x00007fcd12f5a0ff      /home/matlab/Matlab2019a/bin/glnxa64/libmx.so+00930047
[ 18] 0x00007fccfc812323 /home/matlab/Matlab2019a/bin/glnxa64/libmwlxetypes.so+00238371
[ 19] 0x00007fccfde7b960 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+15214944
[ 20] 0x00007fccfc80fc94 /home/matlab/Matlab2019a/bin/glnxa64/libmwlxetypes.so+00228500
[ 21] 0x00007fccfd6a1143 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+06979907
[ 22] 0x00007fccfd6a321a /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+06988314
[ 23] 0x00007fccfd55573a /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+05621562
[ 24] 0x00007fccfd54b8a2 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+05580962
[ 25] 0x00007fccfd555e76 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+05623414
[ 26] 0x00007fccfd555f76 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+05623670
[ 27] 0x00007fccfd68dcd9 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+06900953
[ 28] 0x00007fccfd691413 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+06915091
[ 29] 0x00007fccfdbf4d61 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+12565857
[ 30] 0x00007fccfdb9e67c /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+12211836
[ 31] 0x00007fccfdba2baf /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+12229551
[ 32] 0x00007fccfdba5eb2 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+12242610
[ 33] 0x00007fccfdc4370f /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+12887823
[ 34] 0x00007fccfdc43b22 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+12888866
[ 35] 0x00007fcd047a1751 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_interpreter.so+01288017 _Z51inEvalCmdWithLocalReturnInDesiredWSAndPublishEventsRKNSt7__cxx1112basic_stringIDsSt11char_traitsIDsESaIDsEEEPibbP15inWorkSpace_tag+00000065
[ 36] 0x00007fcd04cc5caa   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00724138 _ZNK3iqm18InternalEvalPlugin24inEvalCmdWithLocalReturnERKNSt7__cxx1112basic_stringIDsSt11char_traitsIDsESaIDsEEEP15inWorkSpace_tag+00000074
[ 37] 0x00007fcd04cc6f1e   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00728862 _ZN3iqm18InternalEvalPlugin7executeEP15inWorkSpace_tag+00000222
[ 38] 0x00007fcd04b6bdd5   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+00945621
[ 39] 0x00007fcd04cb7f2d   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00667437
[ 40] 0x00007fcd04c98c02   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00539650
[ 41] 0x00007fcd04c98f98   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00540568
[ 42] 0x00007fcd12c2b63c /home/matlab/Matlab2019a/bin/glnxa64/libmwmlutil.so+07378492 _ZNK14cmddistributor16IIPRunNowMessage7deliverERKN10foundation7msg_svc8exchange7RoutingE+00000044
[ 43] 0x00007fcd1377fa0d    /home/matlab/Matlab2019a/bin/glnxa64/libmwms.so+02624013 _ZN10foundation7msg_svc8exchange12MessageQueue7deliverERKN7mwboost10shared_ptrIKNS1_8EnvelopeEEE+00000205
[ 44] 0x00007fcd13780d83    /home/matlab/Matlab2019a/bin/glnxa64/libmwms.so+02628995
[ 45] 0x00007fcd1376bd29    /home/matlab/Matlab2019a/bin/glnxa64/libmwms.so+02542889
[ 46] 0x00007fcd1376d41f    /home/matlab/Matlab2019a/bin/glnxa64/libmwms.so+02548767
[ 47] 0x00007fcd13768b43    /home/matlab/Matlab2019a/bin/glnxa64/libmwms.so+02530115
[ 48] 0x00007fcd12b862b1 /home/matlab/Matlab2019a/bin/glnxa64/libmwmlutil.so+06701745
[ 49] 0x00007fcd12b86552 /home/matlab/Matlab2019a/bin/glnxa64/libmwmlutil.so+06702418
[ 50] 0x00007fcd15f42fc3   /home/matlab/Matlab2019a/bin/glnxa64/libmwmvm.so+03145667 _ZN7mwboost6detail8function26void_function_obj_invoker0INS_3_bi6bind_tINS3_11unspecifiedENS4_IS5_NS_8functionIFvvEEENS3_5list0EEENS3_5list1INS_17reference_wrapperINS_7promiseIvEEEEEEEEvE6invokeERNS1_15function_bufferE+00000035
[ 51] 0x00007fcd15f35287   /home/matlab/Matlab2019a/bin/glnxa64/libmwmvm.so+03089031 _ZN7mwboost13unique_futureIvE3getEv+00001111
[ 52] 0x00007fcd04b29dd5   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+00675285
[ 53] 0x00007fcd15fc396b   /home/matlab/Matlab2019a/bin/glnxa64/libmwmvm.so+03672427 _ZN14cmddistributor15PackagedTaskIIP10invokeFuncIN7mwboost8functionIFvvEEEEENS2_10shared_ptrINS2_13unique_futureIDTclfp_EEEEEERKT_+00000059
[ 54] 0x00007fcd15fc3a58   /home/matlab/Matlab2019a/bin/glnxa64/libmwmvm.so+03672664 _ZNSt17_Function_handlerIFN7mwboost3anyEvEZN14cmddistributor15PackagedTaskIIP10createFuncINS0_8functionIFvvEEEEESt8functionIS2_ET_EUlvE_E9_M_invokeERKSt9_Any_data+00000024
[ 55] 0x00007fcd04cd0dcc   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00769484 _ZN7mwboost6detail8function21function_obj_invoker0ISt8functionIFNS_3anyEvEES4_E6invokeERNS1_15function_bufferE+00000028
[ 56] 0x00007fcd04cd0a85   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00768645 _ZN3iqm18PackagedTaskPlugin7executeEP15inWorkSpace_tag+00000437
[ 57] 0x00007fcd04b6bb35   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+00944949
[ 58] 0x00007fcd04cb7f2d   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00667437
[ 59] 0x00007fcd04c9c8e8   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00555240
[ 60] 0x00007fcd06844eaa /home/matlab/Matlab2019a/bin/glnxa64/libmwbridge.so+00241322
[ 61] 0x00007fcd06845c72 /home/matlab/Matlab2019a/bin/glnxa64/libmwbridge.so+00244850
[ 62] 0x00007fcd0684ec03 /home/matlab/Matlab2019a/bin/glnxa64/libmwbridge.so+00281603
[ 63] 0x00007fcd0684ed89 /home/matlab/Matlab2019a/bin/glnxa64/libmwbridge.so+00281993
[ 64] 0x00007fcd0684f288 /home/matlab/Matlab2019a/bin/glnxa64/libmwbridge.so+00283272 _Z8mnParserv+00000344
[ 65] 0x00007fcd04b7c4f2   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+01012978
[ 66] 0x00007fcd15fc396b   /home/matlab/Matlab2019a/bin/glnxa64/libmwmvm.so+03672427 _ZN14cmddistributor15PackagedTaskIIP10invokeFuncIN7mwboost8functionIFvvEEEEENS2_10shared_ptrINS2_13unique_futureIDTclfp_EEEEEERKT_+00000059
[ 67] 0x00007fcd15fc3a58   /home/matlab/Matlab2019a/bin/glnxa64/libmwmvm.so+03672664 _ZNSt17_Function_handlerIFN7mwboost3anyEvEZN14cmddistributor15PackagedTaskIIP10createFuncINS0_8functionIFvvEEEEESt8functionIS2_ET_EUlvE_E9_M_invokeERKSt9_Any_data+00000024
[ 68] 0x00007fcd04cd0dcc   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00769484 _ZN7mwboost6detail8function21function_obj_invoker0ISt8functionIFNS_3anyEvEES4_E6invokeERNS1_15function_bufferE+00000028
[ 69] 0x00007fcd04cd0a85   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00768645 _ZN3iqm18PackagedTaskPlugin7executeEP15inWorkSpace_tag+00000437
[ 70] 0x00007fcd04b6bb35   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+00944949
[ 71] 0x00007fcd04cb7f2d   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00667437
[ 72] 0x00007fcd04c9aeba   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00548538
[ 73] 0x00007fcd04c9bb2f   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00551727
[ 74] 0x00007fcd04b52e95   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+00843413
[ 75] 0x00007fcd04b534b3   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+00844979
[ 76] 0x00007fcd04b53d24   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+00847140
[ 77] 0x00007fcd14686bdd /home/matlab/Matlab2019a/bin/glnxa64/libmwboost_thread.so.1.65.1+00080861
[ 78] 0x00007fcd151f46db              /lib/x86_64-linux-gnu/libpthread.so.0+00030427
[ 79] 0x00007fcd14ddc88f                    /lib/x86_64-linux-gnu/libc.so.6+01185935 clone+00000063
[ 80] 0x0000000000000000                                   <unknown-module>+00000000
bastibe commented 5 years ago

Thank you for your bug report. I suspect that this might be an incompatibility between Matlab's libc and the system's libc. (Why do they even ship their own libc???) Many people, myself included, like to disable Matlab's own libc because of issues like this. You can do this by (perhaps temporarily) renaming libstdc++ in /home/matlab/Matlab2019a/bin/glnxa64/ (probably).

Does that fix your issue?

kupiqu commented 5 years ago

Unfortunately not. I tried with Matlab's libraries as well as System's and Conda's. Neither worked.

kupiqu commented 5 years ago

Crash with system's libs:

                            < M A T L A B (R) >
                  Copyright 1984-2019 The MathWorks, Inc.
                  R2019a (9.6.0.1072779) 64-bit (glnxa64)
                               March 8, 2019

To get started, type doc.
For product information, visit www.mathworks.com.

--------------------------------------------------------------------------------
        std::terminate() detected at dv. d’abr. 19 17:10:22 2019 -0400
--------------------------------------------------------------------------------

Configuration:
  Crash Decoding           : Disabled - No sandbox or build area path
  Crash Mode               : continue (default)
  Default Encoding         : UTF-8
  Deployed                 : false
  Desktop Environment      : KDE
  GNU C Library            : 2.27 stable
  Graphics Driver          : Unknown hardware 
  Graphics card 1          : 0x8086 ( 0x8086 ) 0x5917 Version 0.0.0.0 (0-0-0)
  Java Version             : Java 1.8.0_181-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
  MATLAB Architecture      : glnxa64
  MATLAB Entitlement ID    : 3633855
  MATLAB Root              : /home/matlab/Matlab2019a
  MATLAB Version           : 9.6.0.1072779 (R2019a)
  OpenGL                   : hardware
  Operating System         : KDE neon User Edition 5.15
  Process ID               : 6094
  Processor ID             : x86 Family 6 Model 142 Stepping 10, GenuineIntel
  Session Key              : 90740a68-71e7-4a28-a516-8ae21cedd0e2
  Static TLS mitigation    : Enabled: Full
  Window System            : The X.Org Foundation (11906000), display :0

Fault Count: 1

Abnormal termination:
std::terminate()

Register State (captured):
  RAX = 000000010000dc88  RBX = 00007fdb56be4d98
  RCX = 000000000000000a  RDX = 00007fdb56bc5e00
  RSP = 00007fdb3a6c50f0  RBP = 00007fdb3a6c54b0
  RSI = 0000000000000000  RDI = 00007fdb3a6c5100

   R8 = 00007fdb56bd4d08   R9 = 00007fdb58f6f660
  R10 = 00007fdb2d6c3000  R11 = 00000000d0079bf8
  R12 = 00007fdb56bd4d08  R13 = 00007fdb3a6c5870
  R14 = 00007fdb3a6c5d60  R15 = 00007fdb3a6c5d30

  RIP = 00007fdb56add1ae  EFL = 00ff00000000ff00

   CS = 0000   FS = ff00   GS = 0000

Stack Trace (captured):
[  0] 0x00007fdb56ad4713    /home/matlab/Matlab2019a/bin/glnxa64/libmwfl.so+00829203
[  1] 0x00007fdb56ad490c    /home/matlab/Matlab2019a/bin/glnxa64/libmwfl.so+00829708 _ZN10foundation4core4diag15stacktrace_base7captureEm+00000028
[  2] 0x00007fdb56ad7052    /home/matlab/Matlab2019a/bin/glnxa64/libmwfl.so+00839762
[  3] 0x00007fdb484f2553   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+01213779
[  4] 0x00007fdb484f5157   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+01225047
[  5] 0x00007fdb484f538a   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+01225610
[  6] 0x00007fdb484f5951   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+01227089
[  7] 0x00007fdb484f68d7   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+01231063
[  8] 0x00007fdb58c86a06           /usr/lib/x86_64-linux-gnu/libstdc++.so.6+00600582
[  9] 0x00007fdb58c85a69           /usr/lib/x86_64-linux-gnu/libstdc++.so.6+00596585
[ 10] 0x00007fdb58c86418           /usr/lib/x86_64-linux-gnu/libstdc++.so.6+00599064 __gxx_personality_v0+00000744
[ 11] 0x00007fdb589ec553                /lib/x86_64-linux-gnu/libgcc_s.so.1+00066899
[ 12] 0x00007fdb589ecdd5                /lib/x86_64-linux-gnu/libgcc_s.so.1+00069077 _Unwind_Resume+00000293
[ 13] 0x00007fdb39c87405 /home/matlab/Matlab2019a/bin/glnxa64/libmwmcos_impl.so+04649989
[ 14] 0x00007fdb56888caf      /home/matlab/Matlab2019a/bin/glnxa64/libmx.so+00924847
[ 15] 0x00007fdb5688a468      /home/matlab/Matlab2019a/bin/glnxa64/libmx.so+00930920
[ 16] 0x00007fdb5688a512      /home/matlab/Matlab2019a/bin/glnxa64/libmx.so+00931090
[ 17] 0x00007fdb5688a0ff      /home/matlab/Matlab2019a/bin/glnxa64/libmx.so+00930047
[ 18] 0x00007fdb40158323 /home/matlab/Matlab2019a/bin/glnxa64/libmwlxetypes.so+00238371
[ 19] 0x00007fdb41ade960 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+15214944
[ 20] 0x00007fdb40155c94 /home/matlab/Matlab2019a/bin/glnxa64/libmwlxetypes.so+00228500
[ 21] 0x00007fdb41304143 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+06979907
[ 22] 0x00007fdb4130621a /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+06988314
[ 23] 0x00007fdb411b873a /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+05621562
[ 24] 0x00007fdb411ae8a2 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+05580962
[ 25] 0x00007fdb411b8e76 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+05623414
[ 26] 0x00007fdb411b8f76 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+05623670
[ 27] 0x00007fdb412f0cd9 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+06900953
[ 28] 0x00007fdb412f4413 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+06915091
[ 29] 0x00007fdb41857d61 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+12565857
[ 30] 0x00007fdb4180167c /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+12211836
[ 31] 0x00007fdb41805baf /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+12229551
[ 32] 0x00007fdb41808eb2 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+12242610
[ 33] 0x00007fdb418a670f /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+12887823
[ 34] 0x00007fdb418a6b22 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+12888866
[ 35] 0x00007fdb43f2b751 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_interpreter.so+01288017 _Z51inEvalCmdWithLocalReturnInDesiredWSAndPublishEventsRKNSt7__cxx1112basic_stringIDsSt11char_traitsIDsESaIDsEEEPibbP15inWorkSpace_tag+00000065
[ 36] 0x00007fdb4860acaa   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00724138 _ZNK3iqm18InternalEvalPlugin24inEvalCmdWithLocalReturnERKNSt7__cxx1112basic_stringIDsSt11char_traitsIDsESaIDsEEEP15inWorkSpace_tag+00000074
[ 37] 0x00007fdb4860bf1e   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00728862 _ZN3iqm18InternalEvalPlugin7executeEP15inWorkSpace_tag+00000222
[ 38] 0x00007fdb484b0dd5   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+00945621
[ 39] 0x00007fdb485fcf2d   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00667437
[ 40] 0x00007fdb485ddc02   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00539650
[ 41] 0x00007fdb485ddf98   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00540568
[ 42] 0x00007fdb5655b63c /home/matlab/Matlab2019a/bin/glnxa64/libmwmlutil.so+07378492 _ZNK14cmddistributor16IIPRunNowMessage7deliverERKN10foundation7msg_svc8exchange7RoutingE+00000044
[ 43] 0x00007fdb570afa0d    /home/matlab/Matlab2019a/bin/glnxa64/libmwms.so+02624013 _ZN10foundation7msg_svc8exchange12MessageQueue7deliverERKN7mwboost10shared_ptrIKNS1_8EnvelopeEEE+00000205
[ 44] 0x00007fdb570b0d83    /home/matlab/Matlab2019a/bin/glnxa64/libmwms.so+02628995
[ 45] 0x00007fdb5709bd29    /home/matlab/Matlab2019a/bin/glnxa64/libmwms.so+02542889
[ 46] 0x00007fdb5709d41f    /home/matlab/Matlab2019a/bin/glnxa64/libmwms.so+02548767
[ 47] 0x00007fdb57098b43    /home/matlab/Matlab2019a/bin/glnxa64/libmwms.so+02530115
[ 48] 0x00007fdb564b62b1 /home/matlab/Matlab2019a/bin/glnxa64/libmwmlutil.so+06701745
[ 49] 0x00007fdb564b6552 /home/matlab/Matlab2019a/bin/glnxa64/libmwmlutil.so+06702418
[ 50] 0x00007fdb59cd2fc3   /home/matlab/Matlab2019a/bin/glnxa64/libmwmvm.so+03145667 _ZN7mwboost6detail8function26void_function_obj_invoker0INS_3_bi6bind_tINS3_11unspecifiedENS4_IS5_NS_8functionIFvvEEENS3_5list0EEENS3_5list1INS_17reference_wrapperINS_7promiseIvEEEEEEEEvE6invokeERNS1_15function_bufferE+00000035
[ 51] 0x00007fdb59cc5287   /home/matlab/Matlab2019a/bin/glnxa64/libmwmvm.so+03089031 _ZN7mwboost13unique_futureIvE3getEv+00001111
[ 52] 0x00007fdb4846edd5   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+00675285
[ 53] 0x00007fdb59d5396b   /home/matlab/Matlab2019a/bin/glnxa64/libmwmvm.so+03672427 _ZN14cmddistributor15PackagedTaskIIP10invokeFuncIN7mwboost8functionIFvvEEEEENS2_10shared_ptrINS2_13unique_futureIDTclfp_EEEEEERKT_+00000059
[ 54] 0x00007fdb59d53a58   /home/matlab/Matlab2019a/bin/glnxa64/libmwmvm.so+03672664 _ZNSt17_Function_handlerIFN7mwboost3anyEvEZN14cmddistributor15PackagedTaskIIP10createFuncINS0_8functionIFvvEEEEESt8functionIS2_ET_EUlvE_E9_M_invokeERKSt9_Any_data+00000024
[ 55] 0x00007fdb48615dcc   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00769484 _ZN7mwboost6detail8function21function_obj_invoker0ISt8functionIFNS_3anyEvEES4_E6invokeERNS1_15function_bufferE+00000028
[ 56] 0x00007fdb48615a85   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00768645 _ZN3iqm18PackagedTaskPlugin7executeEP15inWorkSpace_tag+00000437
[ 57] 0x00007fdb484b0b35   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+00944949
[ 58] 0x00007fdb485fcf2d   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00667437
[ 59] 0x00007fdb485e18e8   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00555240
[ 60] 0x00007fdb4a189eaa /home/matlab/Matlab2019a/bin/glnxa64/libmwbridge.so+00241322
[ 61] 0x00007fdb4a18ac72 /home/matlab/Matlab2019a/bin/glnxa64/libmwbridge.so+00244850
[ 62] 0x00007fdb4a193c03 /home/matlab/Matlab2019a/bin/glnxa64/libmwbridge.so+00281603
[ 63] 0x00007fdb4a193d89 /home/matlab/Matlab2019a/bin/glnxa64/libmwbridge.so+00281993
[ 64] 0x00007fdb4a194288 /home/matlab/Matlab2019a/bin/glnxa64/libmwbridge.so+00283272 _Z8mnParserv+00000344
[ 65] 0x00007fdb484c14f2   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+01012978
[ 66] 0x00007fdb59d5396b   /home/matlab/Matlab2019a/bin/glnxa64/libmwmvm.so+03672427 _ZN14cmddistributor15PackagedTaskIIP10invokeFuncIN7mwboost8functionIFvvEEEEENS2_10shared_ptrINS2_13unique_futureIDTclfp_EEEEEERKT_+00000059
[ 67] 0x00007fdb59d53a58   /home/matlab/Matlab2019a/bin/glnxa64/libmwmvm.so+03672664 _ZNSt17_Function_handlerIFN7mwboost3anyEvEZN14cmddistributor15PackagedTaskIIP10createFuncINS0_8functionIFvvEEEEESt8functionIS2_ET_EUlvE_E9_M_invokeERKSt9_Any_data+00000024
[ 68] 0x00007fdb48615dcc   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00769484 _ZN7mwboost6detail8function21function_obj_invoker0ISt8functionIFNS_3anyEvEES4_E6invokeERNS1_15function_bufferE+00000028
[ 69] 0x00007fdb48615a85   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00768645 _ZN3iqm18PackagedTaskPlugin7executeEP15inWorkSpace_tag+00000437
[ 70] 0x00007fdb484b0b35   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+00944949
[ 71] 0x00007fdb485fcf2d   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00667437
[ 72] 0x00007fdb485dfeba   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00548538
[ 73] 0x00007fdb485e0b2f   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00551727
[ 74] 0x00007fdb48497e95   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+00843413
[ 75] 0x00007fdb484984b3   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+00844979
[ 76] 0x00007fdb48498d24   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+00847140
[ 77] 0x00007fdb57fb6bdd /home/matlab/Matlab2019a/bin/glnxa64/libmwboost_thread.so.1.65.1+00080861
[ 78] 0x00007fdb58f846db              /lib/x86_64-linux-gnu/libpthread.so.0+00030427
[ 79] 0x00007fdb5870c88f                    /lib/x86_64-linux-gnu/libc.so.6+01185935 clone+00000063
[ 80] 0x0000000000000000                                   <unknown-module>+00000000
bastibe commented 5 years ago

Interesting. This is a hard crash, which can only result from the loadlibrary call, because that's the only non-Matlab code in Transplant.

So this must be some kind of incompatibility between your operating system's version of libzmq and Matlab. What version of Matlab and Python are you running?

kupiqu commented 5 years ago

I use Matlab 2019a, zeromq 4.3.1 (conda) / libzmq5 4.2.5 (system), and Python 3.7.1 (conda environment) / Python 3.6.7 (system)

There is no difference betwen trying inside or outside conda's environment.

I guess not, but do you think the following could be of any help?

https://andyljones.tumblr.com/post/135109368968/using-matlab-with-zeromq https://github.com/zeromq/jeromq

kupiqu commented 5 years ago

I manually did the following in matlab and worked:

loadlibrary('libzmq.so.5', 'transplantzmq.h', 'alias', 'libzmq');

bastibe commented 5 years ago

Interesting! Could you check to see whether there is any difference between the system Python with the system's libzmq, vs the conda versions of both?

kupiqu commented 5 years ago

I loaded conda's version of libzmq with no error either. May the crash happen elsewhere?

Could you be a bit more specific in what you'd like me to test to this regard Could you check to see whether there is any difference between the system Python with the system's libzmq, vs the conda versions of both?

kupiqu commented 5 years ago

I added some disp outputs to see what is going on before the crash, perhaps you see sth unexpected that helps to fix the issue:

ZMQ(libname, address) function call
errortext(obj, instruction) function call with instruction:
zmq_socket
errortext(obj, instruction) function call with instruction:
zmq_connect
receive(obj) function call
errortext(obj, instruction) function call with instruction:
zmq_msg_recv
errortext(obj, instruction) function call with instruction:
zmq_msg_close
send(obj,data) function call, with data:
  Columns 1 through 13

   130   164   116   121   112   101   165   118    97   108   117   101   165

  Columns 14 through 26

   118    97   108   117   101   146   172    95    95   102   117   110    99

  Columns 27 through 37

   116   105   111   110    95    95   164   101   118    97   108

errortext(obj, instruction) function call with instruction:
zmq_send
receive(obj) function call
errortext(obj, instruction) function call with instruction:
zmq_msg_recv
errortext(obj, instruction) function call with instruction:
zmq_msg_close
send(obj,data) function call, with data:
  Columns 1 through 13

   130   164   116   121   112   101   165   118    97   108   117   101   165

  Columns 14 through 26

   118    97   108   117   101   203     0     0     0     0     0     0     0

  Column 27

     0

errortext(obj, instruction) function call with instruction:
zmq_send
receive(obj) function call
errortext(obj, instruction) function call with instruction:
zmq_msg_recv
errortext(obj, instruction) function call with instruction:
zmq_msg_close
send(obj,data) function call, with data:
  Columns 1 through 13

   130   164   116   121   112   101   165   118    97   108   117   101   165

  Columns 14 through 26

   118    97   108   117   101   146   172    95    95   102   117   110    99

  Columns 27 through 38

   116   105   111   110    95    95   165   110   117   109   101   108

errortext(obj, instruction) function call with instruction:
zmq_send
receive(obj) function call
errortext(obj, instruction) function call with instruction:
zmq_msg_recv
errortext(obj, instruction) function call with instruction:
zmq_msg_close
send(obj,data) function call, with data:
  Columns 1 through 13

   130   164   116   121   112   101   165   118    97   108   117   101   165

  Columns 14 through 26

   118    97   108   117   101   203    64     8     0     0     0     0     0

  Column 27

     0

errortext(obj, instruction) function call with instruction:
zmq_send
receive(obj) function call
errortext(obj, instruction) function call with instruction:
zmq_msg_recv
errortext(obj, instruction) function call with instruction:
zmq_msg_close
send(obj,data) function call, with data:
  Columns 1 through 13

   130   164   116   121   112   101   165   118    97   108   117   101   165

  Columns 14 through 26

   118    97   108   117   101   146   172    95    95   102   117   110    99

  Columns 27 through 38

   116   105   111   110    95    95   165   109    97   103   105    99

errortext(obj, instruction) function call with instruction:
zmq_send
receive(obj) function call
errortext(obj, instruction) function call with instruction:
zmq_msg_recv
errortext(obj, instruction) function call with instruction:
zmq_msg_close
send(obj,data) function call, with data:
  Columns 1 through 13

   130   164   116   121   112   101   165   118    97   108   117   101   165

  Columns 14 through 26

   118    97   108   117   101   148   170    95    95   109    97   116   114

  Columns 27 through 39

   105   120    95    95   167   102   108   111    97   116    54    52   146

  Columns 40 through 52

   203    64     0     0     0     0     0     0     0   203    64     0     0

  Columns 53 through 65

     0     0     0     0     0   196    32     0     0     0     0     0     0

  Columns 66 through 78

   240    63     0     0     0     0     0     0     8    64     0     0     0

  Columns 79 through 91

     0     0     0    16    64     0     0     0     0     0     0     0    64

errortext(obj, instruction) function call with instruction:
zmq_send
receive(obj) function call
errortext(obj, instruction) function call with instruction:
zmq_msg_recv
errortext(obj, instruction) function call with instruction:
zmq_msg_close
send(obj,data) function call, with data:
  Columns 1 through 13

   130   164   116   121   112   101   165   118    97   108   117   101   165

  Columns 14 through 26

   118    97   108   117   101   146   172    95    95   102   117   110    99

  Columns 27 through 36

   116   105   111   110    95    95   163   102   102   116

errortext(obj, instruction) function call with instruction:
zmq_send
receive(obj) function call
errortext(obj, instruction) function call with instruction:
zmq_msg_recv
errortext(obj, instruction) function call with instruction:
zmq_msg_close
send(obj,data) function call, with data:
  Columns 1 through 13

   130   164   116   121   112   101   165   118    97   108   117   101   165

  Columns 14 through 26

   118    97   108   117   101   148   170    95    95   109    97   116   114

  Columns 27 through 39

   105   120    95    95   170    99   111   109   112   108   101   120    49

  Columns 40 through 52

    50    56   146   203    63   240     0     0     0     0     0     0   203

  Columns 53 through 65

    64    89     0     0     0     0     0     0   197     6    64    43   129

  Columns 66 through 78

    16    11    19   106    16    64     0     0     0     0     0     0     0

  Columns 79 through 91

     0    10    12     7    82    85   130    50   192   245   240   153    18

  Columns 92 through 104

   201   249     5   192    33   242    34    29   204   238     3    64     0

  Columns 105 through 117

   164   220   199   234   128   122   191   196   142    74    45   142   162

  Columns 118 through 130

    10   192   234   153   228   253    34   117    24    64   156   112   195

  Columns 131 through 143

    72   129   255   234    63   152   135    53    14    61     7    43   192

  Columns 144 through 156

   146    13   155    72   168    57     1    64   180   206   184   139    74

  Columns 157 through 169

   148    16   192   226   131   136   187   133   232   246   191    96    15

  Columns 170 through 182

   134   242   134   254   255    63    83   253    57   250   242   247    40

  Columns 183 through 195

   192    94   130   238    62   204    19    20   192   146   248    26   122

  Columns 196 through 208

   171   205    24    64   140   101   121    63   136   123    17   192   170

  Columns 209 through 221

     5   203   249   181   139    21    64    86   214   127   129    11   147

  Columns 222 through 234

    29    64    54   197   146   160   245   236    43    64    78    27   175

  Columns 235 through 247

   141   242    91    23   192   162   194   149    88    60    76    55    64

  Columns 248 through 260

    82    40   206   209    57   228    23    64   102   146   136    90   147

  Columns 261 through 273

   251    33    64   248    50   116    88   213   127   214   191   228   237

  Columns 274 through 286

   243   162   205   243     1    64    96    20   136   109    48   107    18

  Columns 287 through 299

    64   184   211   198    16   171   215    16    64   228   254   132    66

  Columns 300 through 312

   236    87    21    64    64    55   177    94   165     8    28   192   128

  Columns 313 through 325

   199    26    26   198   207   170    63   112    19    57    80   224    77

  Columns 326 through 338

    24    64   200    85    17   224   240   176   248   191   220   211    78

  Columns 339 through 351

    54   133   222    31   192   241    57    94    16   215     0    15    64

  Columns 352 through 364

    52    46     6    43    40   213   223   191   128   236   129   242   206

  Columns 365 through 377

    52   221    63   246     7   121   188    66    39     2    64    31   122

  Columns 378 through 390

   175   201    64   111     0   192   166   184   204   181   232   216    34

  Columns 391 through 403

   192   154   179   213   142   207   203    35    64   170   122    70    25

  Columns 404 through 416

   116   121    41   192   236   212   157    96    23   128   227    63    68

  Columns 417 through 429

   116   185    97    20   224     8   192   142   246   180   130    12   104

  Columns 430 through 442

    36   192   132    55   131    64    91   245   242    63     8   227   112

  Columns 443 through 455

   183    34   169     6   192   186   191    51     7   238   121    16   192

  Columns 456 through 468

   112    50   111   149   255   197   237   191   234    79   204    69   151

  Columns 469 through 481

    76    36    64   106   195   229   104    95    76   255   191   166   177

  Columns 482 through 494

   233   147    22   128    22    64    74   188   201   205   122   131    24

  Columns 495 through 507

    64     0    26   200   236    35   103   137   191   180   193   255   104

  Columns 508 through 520

   186   140     9   192    48   205   255    36   169    73    28   192    35

  Columns 521 through 533

    17    11    24   170    58    16    64   166   150   225   137   161    28

  Columns 534 through 546

    30   192    24    10    31    14   191   167    28   192    73   243   222

  Columns 547 through 559

    68    64    82    48   192   228    35   233    52   234   122   242   191

  Columns 560 through 572

   158   109   112   106   108    46    21   192   212     6   120    23   206

  Columns 573 through 585

    77    24    64   110    79   185   139   225   170    31   192   235    95

  Columns 586 through 598

   167    54   117   138    19    64   187   135    85   194   103   183    33

  Columns 599 through 611

    64   206     7   174   231    49    84    12    64     0    25   100   124

  Columns 612 through 624

   234   129   195    63    14    19   169   174    22   208    39    64    84

  Columns 625 through 637

    43   229   227   224   179   225   191    80   136   248   181   109   205

  Columns 638 through 650

   224    63   122   167    16   178    87    89    35   192   219    60   212

  Columns 651 through 663

   246    25    20    19    64   237    34   214    50   178     6    31   192

  Columns 664 through 676

    96   187   155   124   154   231    11    64   150   135     5   136   201

  Columns 677 through 689

   166   250   191   192     3   203   201    16   224    23    64   216   128

  Columns 690 through 702

   244    88   192   208    13    64    32     8    88   185   135   200   231

  Columns 703 through 715

   191   113   198   173   153   206    60    19   192    12   178   224    25

  Columns 716 through 728

     8   105    48   192   236   125    81   105    92   156    10    64    82

  Columns 729 through 741

    73   203   239    79     8    42   192   218   188   105   204   178    69

  Columns 742 through 754

    23   192    10     6   183   236    51   125    32   192    46   104    50

  Columns 755 through 767

    28   226   167    16   192    68   250   160     4    40    37    17   192

  Columns 768 through 780

     4    92   246   103   164   178    37   192     9   136   187    13    34

  Columns 781 through 793

    46    47   192   195    22   173   177   113   221   246    63   178     8

  Columns 794 through 806

    24    86    64    65    26    64   128   124   106   126   171     3   249

  Columns 807 through 819

    63     3    44    64    72    98   173    35    64    62    80   179   238

  Columns 820 through 832

   110    47     8    64   208    60   196   244    82   157    28   192   104

  Columns 833 through 845

   175    23   101    24   241     9    64    98    96   115   218   207    85

  Columns 846 through 858

     5   192   102   128    40    48   112   235    23   192   180   197    45

  Columns 859 through 871

   129   242   102   246    63   176    52    24   130   215    91   211    63

  Columns 872 through 884

     0     0     0     0     0     0     0     0   102   128    40    48   112

  Columns 885 through 897

   235    23   192   180   197    45   129   242   102   246   191   104   175

  Columns 898 through 910

    23   101    24   241     9    64    98    96   115   218   207    85     5

  Columns 911 through 923

    64    62    80   179   238   110    47     8    64   208    60   196   244

  Columns 924 through 936

    82   157    28    64   128   124   106   126   171     3   249    63     3

  Columns 937 through 949

    44    64    72    98   173    35   192   195    22   173   177   113   221

  Columns 950 through 962

   246    63   178     8    24    86    64    65    26   192     4    92   246

  Columns 963 through 975

   103   164   178    37   192     9   136   187    13    34    46    47    64

  Columns 976 through 988

    46   104    50    28   226   167    16   192    68   250   160     4    40

  Columns 989 through 1001

    37    17    64   218   188   105   204   178    69    23   192    10     6

  Columns 1002 through 1014

   183   236    51   125    32    64   236   125    81   105    92   156    10

  Columns 1015 through 1027

    64    82    73   203   239    79     8    42    64   113   198   173   153

  Columns 1028 through 1040

   206    60    19   192    12   178   224    25     8   105    48    64   216

  Columns 1041 through 1053

   128   244    88   192   208    13    64    32     8    88   185   135   200

  Columns 1054 through 1066

   231    63   150   135     5   136   201   166   250   191   192     3   203

  Columns 1067 through 1079

   201    16   224    23   192   237    34   214    50   178     6    31   192

  Columns 1080 through 1092

    96   187   155   124   154   231    11   192   122   167    16   178    87

  Columns 1093 through 1105

    89    35   192   219    60   212   246    25    20    19   192    84    43

  Columns 1106 through 1118

   229   227   224   179   225   191    80   136   248   181   109   205   224

  Columns 1119 through 1131

   191     0    25   100   124   234   129   195    63    14    19   169   174

  Columns 1132 through 1144

    22   208    39   192   187   135    85   194   103   183    33    64   206

  Columns 1145 through 1157

     7   174   231    49    84    12   192   110    79   185   139   225   170

  Columns 1158 through 1170

    31   192   235    95   167    54   117   138    19   192   158   109   112

  Columns 1171 through 1183

   106   108    46    21   192   212     6   120    23   206    77    24   192

  Columns 1184 through 1196

    73   243   222    68    64    82    48   192   228    35   233    52   234

  Columns 1197 through 1209

   122   242    63   166   150   225   137   161    28    30   192    24    10

  Columns 1210 through 1222

    31    14   191   167    28    64    48   205   255    36   169    73    28

  Columns 1223 through 1235

   192    35    17    11    24   170    58    16   192     0    26   200   236

  Columns 1236 through 1248

    35   103   137   191   180   193   255   104   186   140     9    64   166

  Columns 1249 through 1261

   177   233   147    22   128    22    64    74   188   201   205   122   131

  Columns 1262 through 1274

    24   192   234    79   204    69   151    76    36    64   106   195   229

  Columns 1275 through 1287

   104    95    76   255    63   186   191    51     7   238   121    16   192

  Columns 1288 through 1300

   112    50   111   149   255   197   237    63   132    55   131    64    91

  Columns 1301 through 1313

   245   242    63     8   227   112   183    34   169     6    64    68   116

  Columns 1314 through 1326

   185    97    20   224     8   192   142   246   180   130    12   104    36

  Columns 1327 through 1339

    64   170   122    70    25   116   121    41   192   236   212   157    96

  Columns 1340 through 1352

    23   128   227   191   166   184   204   181   232   216    34   192   154

  Columns 1353 through 1365

   179   213   142   207   203    35   192   246     7   121   188    66    39

  Columns 1366 through 1378

     2    64    31   122   175   201    64   111     0    64    52    46     6

  Columns 1379 through 1391

    43    40   213   223   191   128   236   129   242   206    52   221   191

  Columns 1392 through 1404

   220   211    78    54   133   222    31   192   241    57    94    16   215

  Columns 1405 through 1417

     0    15   192   112    19    57    80   224    77    24    64   200    85

  Columns 1418 through 1430

    17   224   240   176   248    63    64    55   177    94   165     8    28

  Columns 1431 through 1443

   192   128   199    26    26   198   207   170   191   184   211   198    16

  Columns 1444 through 1456

   171   215    16    64   228   254   132    66   236    87    21   192   228

  Columns 1457 through 1469

   237   243   162   205   243     1    64    96    20   136   109    48   107

  Columns 1470 through 1482

    18   192   102   146   136    90   147   251    33    64   248    50   116

  Columns 1483 through 1495

    88   213   127   214    63   162   194   149    88    60    76    55    64

  Columns 1496 through 1508

    82    40   206   209    57   228    23   192    54   197   146   160   245

  Columns 1509 through 1521

   236    43    64    78    27   175   141   242    91    23    64   170     5

  Columns 1522 through 1534

   203   249   181   139    21    64    86   214   127   129    11   147    29

  Columns 1535 through 1547

   192   146   248    26   122   171   205    24    64   140   101   121    63

  Columns 1548 through 1560

   136   123    17    64    83   253    57   250   242   247    40   192    94

  Columns 1561 through 1573

   130   238    62   204    19    20    64   226   131   136   187   133   232

  Columns 1574 through 1586

   246   191    96    15   134   242   134   254   255   191   146    13   155

  Columns 1587 through 1599

    72   168    57     1    64   180   206   184   139    74   148    16    64

  Columns 1600 through 1612

   156   112   195    72   129   255   234    63   152   135    53    14    61

  Columns 1613 through 1625

     7    43    64   196   142    74    45   142   162    10   192   234   153

  Columns 1626 through 1638

   228   253    34   117    24   192    33   242    34    29   204   238     3

  Columns 1639 through 1651

    64     0   164   220   199   234   128   122    63    10    12     7    82

  Columns 1652 through 1663

    85   130    50   192   245   240   153    18   201   249     5    64

errortext(obj, instruction) function call with instruction:
zmq_send
receive(obj) function call
errortext(obj, instruction) function call with instruction:
zmq_msg_recv
errortext(obj, instruction) function call with instruction:
zmq_msg_close
send(obj,data) function call, with data:
   129   164   116   121   112   101   163    97    99   107

errortext(obj, instruction) function call with instruction:
zmq_send

--------------------------------------------------------------------------------
        std::terminate() detected at dl. d’abr. 22 01:19:36 2019 -0400
--------------------------------------------------------------------------------

Configuration:
  Crash Decoding           : Disabled - No sandbox or build area path
  Crash Mode               : continue (default)
  Default Encoding         : UTF-8
  Deployed                 : false
  Desktop Environment      : KDE
  GNU C Library            : 2.27 stable
  Graphics Driver          : Unknown hardware 
  Graphics card 1          : 0x8086 ( 0x8086 ) 0x5917 Version 0.0.0.0 (0-0-0)
  Java Version             : Java 1.8.0_181-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
  MATLAB Architecture      : glnxa64
  MATLAB Entitlement ID    : 3633855
  MATLAB Root              : /home/matlab/Matlab2019a
  MATLAB Version           : 9.6.0.1072779 (R2019a)
  OpenGL                   : hardware
  Operating System         : KDE neon User Edition 5.15
  Process ID               : 23139
  Processor ID             : x86 Family 6 Model 142 Stepping 10, GenuineIntel
  Session Key              : b66fa6e7-2515-4fb5-91d3-00baf068bef6
  Static TLS mitigation    : Enabled: Full
  Window System            : The X.Org Foundation (11906000), display :0

Fault Count: 1

Abnormal termination:
std::terminate()

Register State (captured):
  RAX = 0000000100007348  RBX = 00007fd397caad98
  RCX = 000000000000000a  RDX = 00007fd397c8be00
  RSP = 00007fd3777160f0  RBP = 00007fd3777164b0
  RSI = 0000000000000000  RDI = 00007fd377716100

   R8 = 00007fd397c9ad08   R9 = 00007fd39a035660
  R10 = 00007fd33927ad08  R11 = 00000000f59f93b0
  R12 = 00007fd397c9ad08  R13 = 00007fd377716870
  R14 = 00007fd377716d60  R15 = 00007fd377716d30

  RIP = 00007fd397ba31ae  EFL = 00ff00000000ff00

   CS = 0000   FS = ff00   GS = 0000

Stack Trace (captured):
[  0] 0x00007fd397b9a713    /home/matlab/Matlab2019a/bin/glnxa64/libmwfl.so+00829203
[  1] 0x00007fd397b9a90c    /home/matlab/Matlab2019a/bin/glnxa64/libmwfl.so+00829708 _ZN10foundation4core4diag15stacktrace_base7captureEm+00000028
[  2] 0x00007fd397b9d052    /home/matlab/Matlab2019a/bin/glnxa64/libmwfl.so+00839762
[  3] 0x00007fd3895b8553   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+01213779
[  4] 0x00007fd3895bb157   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+01225047
[  5] 0x00007fd3895bb38a   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+01225610
[  6] 0x00007fd3895bb951   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+01227089
[  7] 0x00007fd3895bc8d7   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+01231063
[  8] 0x00007fd399d4ca06           /usr/lib/x86_64-linux-gnu/libstdc++.so.6+00600582
[  9] 0x00007fd399d4ba69           /usr/lib/x86_64-linux-gnu/libstdc++.so.6+00596585
[ 10] 0x00007fd399d4c418           /usr/lib/x86_64-linux-gnu/libstdc++.so.6+00599064 __gxx_personality_v0+00000744
[ 11] 0x00007fd399ab2553                /lib/x86_64-linux-gnu/libgcc_s.so.1+00066899
[ 12] 0x00007fd399ab2dd5                /lib/x86_64-linux-gnu/libgcc_s.so.1+00069077 _Unwind_Resume+00000293
[ 13] 0x00007fd376cd8405 /home/matlab/Matlab2019a/bin/glnxa64/libmwmcos_impl.so+04649989
[ 14] 0x00007fd39794ecaf      /home/matlab/Matlab2019a/bin/glnxa64/libmx.so+00924847
[ 15] 0x00007fd397950468      /home/matlab/Matlab2019a/bin/glnxa64/libmx.so+00930920
[ 16] 0x00007fd397950512      /home/matlab/Matlab2019a/bin/glnxa64/libmx.so+00931090
[ 17] 0x00007fd3979500ff      /home/matlab/Matlab2019a/bin/glnxa64/libmx.so+00930047
[ 18] 0x00007fd381211323 /home/matlab/Matlab2019a/bin/glnxa64/libmwlxetypes.so+00238371
[ 19] 0x00007fd382787960 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+15214944
[ 20] 0x00007fd38120ec94 /home/matlab/Matlab2019a/bin/glnxa64/libmwlxetypes.so+00228500
[ 21] 0x00007fd381fad143 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+06979907
[ 22] 0x00007fd381faf21a /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+06988314
[ 23] 0x00007fd381e6173a /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+05621562
[ 24] 0x00007fd381e578a2 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+05580962
[ 25] 0x00007fd381e61e76 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+05623414
[ 26] 0x00007fd381e61f76 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+05623670
[ 27] 0x00007fd381f99cd9 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+06900953
[ 28] 0x00007fd381f9d413 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+06915091
[ 29] 0x00007fd382500d61 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+12565857
[ 30] 0x00007fd3824aa67c /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+12211836
[ 31] 0x00007fd3824aebaf /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+12229551
[ 32] 0x00007fd3824b1eb2 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+12242610
[ 33] 0x00007fd38254f70f /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+12887823
[ 34] 0x00007fd38254fb22 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_lxe.so+12888866
[ 35] 0x00007fd3891ac751 /home/matlab/Matlab2019a/bin/glnxa64/libmwm_interpreter.so+01288017 _Z51inEvalCmdWithLocalReturnInDesiredWSAndPublishEventsRKNSt7__cxx1112basic_stringIDsSt11char_traitsIDsESaIDsEEEPibbP15inWorkSpace_tag+00000065
[ 36] 0x00007fd3896d0caa   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00724138 _ZNK3iqm18InternalEvalPlugin24inEvalCmdWithLocalReturnERKNSt7__cxx1112basic_stringIDsSt11char_traitsIDsESaIDsEEEP15inWorkSpace_tag+00000074
[ 37] 0x00007fd3896d1f1e   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00728862 _ZN3iqm18InternalEvalPlugin7executeEP15inWorkSpace_tag+00000222
[ 38] 0x00007fd389576dd5   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+00945621
[ 39] 0x00007fd3896c2f2d   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00667437
[ 40] 0x00007fd3896a3c02   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00539650
[ 41] 0x00007fd3896a3f98   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00540568
[ 42] 0x00007fd39762163c /home/matlab/Matlab2019a/bin/glnxa64/libmwmlutil.so+07378492 _ZNK14cmddistributor16IIPRunNowMessage7deliverERKN10foundation7msg_svc8exchange7RoutingE+00000044
[ 43] 0x00007fd398175a0d    /home/matlab/Matlab2019a/bin/glnxa64/libmwms.so+02624013 _ZN10foundation7msg_svc8exchange12MessageQueue7deliverERKN7mwboost10shared_ptrIKNS1_8EnvelopeEEE+00000205
[ 44] 0x00007fd398176d83    /home/matlab/Matlab2019a/bin/glnxa64/libmwms.so+02628995
[ 45] 0x00007fd398161d29    /home/matlab/Matlab2019a/bin/glnxa64/libmwms.so+02542889
[ 46] 0x00007fd39816341f    /home/matlab/Matlab2019a/bin/glnxa64/libmwms.so+02548767
[ 47] 0x00007fd39815eb43    /home/matlab/Matlab2019a/bin/glnxa64/libmwms.so+02530115
[ 48] 0x00007fd39757c2b1 /home/matlab/Matlab2019a/bin/glnxa64/libmwmlutil.so+06701745
[ 49] 0x00007fd39757c552 /home/matlab/Matlab2019a/bin/glnxa64/libmwmlutil.so+06702418
[ 50] 0x00007fd39ad98fc3   /home/matlab/Matlab2019a/bin/glnxa64/libmwmvm.so+03145667 _ZN7mwboost6detail8function26void_function_obj_invoker0INS_3_bi6bind_tINS3_11unspecifiedENS4_IS5_NS_8functionIFvvEEENS3_5list0EEENS3_5list1INS_17reference_wrapperINS_7promiseIvEEEEEEEEvE6invokeERNS1_15function_bufferE+00000035
[ 51] 0x00007fd39ad8b287   /home/matlab/Matlab2019a/bin/glnxa64/libmwmvm.so+03089031 _ZN7mwboost13unique_futureIvE3getEv+00001111
[ 52] 0x00007fd389534dd5   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+00675285
[ 53] 0x00007fd39ae1996b   /home/matlab/Matlab2019a/bin/glnxa64/libmwmvm.so+03672427 _ZN14cmddistributor15PackagedTaskIIP10invokeFuncIN7mwboost8functionIFvvEEEEENS2_10shared_ptrINS2_13unique_futureIDTclfp_EEEEEERKT_+00000059
[ 54] 0x00007fd39ae19a58   /home/matlab/Matlab2019a/bin/glnxa64/libmwmvm.so+03672664 _ZNSt17_Function_handlerIFN7mwboost3anyEvEZN14cmddistributor15PackagedTaskIIP10createFuncINS0_8functionIFvvEEEEESt8functionIS2_ET_EUlvE_E9_M_invokeERKSt9_Any_data+00000024
[ 55] 0x00007fd3896dbdcc   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00769484 _ZN7mwboost6detail8function21function_obj_invoker0ISt8functionIFNS_3anyEvEES4_E6invokeERNS1_15function_bufferE+00000028
[ 56] 0x00007fd3896dba85   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00768645 _ZN3iqm18PackagedTaskPlugin7executeEP15inWorkSpace_tag+00000437
[ 57] 0x00007fd389576b35   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+00944949
[ 58] 0x00007fd3896c2f2d   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00667437
[ 59] 0x00007fd3896a78e8   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00555240
[ 60] 0x00007fd38b24feaa /home/matlab/Matlab2019a/bin/glnxa64/libmwbridge.so+00241322
[ 61] 0x00007fd38b250c72 /home/matlab/Matlab2019a/bin/glnxa64/libmwbridge.so+00244850
[ 62] 0x00007fd38b259c03 /home/matlab/Matlab2019a/bin/glnxa64/libmwbridge.so+00281603
[ 63] 0x00007fd38b259d89 /home/matlab/Matlab2019a/bin/glnxa64/libmwbridge.so+00281993
[ 64] 0x00007fd38b25a288 /home/matlab/Matlab2019a/bin/glnxa64/libmwbridge.so+00283272 _Z8mnParserv+00000344
[ 65] 0x00007fd3895874f2   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+01012978
[ 66] 0x00007fd39ae1996b   /home/matlab/Matlab2019a/bin/glnxa64/libmwmvm.so+03672427 _ZN14cmddistributor15PackagedTaskIIP10invokeFuncIN7mwboost8functionIFvvEEEEENS2_10shared_ptrINS2_13unique_futureIDTclfp_EEEEEERKT_+00000059
[ 67] 0x00007fd39ae19a58   /home/matlab/Matlab2019a/bin/glnxa64/libmwmvm.so+03672664 _ZNSt17_Function_handlerIFN7mwboost3anyEvEZN14cmddistributor15PackagedTaskIIP10createFuncINS0_8functionIFvvEEEEESt8functionIS2_ET_EUlvE_E9_M_invokeERKSt9_Any_data+00000024
[ 68] 0x00007fd3896dbdcc   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00769484 _ZN7mwboost6detail8function21function_obj_invoker0ISt8functionIFNS_3anyEvEES4_E6invokeERNS1_15function_bufferE+00000028
[ 69] 0x00007fd3896dba85   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00768645 _ZN3iqm18PackagedTaskPlugin7executeEP15inWorkSpace_tag+00000437
[ 70] 0x00007fd389576b35   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+00944949
[ 71] 0x00007fd3896c2f2d   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00667437
[ 72] 0x00007fd3896a5eba   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00548538
[ 73] 0x00007fd3896a6b2f   /home/matlab/Matlab2019a/bin/glnxa64/libmwiqm.so+00551727
[ 74] 0x00007fd38955de95   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+00843413
[ 75] 0x00007fd38955e4b3   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+00844979
[ 76] 0x00007fd38955ed24   /home/matlab/Matlab2019a/bin/glnxa64/libmwmcr.so+00847140
[ 77] 0x00007fd39907cbdd /home/matlab/Matlab2019a/bin/glnxa64/libmwboost_thread.so.1.65.1+00080861
[ 78] 0x00007fd39a04a6db              /lib/x86_64-linux-gnu/libpthread.so.0+00030427
[ 79] 0x00007fd3997d288f                    /lib/x86_64-linux-gnu/libc.so.6+01185935 clone+00000063
[ 80] 0x0000000000000000                                   <unknown-module>+00000000
bastibe commented 5 years ago

Interesting! So it seems the program is working for a while, and only crashes after running for a bit. Could you try starting Matlab with msgformat="json", so the message contents become readable?

Thank you for following up on this.

kupiqu commented 5 years ago

Interesting! So it seems the program is working for a while, and only crashes after running for a bit. Could you try starting Matlab with msgformat="json", so the message contents become readable?

Definitely. This will help a lot!

kupiqu commented 5 years ago

Found the issue. The problem seems to be in the exit function of the Matlab class in transplant_master.py.

If I comment out super(self.__class__, self).exit() everything works:

    def exit(self):
        """Close the connection, and kill the process."""
        # super(self.__class__, self).exit()
        self.socket.close()
        self.context.term()
bastibe commented 5 years ago

I see. I wasn't aware that the crash happened only on shutdown.

I can reproduce your crash now, although I am unclear about it's cause. Your current workaround does not actually terminate Matlab, it is still running in the background. But I found a better solution:

In transplant_remote.m, change lines 36-39 from

if should_die
    quit('force')
end

to

if should_die
    return
end

This solves the issue on my computer. I am now checking why I wrote quit('force') in the first place.

kupiqu commented 5 years ago

Your current workaround does not actually terminate Matlab, it is still running in the background.

Yes, my workaround was more about avoiding the crash and to give you a clue of what could be going wrong, but I assumed that this instruction had some function there :)

This solves the issue on my computer.

Excellent. It works fine for me too. Thanks.

I am now checking why I wrote quit('force') in the first place.

Sounds good. I'll let you close this issue then (once you figure this out).

bastibe commented 5 years ago

Fixed in 4d78a29ce8d6d5aa1f08fa3522a7d8a44aa31c28. Thank you for your help in diagnosing this issue.