[Insight-users] CableSwig using all memory

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Thu Jun 26 02:54:11 EDT 2008


Le 26 juin 08 à 08:46, Curzio Basso a écrit :

> Hi,
>
> I got a strange (for me) problem trying to compile WrapITK (on
> ITK-3.6.0), more specifically
> the IntensityFilters part. The problem however might apply also to  
> other
> wrapper modules. Essentially, what happens is that cswig slowly eats
> up all memory of my machine (2GB!), until it is killed by the OS. As  
> an example,
> this is the output I got last time I tried:
>
> [ 84%] Generating wrap_itkMaskNegatedImageFilterPython.cxx
> /bin/sh: line 1:  3455 Killed
> ../../../../Utilities/CableSwig-ITK-3.6.0/bin/cswig
> -l/home/basso/work/InsightToolkit-3.6.0/Wrapping/WrapITK/SWIG/ 
> IntensityFilters.swg
> -l/home/basso/work/InsightToolkit-3.6.0/Wrapping/WrapITK/SWIG/itk.swg
> -l/home/basso/work/InsightToolkit-3.6.0/Wrapping/WrapITK/SWIG/ 
> BaseNumerics.swg
> -l/home/basso/work/InsightToolkit-3.6.0/Wrapping/WrapITK/SWIG/Base.swg
> -I/home/basso/work/InsightToolkit-3.6.0/Utilities/CableSwig- 
> ITK-3.6.0/SWIG/Lib
> -w362 -w389 -w467 -w503 -w508 -w509 -w516 -noruntime -fcompact -Cindex
> /home/basso/work/InsightToolkit-3.6.0/Wrapping/WrapITK/ClassIndex/ 
> Base.mdx
> -Cindex /home/basso/work/InsightToolkit-3.6.0/Wrapping/WrapITK/ 
> ClassIndex/BaseNumerics.mdx
> -Cindex /home/basso/work/InsightToolkit-3.6.0/Wrapping/WrapITK/ 
> ClassIndex/IntensityFilters.mdx
> -depend /home/basso/work/InsightToolkit-3.6.0/Wrapping/WrapITK/ 
> Modules/IntensityFilters/wrap_itkMaskNegatedImageFilter.xml.depend
> -outdir /home/basso/work/InsightToolkit-3.6.0/bin -o
> /home/basso/work/InsightToolkit-3.6.0/Wrapping/WrapITK/Modules/ 
> IntensityFilters/wrap_itkMaskNegatedImageFilterPython.cxx
> -c++ -I/home/basso/work/InsightToolkit-3.6.0/Utilities/CableSwig- 
> ITK-3.6.0/SWIG/Lib/python
> -python /home/basso/work/InsightToolkit-3.6.0/Wrapping/WrapITK/ 
> Modules/IntensityFilters/wrap_itkMaskNegatedImageFilter.xml
> make[2]: *** [Wrapping/WrapITK/Modules/IntensityFilters/ 
> wrap_itkMaskNegatedImageFilterPython.cxx]
> Error 137
> make[1]: *** [Wrapping/WrapITK/Modules/IntensityFilters/CMakeFiles/ 
> _IntensityFiltersPython.dir/all]
> Error 2
> make: *** [all] Error 2
>
> Someone has an idea of how to circumvent the problem short of manually
> "blacklist" the
> problematic files?


Hi,

You can simply remove Wrapping/WrapITK/Modules/IntensityFilters/ 
wrap_itkMaskNegatedImageFilter.cmake.
Cableswig shouldn't do that though.

Have you turned on many WRAP_* options, are added some dimensions to  
WRAP_ITK_DIMS?

Regards,

Gaëtan


-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr  http://www.mandriva.org
http://www.itk.org  http://www.clavier-dvorak.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080626/0397d85d/attachment.pgp>


More information about the Insight-users mailing list