[vtkusers] Using VTK through mex (MATLAB) on 64 bit Mac OSX 10.7
Kevlon
aquino.km at gmail.com
Wed Aug 1 20:56:11 EDT 2012
Hi,
sorry for the late reply (was off site), The trouble im having is a
segmentation fault when I execute the smoothing filter with
vtkSmoothPolyDataFilter, a problem i have not been getting on my 32-bit
build. I have used both 5.4 and 5.10 with the same error.
Below I have the backtrace, does this help?
I haven't used any memory debugging tools just yet.
------------------------------------------------------------------------
Segmentation violation detected at Thu Aug 2 10:17:09 2012
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Current Visual : None
Default Encoding: ISO-8859-1
MATLAB Root : /Applications/MATLAB_R2011b.app
MATLAB Version : 7.13.0.564 (R2011b)
Operating System: Darwin 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr 9
19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64
Processor ID : x86 Family 6 Model 10 Stepping 7, GenuineIntel
Virtual Machine : Java 1.6.0_33-b03-424-11M3720 with Apple Inc. Java
HotSpot(TM) 64-Bit Server VM mixed mode
Window System : No active display
Fault Count: 1
Abnormal termination:
Segmentation violation
Register State (from fault):
RAX = 000000010c543ad0 RBX = 0000000127688b76
RCX = 00000001279389b0 RDX = 0000000000000027
RSP = 00000001276e19b7 RBP = 000000010c543b10
RSI = 0000000000000000 RDI = 0000000000000000
R8 = 000000012793ef00 R9 = 00000001258f5520
R10 = 0000000000000003 R11 = 00000001258f5520
R12 = 0000000125eb1c60 R13 = 00000001258f5520
R14 = 000000010c543ba0 R15 = 00000001276e150b
RIP = 0000000000000003 RFL = 00000001258f5580
CS = 0000000125ea5a80 FS = 0000000125ea5a80 GS = 0000000125eaa000
Stack Trace (from fault):
[ 0] 0x000000010014f6b6
/Applications/MATLAB_R2011b.app/bin/maci64/libmwfl.dylib+00042678
_ZN2fl4diag15stacktrace_base7captureERKNS0_14thread_contextEm+000150
[ 1] 0x000000010015038c
/Applications/MATLAB_R2011b.app/bin/maci64/libmwfl.dylib+00045964
fl_diag_terminate+000396
[ 2] 0x0000000100151c1e
/Applications/MATLAB_R2011b.app/bin/maci64/libmwfl.dylib+00052254
_ZN2fl4diag13terminate_logEPKcRKNS0_14thread_contextEb+000158
[ 3] 0x00000001007ae853
/Applications/MATLAB_R2011b.app/bin/maci64/libmwmcr.dylib+00305235
mnSigInitCallbacks+000371
[ 4] 0x00000001007afe14
/Applications/MATLAB_R2011b.app/bin/maci64/libmwmcr.dylib+00310804
_Z32mnRunPathDependentInitializationv+002116
[ 5] 0x00000001007b01d8
/Applications/MATLAB_R2011b.app/bin/maci64/libmwmcr.dylib+00311768
_Z32mnRunPathDependentInitializationv+003080
[ 6] 0x00000001007b0863
/Applications/MATLAB_R2011b.app/bin/maci64/libmwmcr.dylib+00313443
_Z32mnRunPathDependentInitializationv+004755
[ 7] 0x00000001007b1505
/Applications/MATLAB_R2011b.app/bin/maci64/libmwmcr.dylib+00316677
mnFatalSignalHandler+000149
[ 8] 0x00007fff9464ccfa
/usr/lib/system/libsystem_c.dylib+00666874 _sigtramp+000026
[ 9] 0x000000010c543eb0
/usr/lib/system/libsystem_c.dylib+18446603342529011376
[ 10] 0x00000001276e150b
/Users/kevlon/projects/aquino/toolbox/VISTASOFT/myfixes/kevFixes/BuildMesh/smooth_mesh.mexmaci64+00820491
_ZN11vtkPolyData13ComputeBoundsEv+000363
[ 11] 0x000000012767c8f6
/Users/kevlon/projects/aquino/toolbox/VISTASOFT/myfixes/kevFixes/BuildMesh/smooth_mesh.mexmaci64+00407798
_ZN10vtkDataSet9GetLengthEv+000038
[ 12] 0x00000001276351cd
/Users/kevlon/projects/aquino/toolbox/VISTASOFT/myfixes/kevFixes/BuildMesh/smooth_mesh.mexmaci64+00115149
_ZN23vtkSmoothPolyDataFilter11RequestDataEP14vtkInformationPP20vtkInformationVectorS3_+001821
[ 13] 0x000000012768657e
/Users/kevlon/projects/aquino/toolbox/VISTASOFT/myfixes/kevFixes/BuildMesh/smooth_mesh.mexmaci64+00447870
_ZN12vtkExecutive13CallAlgorithmEP14vtkInformationiPP20vtkInformationVectorS3_+000078
[ 14] 0x000000012767fa69
/Users/kevlon/projects/aquino/toolbox/VISTASOFT/myfixes/kevFixes/BuildMesh/smooth_mesh.mexmaci64+00420457
_ZN23vtkDemandDrivenPipeline11ExecuteDataEP14vtkInformationPP20vtkInformationVectorS3_+000073
[ 15] 0x000000012767f147
/Users/kevlon/projects/aquino/toolbox/VISTASOFT/myfixes/kevFixes/BuildMesh/smooth_mesh.mexmaci64+00418119
_ZN23vtkDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+001383
[ 16] 0x00000001277178c7
/Users/kevlon/projects/aquino/toolbox/VISTASOFT/myfixes/kevFixes/BuildMesh/smooth_mesh.mexmaci64+01042631
_ZN32vtkStreamingDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+000631
[ 17] 0x000000012767f89e
/Users/kevlon/projects/aquino/toolbox/VISTASOFT/myfixes/kevFixes/BuildMesh/smooth_mesh.mexmaci64+00419998
_ZN23vtkDemandDrivenPipeline10UpdateDataEi+000574
[ 18] 0x00000001277179f5
/Users/kevlon/projects/aquino/toolbox/VISTASOFT/myfixes/kevFixes/BuildMesh/smooth_mesh.mexmaci64+01042933
_ZN32vtkStreamingDemandDrivenPipeline6UpdateEi+000133
[ 19] 0x000000012761bc1b
/Users/kevlon/projects/aquino/toolbox/VISTASOFT/myfixes/kevFixes/BuildMesh/smooth_mesh.mexmaci64+00011291
_ZN10CVTKFilter6SmoothERP11vtkPolyData+000409
[ 20] 0x000000012761c2fd
/Users/kevlon/projects/aquino/toolbox/VISTASOFT/myfixes/kevFixes/BuildMesh/smooth_mesh.mexmaci64+00013053
mexFunction+000461
[ 21] 0x0000000103b5695a
/Applications/MATLAB_R2011b.app/bin/maci64/libmex.dylib+00022874
mexRunMexFile+000090
[ 22] 0x0000000103b52ee9
/Applications/MATLAB_R2011b.app/bin/maci64/libmex.dylib+00007913
_ZN7Mfh_mex30runMexFileWithSignalProtectionEiPP11mxArray_tagiS2_+000137
[ 23] 0x0000000103b54669
/Applications/MATLAB_R2011b.app/bin/maci64/libmex.dylib+00013929
_ZN7Mfh_mex13dispatch_fileEiPP11mxArray_tagiS2_+000265
[ 24] 0x000000010089d8b2
/Applications/MATLAB_R2011b.app/bin/maci64/libmwm_dispatcher.dylib+00276658
_ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2_+000482
[ 25] 0x0000000100a67d3a
/Applications/MATLAB_R2011b.app/bin/maci64/libmwm_interpreter.dylib+01355066
_Z19inDispatchFromStackiPKcii+001034
[ 26] 0x00000001009ffdc3
/Applications/MATLAB_R2011b.app/bin/maci64/libmwm_interpreter.dylib+00929219
inCallFcnFromReference+000307
[ 27] 0x0000000100a1bd49
/Applications/MATLAB_R2011b.app/bin/maci64/libmwm_interpreter.dylib+01043785
_Z16inEnterDebugModeN5boost8functionIFvvEEEb+007385
[ 28] 0x0000000100a21c0c
/Applications/MATLAB_R2011b.app/bin/maci64/libmwm_interpreter.dylib+01068044
_Z18protected_inInterp12inDebugCheckii7opcodesP15inPcodeNest_tagPl+000140
[ 29] 0x0000000100a1ebfe
/Applications/MATLAB_R2011b.app/bin/maci64/libmwm_interpreter.dylib+01055742
_Z16inEnterDebugModeN5boost8functionIFvvEEEb+019342
[ 30] 0x0000000100a1fae0
/Applications/MATLAB_R2011b.app/bin/maci64/libmwm_interpreter.dylib+01059552
_Z26inExecuteMFunctionOrScriptP6Mfh_mpb+000688
[ 31] 0x0000000100a812d8
/Applications/MATLAB_R2011b.app/bin/maci64/libmwm_interpreter.dylib+01458904
_Z10inRunMfileiPP11mxArray_tagiS1_P6Mfh_mpP15inWorkSpace_tag+001336
[ 32] 0x000000010089d8b2
/Applications/MATLAB_R2011b.app/bin/maci64/libmwm_dispatcher.dylib+00276658
_ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2_+000482
[ 33] 0x0000000100a57d14
/Applications/MATLAB_R2011b.app/bin/maci64/libmwm_interpreter.dylib+01289492
_Z23inEvalPcodeHeaderToWordP15_memory_contextiPP11mxArray_tagP12_pcodeheaderP6Mfh_mpj+000260
[ 34] 0x0000000100a152a2
/Applications/MATLAB_R2011b.app/bin/maci64/libmwm_interpreter.dylib+01016482
_Z25in_local_call_with_setjmpIN5boost3_bi6bind_tIvPFvP15_memory_contextPiPP11mxArray_tagP12_pcodeheaderjENS1_5list5INS1_5valueIS4_EENS0_3argILi1EEENSG_ILi2EEENSE_ISA_EENSE_IiEEEEEEE17inExecutionStatusT_S5_S8_b+000082
[ 35] 0x0000000100a1332d
/Applications/MATLAB_R2011b.app/bin/maci64/libmwm_interpreter.dylib+01008429
_ZN7EvalLog6setLogEiPP11mxArray_tagiS2_+008429
[ 36] 0x0000000100a139c5
/Applications/MATLAB_R2011b.app/bin/maci64/libmwm_interpreter.dylib+01010117
_ZN12InterpBridge19EvalExpWithIsVarFcnEPKciPP11mxArray_tagPFbPvS1_ES5_b+000341
[ 37] 0x000000010072e3ce
/Applications/MATLAB_R2011b.app/bin/maci64/libmwbridge.dylib+00054222
_Z28evalCommandWithLongjmpSafetyPKc+000094
[ 38] 0x000000010072f4fe
/Applications/MATLAB_R2011b.app/bin/maci64/libmwbridge.dylib+00058622
mnParser+000686
[ 39] 0x0000000100794b19
/Applications/MATLAB_R2011b.app/bin/maci64/libmwmcr.dylib+00199449
_ZN11mcrInstance30mnParser_on_interpreter_threadEv+000041
[ 40] 0x0000000100771beb
/Applications/MATLAB_R2011b.app/bin/maci64/libmwmcr.dylib+00056299
_ZN3mcr7runtime17InterpreterThread4Impl17InvocationRequest3runEv+000715
[ 41] 0x0000000100771e35
/Applications/MATLAB_R2011b.app/bin/maci64/libmwmcr.dylib+00056885
_ZN3mcr7runtime17InterpreterThread4Impl26invocation_request_handlerEl+000053
[ 42] 0x00000001003cc884
/Applications/MATLAB_R2011b.app/bin/maci64/libmwservices.dylib+00161924
_ZN10eventqueue18UserEventQueueImpl5flushEv+000756
[ 43] 0x00000001003cca2a
/Applications/MATLAB_R2011b.app/bin/maci64/libmwservices.dylib+00162346
_ZN10eventqueue8ReadPipeEib+000026
[ 44] 0x00000001003cb376
/Applications/MATLAB_R2011b.app/bin/maci64/libmwservices.dylib+00156534
_ZN10eventqueue18UserEventQueueImpl9selectFcnEb+000326
[ 45] 0x00000001062db569
/Applications/MATLAB_R2011b.app/bin/maci64/libmwuix.dylib+00271721
_ZN21uix_nodisplay_ppeHook16pollingDuringFcnEb+000025
[ 46] 0x000000010615f7a2
/Applications/MATLAB_R2011b.app/bin/maci64/libuij.dylib+00149410
_ZSt8for_eachIN9__gnu_cxx17__normal_iteratorIPN5boost8weak_ptrIN4sysq10ws_ppeHookEEESt6vectorIS6_SaIS6_EEEENS4_8during_FIS6_NS2_10shared_ptrIS5_EEEEET0_T_SH_SG_+000162
[ 47] 0x00000001061604b9
/Applications/MATLAB_R2011b.app/bin/maci64/libuij.dylib+00152761
_ZN4sysq12ppe_for_eachINS_8during_FIN5boost8weak_ptrINS_10ws_ppeHookEEENS2_10shared_ptrIS4_EEEEEET_S9_+000201
[ 48] 0x000000010615d0a5
/Applications/MATLAB_R2011b.app/bin/maci64/libuij.dylib+00139429
_Z25svWS_ProcessPendingEventsiib+000501
[ 49] 0x0000000100770ad6
/Applications/MATLAB_R2011b.app/bin/maci64/libmwmcr.dylib+00051926
_ZN3mcr7runtime17InterpreterThread4Impl14process_eventsERKN5boost10shared_ptrIS2_EE+000150
[ 50] 0x0000000100770dbb
/Applications/MATLAB_R2011b.app/bin/maci64/libmwmcr.dylib+00052667
_ZN3mcr7runtime17InterpreterThread4Impl3runERKN5boost10shared_ptrIS2_EEPNS2_12init_contextE+000187
[ 51] 0x0000000100770fcc
/Applications/MATLAB_R2011b.app/bin/maci64/libmwmcr.dylib+00053196
_Z26run_init_and_handle_eventsPv+000060
[ 52] 0x00007fff945f88bf
/usr/lib/system/libsystem_c.dylib+00321727 _pthread_start+000335
[ 53] 0x00007fff945fbb75
/usr/lib/system/libsystem_c.dylib+00334709 thread_start+000013
--
View this message in context: http://vtk.1045678.n5.nabble.com/Using-VTK-through-mex-MATLAB-on-64-bit-Mac-OSX-10-7-tp5714652p5715044.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list