[Insight-users] Crash in release on windows XP SP3 box

Luis Ibanez luis.ibanez at kitware.com
Mon May 24 12:51:39 EDT 2010


Hi Vincent,

A) Are you building ITK libraries as Shared ?

B) Have you verified that you don't have multiple versions of ITK around ?


Please let us know,


    Thanks


          Luis


-----------------
On Thu, May 20, 2010 at 11:44 AM, Daanen Vincent <daanen at koelis.com> wrote:
> Dear all,
>
> Here's more information.
>
> The application crashes on the creation of reader in the following lines
>
> STestFixture_Itk2Gmcao(const char *p_pFn)
> {
>  typedef itk::ImageFileReader< TItkInterface::TItkImage > ReaderType;
>  typedef itk::AnalyzeImageIO ImageIOType;
>
>  ReaderType::Pointer reader = ReaderType::New();                       <<<
> CRASH here
>  ImageIOType::Pointer AnalyzeImageIO = ImageIOType::New();
>  reader->SetFileName(p_pFn);
>  reader->SetImageIO( AnalyzeImageIO );
>
>  try {
>        reader->Update();
>  }
>  catch( itk::ExceptionObject & err ) {
>        std::cerr << "ExceptionObject caught !" << std::endl;
>        std::cerr << err << std::endl;
>        return ;
>  }
>
>  m_pItkImage = reader->GetOutput();
> }
>
>
> The callstack is the following:
>         Test_ItkTools.exe!std::vector<int,std::allocator<int>
>>::_Insert_n()  + 0x8 octets    C++
>        Test_ItkTools.exe!std::vector<int,std::allocator<int> >::resize()  +
> 0x51 octets     C++
>        Test_ItkTools.exe!itk::ImageIORegion::ImageIORegion()  + 0x66 octets
> C++
>        Test_ItkTools.exe!itk::ImageFileReader<itk::Image<unsigned
> short,3>,itk::DefaultConvertPixelTraits<unsigned short>
>>::ImageFileReader<itk::Image<unsigned
> short,3>,itk::DefaultConvertPixelTraits<unsigned short> >()  Ligne 37 + 0x81
> octets  C++
>        Test_ItkTools.exe!itk::ImageFileReader<itk::Image<unsigned
> short,3>,itk::DefaultConvertPixelTraits<unsigned short> >::New()  Ligne 102
> + 0x6e octets   C++
>
> Does anyone knows a way to correct this ? It only crashes in release mode
>
> Thanks
>
>  V
>
>> -----Message d'origine-----
>> De : insight-users-bounces at itk.org
>> [mailto:insight-users-bounces at itk.org] De la part de Daanen Vincent
>> Envoyé : jeudi 20 mai 2010 17:01
>> À : insight-users at itk.org
>> Objet : [Insight-users] Crash in release on windows XP SP3 box
>>
>> Dear all,
>>
>> I'm using Itk to perform so basic image manipulation and processing. I
>> developped the components I need in Debug configuration and
>> all works fine.
>> I could validate them.
>>
>> I now want to check performance so I compile in release configuration
>> (compilation/link ok).
>> When I test/check my components, program crashes where as I
>> do not have any
>> warning nor assertions in debug.
>>
>> Does anybody could point me to some points to check ?
>>
>> Here's my configuration:
>>  Windows XP SP3 box
>>  VS2005 compiler (Standard edition)
>>  Itk libraries are static libraries compiled with /MT (or
>> /MTd in debug)
>> flag.
>>
>> Thanks
>>
>> V
>>
>>
>>
>> --------------------------------------------
>> Vincent Daanen, PhD
>> D&D Manager
>>
>> --------------------------------------------
>> KOELIS
>> 5, avenue du Grand Sablon 38700 La Tronche
>> www.koelis.com  -  daanen at koelis.com
>> Tel .+33(0) 476637588 Fax .+33(0) 476637592
>> --------------------------------------------
>>
>> CONFIDENTIALITY This e-mail and any attachments are
>> confidential and may
>> also be privileged. If you are not the named recipient,
>> please notify the
>> sender immediately and do not disclose the contents to
>> another person, use
>> it for any purpose, or store or copy the information in any medium.
>>
>> "Les problèmes ne peuvent être résolus par ceux dont
>> l'horizon se limite aux
>> réalités quotidiennes,  mais par ceux qui rêvent de choses
>> qui n'ont jamais
>> existé et qui se disent : Pourquoi Pas ?" (J-F Kennedy, 1963).
>>
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.html
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-users
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>


More information about the Insight-users mailing list