Open traversaro opened 9 years ago
dumb solution is to implement some simple matlab functions (save_idyntree, load_idyntree) which converts to a matlab matrix or structure and saves and then reads from a matlab matrix and structure and regenerates idynTree. I can implement one quickly if you think its a viable option.
Naveen Kuppuswamy, PhD Post-doctoral Fellow, Cognitive Humanoids Lab, Department of Robotics, Brain and Cognitive Sciences (RBCS), Istituto Italiano di Tecnologia, Genova, Italy
On Tue, Sep 15, 2015 at 6:27 PM, Silvio Traversaro <notifications@github.com
wrote:
save/load is not supported. As a first step, overload saveobj / loadobj to produce a clear error message explaining the problem (this probably should be done at swig level). cc @naveenoid https://github.com/naveenoid @francesco-romano https://github.com/francesco-romano
— Reply to this email directly or view it on GitHub https://github.com/robotology/idyntree/issues/76.
Yes, this can be done in a transparent overloading the saveobj
and loadobj
methods.
We need to understand how to do this in a way that it integrates with the swig code generation process (we cannot directly modify the generated code).
Upstream issue for reference: https://github.com/jaeandersson/swig/issues/59
Any news on this topic? At the moment when I save in Matlab I have to take care of deleting or converting in matlab matrices all the the iDyntree structures, right? because I did not do that and now when I try to load my data I have the following error message:
Warning: Variable 'parametricEstimator' originally saved as a IncrementalParametricEstimator cannot be instantiated as an object and will be read in as a uint32.
Segmentation violation detected at Wed Sep 30 11:19:24 2015
Configuration: Crash Decoding : Disabled Crash Mode : continue (default) Current Graphics Driver: Unknown hardware Current Visual : 0x20 (class 4, depth 24) Default Encoding : UTF-8 GNU C Library : 2.19 stable Host Name : pcautomatici09 MATLAB Architecture : glnxa64 MATLAB Root : /nfsd/opt/matlab2015b MATLAB Version : 8.6.0.267246 (R2015b) OpenGL : hardware Operating System : Linux 3.16.0-50-generic #66~14.04.1-Ubuntu SMP Thu Sep 10 17:05:00 UTC 2015 x86_64 Processor ID : x86 Family 6 Model 60 Stepping 3, GenuineIntel Virtual Machine : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode Window System : The X.Org Foundation (11501000), display :0
Fault Count: 2
Abnormal termination: Segmentation violation
Register State (from fault): RAX = 0000000000000000 RBX = 0000000000000001 RCX = 00007f667b71a4c0 RDX = 00007f67b8000038 RSP = 00007f67bf24c3d0 RBP = 00007f67bf24cc38 RSI = 00000000ffffffff RDI = 0000000000000000
R8 = 0000000000000000 R9 = 00007f66baa5cd30 R10 = 00007f67bf249e00 R11 = 00007f6791ac0790 R12 = 00007f67bf24cc38 R13 = 00007f667b69a390 R14 = 0000000000000001 R15 = 00007f67bf24cb60
RIP = 00007f668ca546f0 EFL = 0000000000010246
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007f668ca546f0 /home/auto/MEGA/iCub/Software/codyco-superbuild/libraries/iDynTree/build/bindings/matlab/iDynTreeMATLAB_wrap.mexa64+00288496 _Z24_wrap_VectorDynSize_sizeiPP11mxArraytagiS1+00000064
[ 1] 0x00007f668cacdf65 /home/auto/MEGA/iCub/Software/codyco-superbuild/libraries/iDynTree/build/bindings/matlab/iDynTreeMATLAB_wrap.mexa64+00786277 mexFunction+00011605
[ 2] 0x00007f67ccabbc4a /nfsd/opt/matlab2015b/bin/glnxa64/libmex.so+00142410 mexRunMexFile+00000090
[ 3] 0x00007f67ccab8244 /nfsd/opt/matlab2015b/bin/glnxa64/libmex.so+00127556
[ 4] 0x00007f67ccab8de4 /nfsd/opt/matlab2015b/bin/glnxa64/libmex.so+00130532
[ 5] 0x00007f67d105adbd /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00724413 _ZN8Mfh_file16dispatch_fh_implEMS_FviPP11mxArray_tagiS2_EiS2iS2+00001549
[ 6] 0x00007f67d105b250 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00725584 _ZN8Mfh_file11dispatch_fhEiPP11mxArraytagiS2+00000032
[ 7] 0x00007f67cb6d58af /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+08612015
[ 8] 0x00007f67cb7f97ff /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+09807871
[ 9] 0x00007f67cb822196 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+09974166
[ 10] 0x00007f67cb7d79f1 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+09669105
[ 11] 0x00007f67cb41ed6c /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+05766508
[ 12] 0x00007f67cb4094c1 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+05678273
[ 13] 0x00007f67cb418075 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+05738613
[ 14] 0x00007f67cb5e9033 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07643187
[ 15] 0x00007f67cb6c50f4 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+08544500
[ 16] 0x00007f67d105adbd /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00724413 _ZN8Mfh_file16dispatch_fh_implEMS_FviPP11mxArray_tagiS2_EiS2iS2+00001549
[ 17] 0x00007f67d105b250 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00725584 _ZN8Mfh_file11dispatch_fhEiPP11mxArraytagiS2+00000032
[ 18] 0x00007f67bdb02675 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcos_impl.so+01222261
[ 19] 0x00007f67bdbc4f03 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcos_impl.so+02019075
[ 20] 0x00007f67bdb50632 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcos_impl.so+01541682
[ 21] 0x00007f67bdb515d6 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcos_impl.so+01545686
[ 22] 0x00007f67bdb594e5 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcos_impl.so+01578213
[ 23] 0x00007f67bdb52bab /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcos_impl.so+01551275
[ 24] 0x00007f67bdc5e780 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcos_impl.so+02647936
[ 25] 0x00007f67d1000c57 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00355415 _ZN13Mfh_MATLAB_fn11dispatch_fhEiPP11mxArraytagiS2+00000391
[ 26] 0x00007f67bdc5b271 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcos_impl.so+02634353
[ 27] 0x00007f67d059accb /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_interpreter.so+02661579 inCallOverloadedSize+00000139
[ 28] 0x00007f66b235218c /nfsd/opt/matlab2015b/bin/glnxa64/libmwwkspintrospect.so+00176524
[ 29] 0x00007f66b2352336 /nfsd/opt/matlab2015b/bin/glnxa64/libmwwkspintrospect.so+00176950
[ 30] 0x00007f66b23523cf /nfsd/opt/matlab2015b/bin/glnxa64/libmwwkspintrospect.so+00177103
[ 31] 0x00007f66b2354471 /nfsd/opt/matlab2015b/bin/glnxa64/libmwwkspintrospect.so+00185457
[ 32] 0x00007f66b2358732 /nfsd/opt/matlab2015b/bin/glnxa64/libmwwkspintrospect.so+00202546
[ 33] 0x00007f67d1018f35 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00454453
[ 34] 0x00007f67d1000c57 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00355415 _ZN13Mfh_MATLAB_fn11dispatch_fhEiPP11mxArraytagiS2+00000391
[ 35] 0x00007f67bdc4e15a /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcos_impl.so+02580826
[ 36] 0x00007f67d104a977 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00657783
[ 37] 0x00007f67d1018f35 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00454453
[ 38] 0x00007f67d1000c57 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00355415 _ZN13Mfh_MATLAB_fn11dispatch_fhEiPP11mxArraytagiS2+00000391
[ 39] 0x00007f67cb6d58af /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+08612015
[ 40] 0x00007f67cb7f97ff /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+09807871
[ 41] 0x00007f67cb7ef254 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+09765460
[ 42] 0x00007f67cb7bc901 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+09558273
[ 43] 0x00007f67cb41ed6c /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+05766508
[ 44] 0x00007f67cb4094c1 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+05678273
[ 45] 0x00007f67cb418075 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+05738613
[ 46] 0x00007f67cb5e9033 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07643187
[ 47] 0x00007f67cb5b1c0c /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07416844
[ 48] 0x00007f67cb5b2dba /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07421370
[ 49] 0x00007f67cb5b2eb4 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07421620
[ 50] 0x00007f67cb5e7abb /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07637691
[ 51] 0x00007f67cb635ce2 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07957730
[ 52] 0x00007f67cb6363f1 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07959537
[ 53] 0x00007f67d1018f35 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00454453
[ 54] 0x00007f67d1000c57 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00355415 _ZN13Mfh_MATLAB_fn11dispatch_fhEiPP11mxArraytagiS2+00000391
[ 55] 0x00007f67cb830e6e /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+10034798
[ 56] 0x00007f67cb830ebd /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+10034877
[ 57] 0x00007f67cb5aff9c /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07409564
[ 58] 0x00007f67cb5b01d2 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07410130
[ 59] 0x00007f67cb6297e4 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07907300
[ 60] 0x00007f67cb6295cd /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07906765
[ 61] 0x00007f67cb62a3af /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07910319
[ 62] 0x00007f67d058c120 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_interpreter.so+02601248 _Z44inCallFcnWithTrapInDesiredWSAndPublishEventsiPP11mxArray_tagiS1_PKcbP15inWorkSpace_tag+00000096
[ 63] 0x00007f67d2184ee4 /nfsd/opt/matlab2015b/bin/glnxa64/libmwiqm.so+00909028 _ZN3iqm15BaseFEvalPlugin7executeEP15inWorkSpace_tagRN5boost10shared_ptrIN14cmddistributor17IIPCompletedEventEEE+00000356
[ 64] 0x00007f67a96b1a33 /nfsd/opt/matlab2015b/bin/glnxa64/libnativejmi.so+00854579 _ZN9nativejmi14JmiFEvalPlugin7executeEP15inWorkSpace_tagRN5boost10shared_ptrIN14cmddistributor17IIPCompletedEventEEE+00000307
[ 65] 0x00007f67a96d8275 /nfsd/opt/matlab2015b/bin/glnxa64/libnativejmi.so+01012341 _ZN3mcr3mvm27McrSwappingIqmPluginAdapterIN9nativejmi14JmiFEvalPluginEE7executeEP15inWorkSpace_tagRN5boost10shared_ptrIN14cmddistributor17IIPCompletedEventEEE+00000437
[ 66] 0x00007f67d21801c6 /nfsd/opt/matlab2015b/bin/glnxa64/libmwiqm.so+00889286
[ 67] 0x00007f67d216d645 /nfsd/opt/matlab2015b/bin/glnxa64/libmwiqm.so+00812613
[ 68] 0x00007f67ccce9bf9 /nfsd/opt/matlab2015b/bin/glnxa64/libmwbridge.so+00146425
[ 69] 0x00007f67cccea1f4 /nfsd/opt/matlab2015b/bin/glnxa64/libmwbridge.so+00147956
[ 70] 0x00007f67cccef6cd /nfsd/opt/matlab2015b/bin/glnxa64/libmwbridge.so+00169677
[ 71] 0x00007f67cccef7bc /nfsd/opt/matlab2015b/bin/glnxa64/libmwbridge.so+00169916
[ 72] 0x00007f67cccefead /nfsd/opt/matlab2015b/bin/glnxa64/libmwbridge.so+00171693 _Z8mnParserv+00000749
[ 73] 0x00007f67d1341b4f /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcr.so+00686927 _ZN11mcrInstance30mnParser_on_interpreter_threadEv+00000031
[ 74] 0x00007f67d132e443 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcr.so+00607299
[ 75] 0x00007f67d132ea39 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcr.so+00608825 _ZN5boost6detail11task_objectIvNS_3_bi6bind_tIvPFvRKNS_8functionIFvvEEEENS2_5list1INS2_5valueIS6_EEEEEEE6do_runEv+00000025
[ 76] 0x00007f67d132ff47 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcr.so+00614215 _ZN5boost6detail9task_baseIvE3runEv+00000071
[ 77] 0x00007f67d132ffa7 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcr.so+00614311
[ 78] 0x00007f67d132b2fa /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcr.so+00594682
[ 79] 0x00007f67c4cf16b6 /nfsd/opt/matlab2015b/bin/glnxa64/libmwuix.so+00313014
[ 80] 0x00007f67c4cd7862 /nfsd/opt/matlab2015b/bin/glnxa64/libmwuix.so+00206946
[ 81] 0x00007f67d1cc10df /nfsd/opt/matlab2015b/bin/glnxa64/libmwservices.so+03002591
[ 82] 0x00007f67d1cc124c /nfsd/opt/matlab2015b/bin/glnxa64/libmwservices.so+03002956
[ 83] 0x00007f67d1cc2d9f /nfsd/opt/matlab2015b/bin/glnxa64/libmwservices.so+03009951
[ 84] 0x00007f67d1cc384c /nfsd/opt/matlab2015b/bin/glnxa64/libmwservices.so+03012684 _Z25svWS_ProcessPendingEventsiib+00000092
[ 85] 0x00007f67d132b9b8 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcr.so+00596408
[ 86] 0x00007f67d132bcd4 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcr.so+00597204
[ 87] 0x00007f67d1317fed /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcr.so+00516077
[ 88] 0x00007f67da2b9182 /lib/x86_64-linux-gnu/libpthread.so.0+00033154
[ 89] 0x00007f67d9fe647d /lib/x86_64-linux-gnu/libc.so.6+01025149 clone+00000109
[ 90] 0x0000000000000000
Abnormal termination: Segmentation violation
Register State (from fault): RAX = 0000000000000000 RBX = 0000000000000001 RCX = 00007f67bb72c940 RDX = 00007f67b8000040 RSP = 00007f67bf24c3d0 RBP = 00007f67bf24cc38 RSI = 00000000ffffffff RDI = 0000000000000000
R8 = 0000000000000000 R9 = 00007f66baabd810 R10 = 00007f67bf249c80 R11 = 00007f67da073a30 R12 = 00007f67bf24cc38 R13 = 00007f667b69a390 R14 = 0000000000000001 R15 = 00007f67bf24cb60
RIP = 00007f668ca546f0 EFL = 0000000000010246
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007f668ca546f0 /home/auto/MEGA/iCub/Software/codyco-superbuild/libraries/iDynTree/build/bindings/matlab/iDynTreeMATLAB_wrap.mexa64+00288496 _Z24_wrap_VectorDynSize_sizeiPP11mxArraytagiS1+00000064
[ 1] 0x00007f668cacdf65 /home/auto/MEGA/iCub/Software/codyco-superbuild/libraries/iDynTree/build/bindings/matlab/iDynTreeMATLAB_wrap.mexa64+00786277 mexFunction+00011605
[ 2] 0x00007f67ccabbc4a /nfsd/opt/matlab2015b/bin/glnxa64/libmex.so+00142410 mexRunMexFile+00000090
[ 3] 0x00007f67ccab8244 /nfsd/opt/matlab2015b/bin/glnxa64/libmex.so+00127556
[ 4] 0x00007f67ccab8de4 /nfsd/opt/matlab2015b/bin/glnxa64/libmex.so+00130532
[ 5] 0x00007f67d105adbd /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00724413 _ZN8Mfh_file16dispatch_fh_implEMS_FviPP11mxArray_tagiS2_EiS2iS2+00001549
[ 6] 0x00007f67d105b250 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00725584 _ZN8Mfh_file11dispatch_fhEiPP11mxArraytagiS2+00000032
[ 7] 0x00007f67cb6d58af /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+08612015
[ 8] 0x00007f67cb7f97ff /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+09807871
[ 9] 0x00007f67cb822196 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+09974166
[ 10] 0x00007f67cb7d79f1 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+09669105
[ 11] 0x00007f67cb41ed6c /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+05766508
[ 12] 0x00007f67cb4094c1 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+05678273
[ 13] 0x00007f67cb418075 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+05738613
[ 14] 0x00007f67cb5e9033 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07643187
[ 15] 0x00007f67cb6c50f4 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+08544500
[ 16] 0x00007f67d105adbd /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00724413 _ZN8Mfh_file16dispatch_fh_implEMS_FviPP11mxArray_tagiS2_EiS2iS2+00001549
[ 17] 0x00007f67d105b250 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00725584 _ZN8Mfh_file11dispatch_fhEiPP11mxArraytagiS2+00000032
[ 18] 0x00007f67bdb02675 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcos_impl.so+01222261
[ 19] 0x00007f67bdbc4f03 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcos_impl.so+02019075
[ 20] 0x00007f67bdb50632 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcos_impl.so+01541682
[ 21] 0x00007f67bdb515d6 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcos_impl.so+01545686
[ 22] 0x00007f67bdb594e5 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcos_impl.so+01578213
[ 23] 0x00007f67bdb52bab /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcos_impl.so+01551275
[ 24] 0x00007f67bdc5e780 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcos_impl.so+02647936
[ 25] 0x00007f67d1000c57 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00355415 _ZN13Mfh_MATLAB_fn11dispatch_fhEiPP11mxArraytagiS2+00000391
[ 26] 0x00007f67bdc5b271 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcos_impl.so+02634353
[ 27] 0x00007f67d059accb /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_interpreter.so+02661579 inCallOverloadedSize+00000139
[ 28] 0x00007f66b235218c /nfsd/opt/matlab2015b/bin/glnxa64/libmwwkspintrospect.so+00176524
[ 29] 0x00007f66b2352336 /nfsd/opt/matlab2015b/bin/glnxa64/libmwwkspintrospect.so+00176950
[ 30] 0x00007f66b23523cf /nfsd/opt/matlab2015b/bin/glnxa64/libmwwkspintrospect.so+00177103
[ 31] 0x00007f66b2354471 /nfsd/opt/matlab2015b/bin/glnxa64/libmwwkspintrospect.so+00185457
[ 32] 0x00007f66b2358732 /nfsd/opt/matlab2015b/bin/glnxa64/libmwwkspintrospect.so+00202546
[ 33] 0x00007f67d1018f35 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00454453
[ 34] 0x00007f67d1000c57 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00355415 _ZN13Mfh_MATLAB_fn11dispatch_fhEiPP11mxArraytagiS2+00000391
[ 35] 0x00007f67bdc4e15a /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcos_impl.so+02580826
[ 36] 0x00007f67d104a977 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00657783
[ 37] 0x00007f67d1018f35 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00454453
[ 38] 0x00007f67d1000c57 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00355415 _ZN13Mfh_MATLAB_fn11dispatch_fhEiPP11mxArraytagiS2+00000391
[ 39] 0x00007f67cb6d58af /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+08612015
[ 40] 0x00007f67cb7f97ff /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+09807871
[ 41] 0x00007f67cb7ef254 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+09765460
[ 42] 0x00007f67cb7bc901 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+09558273
[ 43] 0x00007f67cb41ed6c /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+05766508
[ 44] 0x00007f67cb4094c1 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+05678273
[ 45] 0x00007f67cb418075 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+05738613
[ 46] 0x00007f67cb5e9033 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07643187
[ 47] 0x00007f67cb5b1c0c /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07416844
[ 48] 0x00007f67cb5b2dba /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07421370
[ 49] 0x00007f67cb5b2eb4 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07421620
[ 50] 0x00007f67cb5e7abb /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07637691
[ 51] 0x00007f67cb635ce2 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07957730
[ 52] 0x00007f67cb6363f1 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07959537
[ 53] 0x00007f67d1018f35 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00454453
[ 54] 0x00007f67d1000c57 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_dispatcher.so+00355415 _ZN13Mfh_MATLAB_fn11dispatch_fhEiPP11mxArraytagiS2+00000391
[ 55] 0x00007f67cb830e6e /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+10034798
[ 56] 0x00007f67cb830ebd /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+10034877
[ 57] 0x00007f67cb5aff9c /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07409564
[ 58] 0x00007f67cb5b01d2 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07410130
[ 59] 0x00007f67cb6297e4 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07907300
[ 60] 0x00007f67cb6295cd /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07906765
[ 61] 0x00007f67cb62a3af /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_lxe.so+07910319
[ 62] 0x00007f67d058c120 /nfsd/opt/matlab2015b/bin/glnxa64/libmwm_interpreter.so+02601248 _Z44inCallFcnWithTrapInDesiredWSAndPublishEventsiPP11mxArray_tagiS1_PKcbP15inWorkSpace_tag+00000096
[ 63] 0x00007f67d2184ee4 /nfsd/opt/matlab2015b/bin/glnxa64/libmwiqm.so+00909028 _ZN3iqm15BaseFEvalPlugin7executeEP15inWorkSpace_tagRN5boost10shared_ptrIN14cmddistributor17IIPCompletedEventEEE+00000356
[ 64] 0x00007f67a96b1a33 /nfsd/opt/matlab2015b/bin/glnxa64/libnativejmi.so+00854579 _ZN9nativejmi14JmiFEvalPlugin7executeEP15inWorkSpace_tagRN5boost10shared_ptrIN14cmddistributor17IIPCompletedEventEEE+00000307
[ 65] 0x00007f67a96d8275 /nfsd/opt/matlab2015b/bin/glnxa64/libnativejmi.so+01012341 _ZN3mcr3mvm27McrSwappingIqmPluginAdapterIN9nativejmi14JmiFEvalPluginEE7executeEP15inWorkSpace_tagRN5boost10shared_ptrIN14cmddistributor17IIPCompletedEventEEE+00000437
[ 66] 0x00007f67d21801c6 /nfsd/opt/matlab2015b/bin/glnxa64/libmwiqm.so+00889286
[ 67] 0x00007f67d216d645 /nfsd/opt/matlab2015b/bin/glnxa64/libmwiqm.so+00812613
[ 68] 0x00007f67ccce9bf9 /nfsd/opt/matlab2015b/bin/glnxa64/libmwbridge.so+00146425
[ 69] 0x00007f67cccea1f4 /nfsd/opt/matlab2015b/bin/glnxa64/libmwbridge.so+00147956
[ 70] 0x00007f67cccef6cd /nfsd/opt/matlab2015b/bin/glnxa64/libmwbridge.so+00169677
[ 71] 0x00007f67cccef7bc /nfsd/opt/matlab2015b/bin/glnxa64/libmwbridge.so+00169916
[ 72] 0x00007f67cccefead /nfsd/opt/matlab2015b/bin/glnxa64/libmwbridge.so+00171693 _Z8mnParserv+00000749
[ 73] 0x00007f67d1341b4f /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcr.so+00686927 _ZN11mcrInstance30mnParser_on_interpreter_threadEv+00000031
[ 74] 0x00007f67d132e443 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcr.so+00607299
[ 75] 0x00007f67d132ea39 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcr.so+00608825 _ZN5boost6detail11task_objectIvNS_3_bi6bind_tIvPFvRKNS_8functionIFvvEEEENS2_5list1INS2_5valueIS6_EEEEEEE6do_runEv+00000025
[ 76] 0x00007f67d132ff47 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcr.so+00614215 _ZN5boost6detail9task_baseIvE3runEv+00000071
[ 77] 0x00007f67d132ffa7 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcr.so+00614311
[ 78] 0x00007f67d132b2fa /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcr.so+00594682
[ 79] 0x00007f67c4cf16b6 /nfsd/opt/matlab2015b/bin/glnxa64/libmwuix.so+00313014
[ 80] 0x00007f67c4cd7862 /nfsd/opt/matlab2015b/bin/glnxa64/libmwuix.so+00206946
[ 81] 0x00007f67d1cc10df /nfsd/opt/matlab2015b/bin/glnxa64/libmwservices.so+03002591
[ 82] 0x00007f67d1cc124c /nfsd/opt/matlab2015b/bin/glnxa64/libmwservices.so+03002956
[ 83] 0x00007f67d1cc2d9f /nfsd/opt/matlab2015b/bin/glnxa64/libmwservices.so+03009951
[ 84] 0x00007f67d1cc384c /nfsd/opt/matlab2015b/bin/glnxa64/libmwservices.so+03012684 _Z25svWS_ProcessPendingEventsiib+00000092
[ 85] 0x00007f67d132b9b8 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcr.so+00596408
[ 86] 0x00007f67d132bcd4 /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcr.so+00597204
[ 87] 0x00007f67d1317fed /nfsd/opt/matlab2015b/bin/glnxa64/libmwmcr.so+00516077
[ 88] 0x00007f67da2b9182 /lib/x86_64-linux-gnu/libpthread.so.0+00033154
[ 89] 0x00007f67d9fe647d /lib/x86_64-linux-gnu/libc.so.6+01025149 clone+00000109
[ 90] 0x0000000000000000
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.
If this problem is reproducible, please submit a Service Request via: http://www.mathworks.com/support/contact_us/
A technical support engineer might contact you with further information.
Thank you for your help.
Mhhh so the load is crashing? I actually was able to load with no error, but then I crashed when using the object.
In my case load is crashing directly. I am using Matlab2015b
I think I know how to prevent the crash (but without a working load at the moment). I will push it in the afternoon.
ok, thanks! But are there any workaround to been able to load and use the data afterwards?
Which kind of variables? Perhaps we can write some specialized saveobj/loadobj methods for those objects that convert them to matlab objects for storing, as @naveenoid was proposing.
Basically I am working with the repository 'semiparametric_matlab' and the data I save executing that repository give me the error when loading them back.
At the moment the warning message is complaining with the variables belonging from the class 'IncrementalParametricEstimator'. Clearly there might be other problematic variables as well that I do not see at the moment.
Ok, so I should be able to replicate by running:
semiparametric_CADpar_script_generalization
save datasaved.mat
load datasaved.mat
Right?
I am using the file:
semiparametric_CADpar_script_generalization
but looking to the other one it should be the same. (Anyway I will try also with semiparametric_estpar_script_generalization_repeated to see if the issue is also there)
Disclaimer: I have not read the whole conversation.
However, if you have to save large variables use the flag '-v7.3' of the save function, as follows:
save(filename,'dumvar','-v7.3');
It happened to me that large variables were not saved properly and led to a crash during loading.
Hope it helps.
Ok, I will try with
semiparametric_CADpar_script_generalization
save datasaved.mat
load datasaved.mat
cc @nunoguedelha
save/load is not supported.
As a first step, overload saveobj / loadobj to produce a clear warning message explaining the problem (this probably should be done at swig level).
In theory this should be possible by just modifyng the
SwigRef.m
that is the base class for all the SWIG Matlab classes, see the upstream issue at https://github.com/jaeandersson/swig/issues/59 .cc @naveenoid @francesco-romano