Closed daidluvkb closed 3 years ago
Hi, I'm having the same problem here. I have tested gtsam separately and it seems to work without problems. @daidluvkb have you managed to fix it?
Segmentation violation detected at 2021-01-21 09:34:34 +0100
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.27 stable
Graphics Driver : Unknown hardware
Graphics card 1 : 0x10de ( 0x10de ) 0x1c20 Version 460.32.3.0 (0-0-0)
Graphics card 2 : 0x8086 ( 0x8086 ) 0x591b Version 0.0.0.0 (0-0-0)
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 : 862834
MATLAB Root : /usr/local/MATLAB/R2020b
MATLAB Version : 9.9.0.1538559 (R2020b) Update 3
OpenGL : hardware
Operating System : Ubuntu 18.04.5 LTS
Process ID : 11634
Processor ID : x86 Family 6 Model 158 Stepping 9, GenuineIntel
Session Key : 07fb8dfd-4b22-41fc-bf23-d3c2f7799ee8
Static TLS mitigation : Enabled: Full
Window System : The X.Org Foundation (12008000), display :1
Fault Count: 1
Abnormal termination:
Segmentation violation
Current Thread: 'MCR 0 interpret' id 140534538934016
Register State (from fault):
RAX = 00007fd0bf453400 RBX = 00007fcf4774be70
RCX = 0000000000000000 RDX = 00007fd0bf453460
RSP = 00007fd0bf452fa0 RBP = 00007fd0bf453690
RSI = 00007fcf4774c450 RDI = 00007fd0bf452f58
R8 = 0000000000000000 R9 = 0000000000000018
R10 = 00007fd0b00008d0 R11 = 0000000000000000
R12 = 0000000000000003 R13 = 0000000000000000
R14 = 00007fcf4761dfa0 R15 = 00007fd0bf453780
RIP = 00007fcf3667eccc EFL = 0000000000010206
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007fcf3667eccc /usr/local/lib/libgpmp2.so.0+00527564 _ZNK5gpmp23Arm17forwardKinematicsERKN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEEN5boost8optionalIS5_EERSt6vectorIN5gtsam5Pose3ESaISB_EENS7_IRS9_INS2_IdLi3ELi1ELi0ELi3ELi1EEESaISF_EEEENS7_IRS9_INS2_IdLin1ELin1ELi0ELin1ELin1EEESaISK_EEEESO_SO_+00001036
[ 1] 0x00007fcf38f23868 /usr/local/gtsam_toolbox/gpmp2_wrapper.mexa64+00981096 _ZNK5gpmp217ForwardKinematicsIN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEES3_E25forwardKinematicsPositionERKS3_+00000216
[ 2] 0x00007fcf38ee26f7 /usr/local/gtsam_toolbox/gpmp2_wrapper.mexa64+00714487 _Z37gpmp2Arm_forwardKinematicsPosition_35iPP11mxArray_tagiPPKS_+00000183
[ 3] 0x00007fcf38eef593 /usr/local/gtsam_toolbox/gpmp2_wrapper.mexa64+00767379 mexFunction+00004627
[ 4] 0x00007fd0ca61f79f /usr/local/MATLAB/R2020b/bin/glnxa64/libmex.so+00837535
[ 5] 0x00007fd0ca61f8a5 /usr/local/MATLAB/R2020b/bin/glnxa64/libmex.so+00837797
[ 6] 0x00007fd0ca61fc77 /usr/local/MATLAB/R2020b/bin/glnxa64/libmex.so+00838775
[ 7] 0x00007fd0ca620804 /usr/local/MATLAB/R2020b/bin/glnxa64/libmex.so+00841732
[ 8] 0x00007fd0ca60ebdc /usr/local/MATLAB/R2020b/bin/glnxa64/libmex.so+00768988
[ 9] 0x00007fd0cdde1720 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_dispatcher.so+01160992 _ZN8Mfh_file20dispatch_file_commonEMS_FviPP11mxArray_tagiS2_EiS2_iS2_+00000208
[ 10] 0x00007fd0cdde2e4c /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_dispatcher.so+01166924
[ 11] 0x00007fd0cdde3311 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_dispatcher.so+01168145 _ZN8Mfh_file8dispatchEiPSt10unique_ptrI11mxArray_tagN6matrix6detail17mxDestroy_deleterEEiPPS1_+00000033
[ 12] 0x00007fd0cb3b1964 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+10959204
[ 13] 0x00007fd0cb3b5712 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+10974994
[ 14] 0x00007fd0cb4d7abd /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+12163773
[ 15] 0x00007fd0cb4cb42b /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+12112939
[ 16] 0x00007fd0cb45ee8d /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+11669133
[ 17] 0x00007fd0cb45ef10 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+11669264
[ 18] 0x00007fd0caf90274 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+06627956
[ 19] 0x00007fd0caf922b4 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+06636212
[ 20] 0x00007fd0caf8f391 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+06624145
[ 21] 0x00007fd0caf873a5 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+06591397
[ 22] 0x00007fd0caf87891 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+06592657
[ 23] 0x00007fd0caf8ec0a /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+06622218
[ 24] 0x00007fd0caf8ed06 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+06622470
[ 25] 0x00007fd0cb0b6566 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+07832934
[ 26] 0x00007fd0cb0b8ea5 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+07843493
[ 27] 0x00007fd0cb2cdf21 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+10026785
[ 28] 0x00007fd0cb3a221f /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+10895903
[ 29] 0x00007fd0cb3a23bd /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+10896317
[ 30] 0x00007fd0cdde1720 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_dispatcher.so+01160992 _ZN8Mfh_file20dispatch_file_commonEMS_FviPP11mxArray_tagiS2_EiS2_iS2_+00000208
[ 31] 0x00007fd0cdde2e4c /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_dispatcher.so+01166924
[ 32] 0x00007fd0cdde3311 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_dispatcher.so+01168145 _ZN8Mfh_file8dispatchEiPSt10unique_ptrI11mxArray_tagN6matrix6detail17mxDestroy_deleterEEiPPS1_+00000033
[ 33] 0x00007fd0cb3b1964 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+10959204
[ 34] 0x00007fd0cb3b5712 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+10974994
[ 35] 0x00007fd0cb4d7abd /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+12163773
[ 36] 0x00007fd0cb4cb56a /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+12113258
[ 37] 0x00007fd0cb45ee8d /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+11669133
[ 38] 0x00007fd0cb45ef60 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+11669344
[ 39] 0x00007fd0caf90274 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+06627956
[ 40] 0x00007fd0caf922b4 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+06636212
[ 41] 0x00007fd0caf8f391 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+06624145
[ 42] 0x00007fd0caf873a5 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+06591397
[ 43] 0x00007fd0caf87891 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+06592657
[ 44] 0x00007fd0caf8ec0a /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+06622218
[ 45] 0x00007fd0caf8ed06 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+06622470
[ 46] 0x00007fd0cb0b6566 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+07832934
[ 47] 0x00007fd0cb0b8ea5 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+07843493
[ 48] 0x00007fd0cb2cdf21 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+10026785
[ 49] 0x00007fd0cb27f013 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+09703443
[ 50] 0x00007fd0cb28264f /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+09717327
[ 51] 0x00007fd0cb284c92 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+09727122
[ 52] 0x00007fd0cb3165b4 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+10323380
[ 53] 0x00007fd0cb316769 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwm_lxe.so+10323817
[ 54] 0x00007fd0ce0498e9 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwiqm.so+00588009
[ 55] 0x00007fd0ce0ab13a /usr/local/MATLAB/R2020b/bin/glnxa64/libmwiqm.so+00987450 _ZN3iqm14UserEvalPlugin7executeEP15inWorkSpace_tag+00000970
[ 56] 0x00007fd0ce0806cf /usr/local/MATLAB/R2020b/bin/glnxa64/libmwiqm.so+00812751
[ 57] 0x00007fd0ce08e136 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwiqm.so+00868662
[ 58] 0x00007fd0ce052b1c /usr/local/MATLAB/R2020b/bin/glnxa64/libmwiqm.so+00625436
[ 59] 0x00007fd0ca6b5762 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwbridge.so+00300898
[ 60] 0x00007fd0ca6b5fd3 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwbridge.so+00303059
[ 61] 0x00007fd0ca6bc366 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwbridge.so+00328550 _Z22mnGetCommandLineBufferbRbN7mwboost8optionalIKP15inWorkSpace_tagEEbRKNS0_9function2IN6mlutil14cmddistributor17inExecutionStatusERKNSt7__cxx1112basic_stringIDsSt11char_traitsIDsESaIDsEEES4_EE+00000230
[ 62] 0x00007fd0ca6bc60a /usr/local/MATLAB/R2020b/bin/glnxa64/libmwbridge.so+00329226 _Z8mnParserv+00000490
[ 63] 0x00007fd0cdf2cbd7 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwmcr.so+00973783
[ 64] 0x00007fd0e18908c0 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwmvm.so+03250368 _ZNK7mwboost9function0IvEclEv+00000032
[ 65] 0x00007fd0e1891ab0 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwmvm.so+03254960 _ZN14cmddistributor15PackagedTaskIIP10invokeFuncIN7mwboost8functionIFvvEEEEENS2_10shared_ptrINS2_13unique_futureIDTclfp_EEEEEERKT_+00000048
[ 66] 0x00007fd0e1891b58 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwmvm.so+03255128 _ZNSt17_Function_handlerIFN7mwboost3anyEvEZN14cmddistributor15PackagedTaskIIP10createFuncINS0_8functionIFvvEEEEESt8functionIS2_ET_EUlvE_E9_M_invokeERKSt9_Any_data+00000024
[ 67] 0x00007fd0ce09f3fb /usr/local/MATLAB/R2020b/bin/glnxa64/libmwiqm.so+00939003 _ZN3iqm18PackagedTaskPlugin7executeEP15inWorkSpace_tag+00000091
[ 68] 0x00007fd0cdf2a3bd /usr/local/MATLAB/R2020b/bin/glnxa64/libmwmcr.so+00963517
[ 69] 0x00007fd0ce0806cf /usr/local/MATLAB/R2020b/bin/glnxa64/libmwiqm.so+00812751
[ 70] 0x00007fd0ce050845 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwiqm.so+00616517
[ 71] 0x00007fd0ce051240 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwiqm.so+00619072
[ 72] 0x00007fd0cdf10efe /usr/local/MATLAB/R2020b/bin/glnxa64/libmwmcr.so+00859902
[ 73] 0x00007fd0cdf11477 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwmcr.so+00861303
[ 74] 0x00007fd0cdf11677 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwmcr.so+00861815
[ 75] 0x00007fd0dfca5482 /usr/local/MATLAB/R2020b/bin/glnxa64/libmwboost_thread.so.1.70.0+00062594
[ 76] 0x00007fd0e0ee26db /lib/x86_64-linux-gnu/libpthread.so.0+00030427
[ 77] 0x00007fd0e09f371f /lib/x86_64-linux-gnu/libc.so.6+01185567 clone+00000063
This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files.
** This crash report has been saved to disk as /home/user/matlab_crash_dump.11634-1 **
FatalException
Running sudo make check
also fails on 14 out of 36 tests.
I have GCC 7.5.0, CMAKE 3.18.4 and BOOST 1.65.1.0 installed.
Start 1: testDynamicVector
1/36 Test #1: testDynamicVector ............................ Passed 0.06 sec
Start 2: testPose2Vector
2/36 Test #2: testPose2Vector .............................. Passed 0.00 sec
Start 3: testProductDynamicLieGroup
3/36 Test #3: testProductDynamicLieGroup ................... Passed 0.00 sec
Start 4: testGaussianProcessInterpolatorLinear
4/36 Test #4: testGaussianProcessInterpolatorLinear ........ Passed 0.00 sec
Start 5: testGaussianProcessInterpolatorPose2
5/36 Test #5: testGaussianProcessInterpolatorPose2 ......... Passed 0.00 sec
Start 6: testGaussianProcessInterpolatorPose2Vector
6/36 Test #6: testGaussianProcessInterpolatorPose2Vector ... Passed 0.00 sec
Start 7: testGaussianProcessInterpolatorPose3
7/36 Test #7: testGaussianProcessInterpolatorPose3 ......... Passed 0.00 sec
Start 8: testGaussianProcessPriorLinear
8/36 Test #8: testGaussianProcessPriorLinear ............... Passed 0.01 sec
Start 9: testGaussianProcessPriorPose2
9/36 Test #9: testGaussianProcessPriorPose2 ................ Passed 0.01 sec
Start 10: testGaussianProcessPriorPose2Vector
10/36 Test #10: testGaussianProcessPriorPose2Vector .......... Passed 0.01 sec
Start 11: testGaussianProcessPriorPose3
11/36 Test #11: testGaussianProcessPriorPose3 ................ Passed 0.01 sec
Start 12: testArm
12/36 Test #12: testArm ......................................***Exception: SegFault 0.19 sec
Start 13: testArmModel
13/36 Test #13: testArmModel .................................***Exception: SegFault 0.10 sec
Start 14: testGaussianPriorWorkspaceOrientation
14/36 Test #14: testGaussianPriorWorkspaceOrientation ........***Exception: SegFault 0.10 sec
Start 15: testGaussianPriorWorkspacePose
15/36 Test #15: testGaussianPriorWorkspacePose ...............***Exception: SegFault 0.10 sec
Start 16: testGaussianPriorWorkspacePosition
16/36 Test #16: testGaussianPriorWorkspacePosition ...........***Exception: SegFault 0.10 sec
Start 17: testGoalFactorArm
17/36 Test #17: testGoalFactorArm ............................***Exception: SegFault 0.10 sec
Start 18: testJointLimitFactorPose2Vector
18/36 Test #18: testJointLimitFactorPose2Vector .............. Passed 0.00 sec
Start 19: testJointLimitFactorVector
19/36 Test #19: testJointLimitFactorVector ................... Passed 0.00 sec
Start 20: testMobileBaseUtils
20/36 Test #20: testMobileBaseUtils .......................... Passed 0.00 sec
Start 21: testPointRobotModel
21/36 Test #21: testPointRobotModel .......................... Passed 0.00 sec
Start 22: testPose2Mobile2Arms
22/36 Test #22: testPose2Mobile2Arms .........................***Exception: SegFault 0.10 sec
Start 23: testPose2MobileArm
23/36 Test #23: testPose2MobileArm ...........................***Exception: SegFault 0.10 sec
Start 24: testPose2MobileBase
24/36 Test #24: testPose2MobileBase .......................... Passed 0.00 sec
Start 25: testPose2MobileVetLin2Arms
25/36 Test #25: testPose2MobileVetLin2Arms ...................***Exception: SegFault 0.10 sec
Start 26: testPose2MobileVetLinArm
26/36 Test #26: testPose2MobileVetLinArm .....................***Exception: SegFault 0.10 sec
Start 27: testVehicleDynamics
27/36 Test #27: testVehicleDynamics .......................... Passed 0.00 sec
Start 28: testObstaclePlanarSDFFactorArm
28/36 Test #28: testObstaclePlanarSDFFactorArm ...............***Exception: SegFault 0.10 sec
Start 29: testObstaclePlanarSDFFactorGPArm
29/36 Test #29: testObstaclePlanarSDFFactorGPArm .............***Exception: SegFault 0.10 sec
Start 30: testObstacleSDFFactorArm
30/36 Test #30: testObstacleSDFFactorArm .....................***Exception: SegFault 0.10 sec
Start 31: testObstacleSDFFactorGPArm
31/36 Test #31: testObstacleSDFFactorGPArm ...................***Exception: SegFault 0.10 sec
Start 32: testPlanarSDF
32/36 Test #32: testPlanarSDF ................................ Passed 0.00 sec
Start 33: testSignedDistanceField
33/36 Test #33: testSignedDistanceField ...................... Passed 0.00 sec
Start 34: testISAM2TrajOptimizer
34/36 Test #34: testISAM2TrajOptimizer ....................... Passed 0.00 sec
Start 35: testTrajUtils
35/36 Test #35: testTrajUtils ................................ Passed 0.00 sec
Start 36: testTimer
36/36 Test #36: testTimer .................................... Passed 0.01 sec
61% tests passed, 14 tests failed out of 36
Total Test time (real) = 1.72 sec
The following tests FAILED:
12 - testArm (SEGFAULT)
13 - testArmModel (SEGFAULT)
14 - testGaussianPriorWorkspaceOrientation (SEGFAULT)
15 - testGaussianPriorWorkspacePose (SEGFAULT)
16 - testGaussianPriorWorkspacePosition (SEGFAULT)
17 - testGoalFactorArm (SEGFAULT)
22 - testPose2Mobile2Arms (SEGFAULT)
23 - testPose2MobileArm (SEGFAULT)
25 - testPose2MobileVetLin2Arms (SEGFAULT)
26 - testPose2MobileVetLinArm (SEGFAULT)
28 - testObstaclePlanarSDFFactorArm (SEGFAULT)
29 - testObstaclePlanarSDFFactorGPArm (SEGFAULT)
30 - testObstacleSDFFactorArm (SEGFAULT)
31 - testObstacleSDFFactorGPArm (SEGFAULT)
Errors while running CTest
CMakeFiles/check.dir/build.make:76: recipe for target 'CMakeFiles/check' failed
make[3]: *** [CMakeFiles/check] Error 8
CMakeFiles/Makefile2:430: recipe for target 'CMakeFiles/check.dir/all' failed
make[2]: *** [CMakeFiles/check.dir/all] Error 2
CMakeFiles/Makefile2:437: recipe for target 'CMakeFiles/check.dir/rule' failed
make[1]: *** [CMakeFiles/check.dir/rule] Error 2
Makefile:194: recipe for target 'check' failed
make: *** [check] Error 2
Please take a look at my solution at #29.
Please take a look at my solution at #29.
Thanks for the solution reply. Actually I abandoned the matlab script after I purposed this issue and began to rewrite the matlab code to cpp directly. During that time, I found there is something wrong with the Eigen lib, seemed similar with you mentioned. And I changed the gpmp2 compiling settings, it works in cpp, but I havent retried the matlab code. Hoping my exprience may help other friends who meet the same problems~
We have just moved to Python wrapper from Matlab.
Hello, I‘m trying to learn gpmp2 by your awesome matlab sripts. I have compiled the cpp code and matlab wrapper successfully by gcc7.5/matlabR2014b/gtsam4.0.3release. But when I am execuating the example matlab script like "WAMReplannerExample.m". When it runs to
plotArm(arm.fk_model(), start_conf, 'r', 2)(line 41) I got info below:
But sometime (a few times), I debug and step in the function