<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">What version of XCode are you using? compiler gcc vs clang? c++ library (libstdc++ or stdc++)?<div><br></div><div>ITK 3 is not being maintained to support the latest OSX XCode changes. I would suggest trying older versions of XCode, like the one with the genuine GNU gcc 4.2.</div><div><br></div><div>Brad</div><div><br><div><div>On Jun 6, 2014, at 12:46 PM, Wagner Sales <<a href="mailto:wsales@gmail.com">wsales@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Hi,<br><br>I´m doing some improvements in an application developed a couple of years ago. This application runs on Mac OS X 10.8.5 and uses ITK 3.20.1. My improvements consist in implements some image registration capabilities.<div>
<br>After implementation ( was I did and tested using a Linux system, and eventually a Windows 7 system ), when I start to test on Apple platform, a lot of crashes starts to occur on itk::ResampleImageFilter.<div><br>Of course, I first supposed problems in my code, but after a lot of try, I´ve found nothing.<br>
Then I tried to run MultiResImageRegistration3.cxx example, and crashes occurs too!<br><div>Well, after this I compiled the latest version of ITK with ITKv3 compability flag turned on, an compiled my program against this version. Works! </div>
<div><br></div><div>My question is: </div><div>Someone was found some similar problem on Mac OS? </div><div>ITK 3.20.1 depends on different compilation flags or different libs on this platform? </div><div><br></div><div>Since the application are on a production environment today, will be more difficult start a non-planned migration against new version of ITK due the time and resources available.</div>
</div></div><div><br></div><div>Some portion of the crash:</div><div><br></div><div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">0 imageregistration <span style="white-space:pre-wrap"> </span>0x00000001051cc662 itk::NearestNeighborInterpolateImageFunction<itk::Image<unsigned short, 3u>, double>::EvaluateAtContinuousIndex(itk::ContinuousIndex<double, 3u> const&) const + 146</div>
<div style="font-family:arial,sans-serif;font-size:13.333333969116211px">1 imageregistration <span style="white-space:pre-wrap"> </span>0x00000001051d04c0 itk::ResampleImageFilter<itk::Image<unsigned short, 3u>, itk::Image<unsigned short, 3u>, double>::LinearThreadedGenerateData(itk::ImageRegion<3u> const&, int) + 2816</div>
<div style="font-family:arial,sans-serif;font-size:13.333333969116211px">2 imageregistration <span style="white-space:pre-wrap"> </span>0x00000001051d138c itk::ImageSource<itk::Image<unsigned short, 3u> >::ThreaderCallback(void*) + 140</div>
<div style="font-family:arial,sans-serif;font-size:13.333333969116211px">3 imageregistration <span style="white-space:pre-wrap"> </span>0x0000000105286d0a itk::MultiThreader::SingleMethodExecute() + 1050</div>
<div style="font-family:arial,sans-serif;font-size:13.333333969116211px">4 imageregistration <span style="white-space:pre-wrap"> </span>0x00000001051cdb03 itk::ImageSource<itk::Image<unsigned short, 3u> >::GenerateData() + 131</div>
<div style="font-family:arial,sans-serif;font-size:13.333333969116211px">5 imageregistration <span style="white-space:pre-wrap"> </span>0x000000010529a0e0 itk::ProcessObject::UpdateOutputData(itk::DataObject*) + 1280</div>
<div style="font-family:arial,sans-serif;font-size:13.333333969116211px">6 imageregistration <span style="white-space:pre-wrap"> </span>0x000000010527f73c itk::DataObject::UpdateOutputData() + 172</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">
7 imageregistration <span style="white-space:pre-wrap"> </span>0x00000001050bc571 itk::ImageBase<3u>::UpdateOutputData() + 353</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">
8 imageregistration <span style="white-space:pre-wrap"> </span>0x000000010527f2f5 itk::DataObject::Update() + 69</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">9 imageregistration <span style="white-space:pre-wrap"> </span>0x000000010529931c itk::ProcessObject::Update() + 76</div>
</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">
Thanks for any help!</div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br></div><div style="font-family:arial,sans-serif;font-size:13.333333969116211px">Wagner Sales</div></div>
_____________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://www.kitware.com/products/protraining.php<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.itk.org/mailman/listinfo/insight-users<br></blockquote></div><br></div></body></html>