Hi Luis,<div><br></div><div>Sorry for the late answer, I didn&#39;t see your response!</div><div><br></div><div>Yes I already checked it an nothing looks wrong to me, here is the output:</div><div><br></div><div><div>n@dhc0:~/BUILD/gofigure2/bin/gofigure.app/Contents/MacOS  $ otool -L gofigure </div>
<div>gofigure:</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/BUILD/gofigure2/bin/gofigure.app/Contents/MacOS/libQGoGui.0.8.dylib (compatibility version 0.8.0, current version 0.8.0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/BUILD/gofigure2/bin/gofigure.app/Contents/MacOS/libQGoIO.0.8.dylib (compatibility version 0.8.0, current version 0.8.0)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/BUILD/gofigure2/bin/gofigure.app/Contents/MacOS/libitkQt.0.8.dylib (compatibility version 0.8.0, current version 0.8.0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/BUILD/gofigure2/bin/gofigure.app/Contents/MacOS/libGoFilter.0.8.dylib (compatibility version 0.8.0, current version 0.8.0)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/BUILD/gofigure2/bin/gofigure.app/Contents/MacOS/libvtkLSMReader.0.8.dylib (compatibility version 0.8.0, current version 0.8.0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libQVTK.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/Trolltech/Qt-4.6.3/lib/QtWebKit.framework/Versions/4/QtWebKit (compatibility version 4.6.0, current version 4.6.3)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/Trolltech/Qt-4.6.3/lib/phonon.framework/Versions/4/phonon (compatibility version 4.3.0, current version 4.3.1)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/Trolltech/Qt-4.6.3/lib/QtXmlPatterns.framework/Versions/4/QtXmlPatterns (compatibility version 4.6.0, current version 4.6.3)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/Trolltech/Qt-4.6.3/lib/QtNetwork.framework/Versions/4/QtNetwork (compatibility version 4.6.0, current version 4.6.3)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkViews.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkInfovis.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtklibxml2.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkalglib.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/BUILD/gofigure2/bin/gofigure.app/Contents/MacOS/libvtkRenderingAddOn2.0.8.dylib (compatibility version 0.8.0, current version 0.8.0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkWidgets.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkVolumeRendering.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/BUILD/gofigure2/bin/gofigure.app/Contents/MacOS/libPoissonReconstruction.0.8.dylib (compatibility version 0.8.0, current version 0.8.0)</div><div>
<span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkHybrid.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkRendering.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkIO.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkDICOMParser.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkNetCDF.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkNetCDF_cxx.dylib (compatibility version 0.0.0, current version 0.0.0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkmetaio.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtksqlite.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkpng.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkzlib.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkjpeg.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtktiff.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkexpat.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkImaging.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/Trolltech/Qt-4.6.3/lib/QtSql.framework/Versions/4/QtSql (compatibility version 4.6.0, current version 4.6.3)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkGraphics.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkFiltering.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkCommon.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtksys.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkverdict.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkfreetype.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkexoIIc.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/VTK/BUILD/bin/libvtkftgl.5.9.dylib (compatibility version 5.9.0, current version 5.9.0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/BUILD/gofigure2/bin/gofigure.app/Contents/MacOS/libctk.0.8.dylib (compatibility version 0.8.0, current version 0.8.0)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libITKAlgorithms.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libITKNumerics.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libITKStatistics.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libitkNetlibSlatec.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libITKFEM.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libITKBasicFilters.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libITKIO.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libITKNrrdIO.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libitkgdcm.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libitkjpeg12.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libitkjpeg16.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libitkopenjpeg.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.0.0)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libitkpng.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libitktiff.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libitkjpeg8.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libITKSpatialObject.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libITKCommon.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libitkvnl_inst.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libitkvnl_algo.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libitkv3p_netlib.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libitkvnl.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libitkvcl.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libitkv3p_lsqr.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libITKMetaIO.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libitksys.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libITKDICOMParser.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libITKEXPAT.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libITKniftiio.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libITKznz.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/Users/nr52/GITROOT/ITK/BUILD/bin/libitkzlib.3.20.dylib (compatibility version 3.20.0, current version 3.20.1)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/Trolltech/Qt-4.6.3/lib/QtGui.framework/Versions/4/QtGui (compatibility version 4.6.0, current version 4.6.3)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/Trolltech/Qt-4.6.3/lib/QtCore.framework/Versions/4/QtCore (compatibility version 4.6.0, current version 4.6.3)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0)</div><div><br></div><div><br></div><div>I&#39;ve been able, after some modifications in the code/cmakelists to isolate/simplify? the problem.</div>
<div>Now, myITKFilter crashes in the Update() method.</div><div>The problem only occurs on Mac OSX SHARED.</div><div>The test related to the filter is working, only the application is crashing...</div><div><br></div><div>
Update() doesnt do anything fancy, I tried to simplify it as much as possible:</div><div><br></div><div>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;"><font class="Apple-style-span" size="1">  // shape stuff</font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;"><font class="Apple-style-span" size="1">  typedef LabelImageToShapeLabelMapFilter&lt; MaskImageType,ShapeLabelMapType &gt;  ShapeConverterType;</font></p>

<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;"><font class="Apple-style-span" size="1">  typedef typename ShapeConverterType::Pointer                  ShapeConverterPointer;</font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;"><font class="Apple-style-span" size="1"><br></font></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;"><font class="Apple-style-span" size="1">  ShapeConverterPointer shapeConverter = ShapeConverterType::New();</font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;"><font class="Apple-style-span" size="1"><br></font></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">  m_MaskImage-&gt;Print(std::cout); <span class="Apple-style-span" style="color: rgb(255, 255, 255); background-color: rgb(0, 153, 0);"> // No problem here, everything looks alright</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;"><font class="Apple-style-span" size="1"><br></font></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;"><font class="Apple-style-span" size="1">  shapeConverter-&gt;SetInput(m_MaskImage);</font></p>

<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;"><font class="Apple-style-span" size="1">  shapeConverter-&gt;SetBackgroundValue(0);</font></p>

<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;"><font class="Apple-style-span" size="1">  shapeConverter-&gt;SetComputePerimeter(false);</font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;"><font class="Apple-style-span" size="1"><br></font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;"><font class="Apple-style-span" size="1">  try</font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:768;"><font class="Apple-style-span" size="1">    {</font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:768;">    shapeConverter-&gt;Update();<span class="Apple-style-span" style="background-color: rgb(255, 0, 0); "><font class="Apple-style-span" color="#ffffff"> // Crash</font></span></p>

<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;"><font class="Apple-style-span" size="1">    }</font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;"><font class="Apple-style-span" size="1">  catch(itk::ExceptionObject &amp; e)</font></p>

<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:768;"><font class="Apple-style-span" size="1">    {</font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:768;"><font class="Apple-style-span" size="1">    std::cerr &lt;&lt; &quot;Exception Caught: &quot; &lt;&lt; e &lt;&lt; std::endl;</font></p>

<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:768;"><font class="Apple-style-span" size="1">    std::cerr &lt;&lt; &quot;shapeConverter-&gt;Update()&quot; &lt;&lt; std::endl;</font></p>

<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:768;"><font class="Apple-style-span" size="1">    return;</font></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;"><font class="Apple-style-span" size="1">    }</font></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">
<br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">...</p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">
<br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">here is the backtrace after the crash:</p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">
<br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;"></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">
Exception Type:  EXC_BAD_ACCESS (SIGSEGV)</p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">Exception Codes: 0x000000000000000d, 0x0000000000000000</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;"><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">
VM Regions Near 0:</p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">--&gt; </p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">
    __TEXT                 000000010c9d2000-000000010cadc000 [ 1064K] r-x/rwx SM=COW  /Users/USER/*/gofigure.app/Contents/MacOS/gofigure</p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">
<br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">Application Specific Information:</p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">
objc[47593]: garbage collection is OFF</p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;"><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">
Thread 0:: Dispatch queue: com.apple.main-thread</p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">0   libQGoGui.0.8.dylib           <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010cb8fca0 std::deque&lt;itk::LabelObjectLine&lt;3u&gt;, std::allocator&lt;itk::LabelObjectLine&lt;3u&gt; &gt; &gt;::push_back(itk::LabelObjectLine&lt;3u&gt; const&amp;) + 76</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">1   libQGoGui.0.8.dylib           <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010cba90ec itk::LabelMap&lt;itk::ShapeLabelObject&lt;bool, 3u&gt; &gt;::SetLine(itk::Index&lt;3u&gt; const&amp;, unsigned long const&amp;, bool const&amp;) + 186</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">2   libQGoGui.0.8.dylib           <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010cb9e4dc itk::LabelImageToLabelMapFilter&lt;itk::Image&lt;unsigned char, 3u&gt;, itk::LabelMap&lt;itk::ShapeLabelObject&lt;bool, 3u&gt; &gt; &gt;::ThreadedGenerateData(itk::ImageRegion&lt;3u&gt; const&amp;, int) + 528</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">3   libQGoGui.0.8.dylib           <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010cb88de5 itk::ImageSource&lt;itk::LabelMap&lt;itk::ShapeLabelObject&lt;bool, 3u&gt; &gt; &gt;::ThreaderCallback(void*) + 129</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">4   libITKCommon.3.20.dylib       <span class="Apple-tab-span" style="white-space:pre">        </span>0x00000001128ea6b1 itk::MultiThreader::SingleMethodExecute() + 565</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">5   libQGoGui.0.8.dylib           <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010cb9d11d itk::ImageSource&lt;itk::LabelMap&lt;itk::ShapeLabelObject&lt;bool, 3u&gt; &gt; &gt;::GenerateData() + 129</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">6   libITKCommon.3.20.dylib       <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000011290563a itk::ProcessObject::UpdateOutputData(itk::DataObject*) + 628</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">7   libQGoGui.0.8.dylib           <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010cb9a6e5 itk::ImageBase&lt;3u&gt;::UpdateOutputData() + 713</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">8   libITKCommon.3.20.dylib       <span class="Apple-tab-span" style="white-space:pre">        </span>0x0000000112905476 itk::ProcessObject::UpdateOutputData(itk::DataObject*) + 176</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">9   libQGoGui.0.8.dylib           <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010cb9a6e5 itk::ImageBase&lt;3u&gt;::UpdateOutputData() + 713</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">10  libQGoGui.0.8.dylib           <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010cb9ec34 itk::LabelImageToShapeLabelMapFilter&lt;itk::Image&lt;unsigned char, 3u&gt;, itk::LabelMap&lt;itk::ShapeLabelObject&lt;bool, 3u&gt; &gt; &gt;::GenerateData() + 442</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">11  libITKCommon.3.20.dylib       <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000011290563a itk::ProcessObject::UpdateOutputData(itk::DataObject*) + 628</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">12  libQGoGui.0.8.dylib           <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010cb9a6e5 itk::ImageBase&lt;3u&gt;::UpdateOutputData() + 713</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">13  libQGoGui.0.8.dylib           <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010cba48dc itk::BinaryMaskImageToGoFigureMeshAttributes&lt;itk::Image&lt;unsigned char, 3u&gt;, itk::Image&lt;unsigned char, 3u&gt; &gt;::GenerateData() + 184</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">14  libQGoGui.0.8.dylib           <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010cbaafa3 itk::vtkPolyDataToGoFigureMeshAttributes&lt;itk::Image&lt;unsigned char, 3u&gt; &gt;::GenerateData() + 663</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;"><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">
Thanks,</p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">Nicolas</p><p></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">
<br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;"><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:512;">
<br></p></div><br><div class="gmail_quote">On Sat, Aug 13, 2011 at 4:16 PM, Luis Ibanez <span dir="ltr">&lt;<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Nicolas,<br>
<br>
Please run the following command in your executable<br>
and let us know what you find.<br>
<br>
<br>
                         otool      -L     executable<br>
<br>
<br>
It should list all the shared libraries that your executable<br>
depends on.<br>
<br>
It is quite likely that you have some other version of<br>
shared libraries lurking around...<br>
<br>
<br>
      Luis<br>
<br>
<br>
<br>
-----------------------------------------------------------------------<br>
<div><div></div><div class="h5">On Thu, Aug 11, 2011 at 1:05 PM, Nicolas Rannou &lt;<a href="mailto:nicolas.lists@gmail.com">nicolas.lists@gmail.com</a>&gt; wrote:<br>
&gt; Hi all,<br>
&gt; I&#39;m having hard time debugging issues related to ITK and Mac.<br>
&gt; I can use my application on STATIC without any problem.<br>
&gt; If I try to go to SHARED mode on mac (to generate installers) my application<br>
&gt; is not working anymore: sometimes it crashes, sometimes it works.<br>
&gt; SHARED mode is working on windows and on linux!<br>
&gt; When it crashes, it crashes at random locations.<br>
&gt; Nevertheless, those locations are always itk-based objects.(See at the end<br>
&gt; of the mail several bt to illustrate my sayings)<br>
&gt; I tried my app with the ITK release branch (github) and with the ITK<br>
&gt; official release tar (<a href="http://itk.org/ITK/resources/software.html" target="_blank">http://itk.org/ITK/resources/software.html</a>)<br>
&gt; Did somebody already experienced this issue?<br>
&gt; Would somebody have any suggestion about how to fix/trac/debug this issue?<br>
&gt; I assume the problem is related to ITK SmartPointers being erased whereas<br>
&gt; they shouldn&#39;t?<br>
&gt;<br>
&gt; Thanks a lot,<br>
&gt; Nicolas<br>
&gt; ________________________________________________________________________<br>
&gt; ===============================================================<br>
&gt; ________________________________________________________________________<br>
&gt; Application Specific Information:<br>
&gt; objc[14057]: garbage collection is OFF<br>
&gt; *** error for object 0x7fab9a95ea10: pointer being freed was not allocated<br>
&gt; ________________________________________________________________________<br>
&gt; ===============================================================<br>
&gt; ________________________________________________________________________<br>
&gt; Exception Type:  EXC_BAD_ACCESS (SIGSEGV)<br>
&gt; Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000018<br>
&gt; VM Regions Near 0x18:<br>
&gt; --&gt;<br>
&gt;     __TEXT                 000000010b0a7000-000000010b1f9000 [ 1352K]<br>
&gt; r-x/rwx SM=COW  /Users/USER/*/gofigure.app/Contents/MacOS/gofigure<br>
&gt; Application Specific Information:<br>
&gt; objc[11040]: garbage collection is OFF<br>
&gt; Thread 0:: Dispatch queue: com.apple.main-thread<br>
&gt; 0   libQGoGui.0.8.dylib           0x000000010b777654<br>
&gt; itk::Index&lt;3u&gt;::operator[](unsigned int) + 20 (itkIndex.h:210)<br>
&gt; 1   libQGoGui.0.8.dylib           0x000000010b7831c5<br>
&gt; itk::ImageLinearConstIteratorWithIndex&lt;itk::Image&lt;unsigned char, 3u&gt;<br>
&gt;&gt;::operator++() + 49 (itkImageLinearConstIteratorWithIndex.h:196)<br>
&gt; 2   libQGoGui.0.8.dylib           0x000000010b5451e2<br>
&gt; itk::LabelImageToLabelMapFilter&lt;itk::Image&lt;unsigned char, 3u&gt;,<br>
&gt; itk::LabelMap&lt;itk::ShapeLabelObject&lt;bool, 3u&gt; &gt;<br>
&gt;&gt;::ThreadedGenerateData(itk::ImageRegion&lt;3u&gt; const&amp;, int) + 676<br>
&gt; (itkLabelImageToLabelMapFilter.txx:104)<br>
&gt; 3   libQGoGui.0.8.dylib           0x000000010b4f30c1<br>
&gt; itk::ImageSource&lt;itk::LabelMap&lt;itk::ShapeLabelObject&lt;bool, 3u&gt; &gt;<br>
&gt;&gt;::ThreaderCallback(void*) + 243 (itkImageSource.txx:296)<br>
&gt; 4   libITKCommon.3.20.dylib       0x00000001123216b1<br>
&gt; itk::MultiThreader::SingleMethodExecute() + 565<br>
&gt; 5   libQGoGui.0.8.dylib           0x000000010b541bd9<br>
&gt; itk::ImageSource&lt;itk::LabelMap&lt;itk::ShapeLabelObject&lt;bool, 3u&gt; &gt;<br>
&gt;&gt;::GenerateData() + 239 (itkImageSource.txx:244)<br>
&gt; 6   libITKCommon.3.20.dylib       0x000000011233c63a<br>
&gt; itk::ProcessObject::UpdateOutputData(itk::DataObject*) + 628<br>
&gt; 7   libQGoGui.0.8.dylib           0x000000010b8072cc<br>
&gt; itk::ImageBase&lt;3u&gt;::UpdateOutputData() + 124 (itkImageBase.txx:280)<br>
&gt; 8   libITKCommon.3.20.dylib       0x000000011233c476<br>
&gt; itk::ProcessObject::UpdateOutputData(itk::DataObject*) + 176<br>
&gt; 9   libQGoGui.0.8.dylib           0x000000010b8072cc<br>
&gt; itk::ImageBase&lt;3u&gt;::UpdateOutputData() + 124 (itkImageBase.txx:280)<br>
&gt; 10  libQGoGui.0.8.dylib           0x000000010b545c1b<br>
&gt; itk::LabelImageToShapeLabelMapFilter&lt;itk::Image&lt;unsigned char, 3u&gt;,<br>
&gt; itk::LabelMap&lt;itk::ShapeLabelObject&lt;bool, 3u&gt; &gt; &gt;::GenerateData() + 1049<br>
&gt; (itkLabelImageToShapeLabelMapFilter.txx:88)<br>
&gt; ________________________________________________________________________<br>
&gt; ===============================================================<br>
&gt; ________________________________________________________________________<br>
&gt; Exception Type:  EXC_BAD_ACCESS (SIGSEGV)<br>
&gt; Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000018<br>
&gt; VM Regions Near 0x18:<br>
&gt; --&gt;<br>
&gt;     __TEXT                 000000010b92c000-000000010ba7e000 [ 1352K]<br>
&gt; r-x/rwx SM=COW  /Users/USER/*/gofigure.app/Contents/MacOS/gofigure<br>
&gt; Application Specific Information:<br>
&gt; objc[11102]: garbage collection is OFF<br>
&gt; Thread 0:: Dispatch queue: com.apple.main-thread<br>
&gt; 0   libQGoGui.0.8.dylib           0x000000010bd65e5d<br>
&gt; itk::SmartPointer&lt;itk::ShapeLabelObject&lt;bool, 3u&gt; &gt;::operator-&gt;() const + 27<br>
&gt; (itkSmartPointer.h:70)<br>
&gt; 1   libQGoGui.0.8.dylib           0x000000010bde422a<br>
&gt; itk::ShapeLabelObject&lt;bool, 3u&gt;::New() + 186 (itkShapeLabelObject.h:54)<br>
&gt; 2   libQGoGui.0.8.dylib           0x000000010bde43c0<br>
&gt; itk::LabelMap&lt;itk::ShapeLabelObject&lt;bool, 3u&gt; &gt;::SetLine(itk::Index&lt;3u&gt;<br>
&gt; const&amp;, unsigned long const&amp;, bool const&amp;) + 252 (itkLabelMap.txx:291)<br>
&gt; 3   libQGoGui.0.8.dylib           0x000000010bdc81cf<br>
&gt; itk::LabelImageToLabelMapFilter&lt;itk::Image&lt;unsigned char, 3u&gt;,<br>
&gt; itk::LabelMap&lt;itk::ShapeLabelObject&lt;bool, 3u&gt; &gt;<br>
&gt;&gt;::ThreadedGenerateData(itk::ImageRegion&lt;3u&gt; const&amp;, int) + 657<br>
&gt; (itkLabelImageToLabelMapFilter.txx:120)<br>
&gt; 4   libQGoGui.0.8.dylib           0x000000010bd760c1<br>
&gt; itk::ImageSource&lt;itk::LabelMap&lt;itk::ShapeLabelObject&lt;bool, 3u&gt; &gt;<br>
&gt;&gt;::ThreaderCallback(void*) + 243 (itkImageSource.txx:296)<br>
&gt; 5   libITKCommon.3.20.dylib       0x0000000112bd06b1<br>
&gt; itk::MultiThreader::SingleMethodExecute() + 565<br>
&gt; 6   libQGoGui.0.8.dylib           0x000000010bdc4bd9<br>
&gt; itk::ImageSource&lt;itk::LabelMap&lt;itk::ShapeLabelObject&lt;bool, 3u&gt; &gt;<br>
&gt;&gt;::GenerateData() + 239 (itkImageSource.txx:244)<br>
&gt; 7   libITKCommon.3.20.dylib       0x0000000112beb63a<br>
&gt; itk::ProcessObject::UpdateOutputData(itk::DataObject*) + 628<br>
&gt; 8   libQGoGui.0.8.dylib           0x000000010c08a2cc<br>
&gt; itk::ImageBase&lt;3u&gt;::UpdateOutputData() + 124 (itkImageBase.txx:280)<br>
&gt; 9   libITKCommon.3.20.dylib       0x0000000112beb476<br>
&gt; itk::ProcessObject::UpdateOutputData(itk::DataObject*) + 176<br>
&gt; 10  libQGoGui.0.8.dylib           0x000000010c08a2cc<br>
&gt; itk::ImageBase&lt;3u&gt;::UpdateOutputData() + 124 (itkImageBase.txx:280)<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://kitware.com/products/protraining.html" target="_blank">http://kitware.com/products/protraining.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br></div>