Comments (6)
Having just checked that it compiles successfully with GCC 5.3.1 on Ubuntu 16.04, I don't think it is a problem with Elastix source. However, you should probably double check that the process is not killed by the out of memory manager before submitting the bug report. Elastix uses about 4GB per core during compilation so if you compile with e.g. -j4 you need a machine with 16GB of RAM 😊
from simpleelastix.
@npyoung Did you find any solutions?
@kaspermarstal I am also compiling on Ubuntu 16.04 with GCC 5.4.0, 1 core and 8 GB and had internal errors in two runs. First one was segmentation fault. Here's the second one:
[ 79%] Building CXX object src/Components/MovingImagePyramids/MovingShrinkingPyramid/CMakeFiles/MovingShrinkingPyramid.dir/elxMovingShrinkingPyramid.cxx.o
In file included from /home/lukas/SimpleElastixGit/build/ITK-prefix/include/ITK-4.8/itkImageToImageFilter.h:372:0,
from /home/lukas/SimpleElastixGit/build/ITK-prefix/include/ITK-4.8/itkChangeInformationImageFilter.h:21,
from /home/lukas/SimpleElastixGit/build/elastix/src/Core/Kernel/elxElastixBase.h:40,
from /home/lukas/SimpleElastixGit/build/elastix/src/Core/Kernel/elxElastixTemplate.h:21,
from /home/lukas/SimpleElastixGit/build/elastix/src/Core/Install/elxIncludes.h:39,
from /home/lukas/SimpleElastixGit/build/elastix/src/Components/MovingImagePyramids/MovingShrinkingPyramid/elxMovingShrinkingPyramid.h:21,
from /home/lukas/SimpleElastixGit/build/elastix/src/Components/MovingImagePyramids/MovingShrinkingPyramid/elxMovingShrinkingPyramid.cxx:19:
/home/lukas/SimpleElastixGit/build/ITK-prefix/include/ITK-4.8/itkImageToImageFilter.hxx: In instantiation of ‘void itk::ImageToImageFilter<TInputImage, TOutputImage>::VerifyInputInformation() [with TInputImage = itk::Image<unsigned int, 2u>; TOutputImage = itk::Image<double, 2u>]’:
/home/lukas/SimpleElastixGit/build/elastix/src/Components/MovingImagePyramids/MovingShrinkingPyramid/elxMovingShrinkingPyramid.cxx:21:42: required from here
/home/lukas/SimpleElastixGit/build/ITK-prefix/include/ITK-4.8/itkImageToImageFilter.hxx:253:1: internal compiler error: in tree_node_structure_for_code, at tree.c:508
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
src/Components/MovingImagePyramids/MovingShrinkingPyramid/CMakeFiles/MovingShrinkingPyramid.dir/build.make:62: recipe for target 'src/Components/MovingImagePyramids/MovingShrinkingPyramid/CMakeFiles/MovingShrinkingPyramid.dir/elxMovingShrinkingPyramid.cxx.o' failed
make[5]: *** [src/Components/MovingImagePyramids/MovingShrinkingPyramid/CMakeFiles/MovingShrinkingPyramid.dir/elxMovingShrinkingPyramid.cxx.o] Error 1
CMakeFiles/Makefile2:4236: recipe for target 'src/Components/MovingImagePyramids/MovingShrinkingPyramid/CMakeFiles/MovingShrinkingPyramid.dir/all' failed
make[4]: *** [src/Components/MovingImagePyramids/MovingShrinkingPyramid/CMakeFiles/MovingShrinkingPyramid.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/elastix.dir/build.make:113: recipe for target 'elastix-prefix/src/elastix-stamp/elastix-build' failed
make[2]: *** [elastix-prefix/src/elastix-stamp/elastix-build] Error 2
CMakeFiles/Makefile2:255: recipe for target 'CMakeFiles/elastix.dir/all' failed
make[1]: *** [CMakeFiles/elastix.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Any ideas?
from simpleelastix.
I got further with -j1 but ultimately ran into more problems. For some reason several files require an enormous amount of memory to compile (even with 16GB of RAM).
from simpleelastix.
To reduce memory consumption you can set USE_ALL_PIXELTYPES to OFF in the SuperBuild/External_Elastix.cmake file. You will then have support for 2D float images, 3D float and short images, and 4D short images. Images of other types can be cast using SimpleITK's Cast() method. Also can you double check you are compiling in Release mode?
from simpleelastix.
I tested these settings already yesterday, however, with another segmentation fault. Nonetheless, i double checked all and had another run just now with the following result:
[ 38%] Linking CXX executable ../bin/SimpleITKTclsh
CMakeFiles/SimpleITKTclsh.dir/SimpleITKTCL_wrap.cxx.o: In function `main':
SimpleITKTCL_wrap.cxx:(.text.startup+0x20): undefined reference to `Tcl_MainEx'
collect2: error: ld returned 1 exit status
Wrapping/CMakeFiles/SimpleITKTclsh.dir/build.make:549: recipe for target 'bin/SimpleITKTclsh' failed
make[5]: *** [bin/SimpleITKTclsh] Error 1
CMakeFiles/Makefile2:2642: recipe for target 'Wrapping/CMakeFiles/SimpleITKTclsh.dir/all' failed
make[4]: *** [Wrapping/CMakeFiles/SimpleITKTclsh.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/SimpleITK.dir/build.make:115: recipe for target 'SimpleITK-prefix/src/SimpleITK-stamp/SimpleITK-build' failed
make[2]: *** [SimpleITK-prefix/src/SimpleITK-stamp/SimpleITK-build] Error 2
CMakeFiles/Makefile2:180: recipe for target 'CMakeFiles/SimpleITK.dir/all' failed
make[1]: *** [CMakeFiles/SimpleITK.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
I should maybe note that my memory was maximally about 3/4 full.
Thank you very much for your help, btw.
from simpleelastix.
After disabling wrapping of C# and TCL I gave it another try and had no more problems. Thank you.
from simpleelastix.
Related Issues (20)
- RuntimeError: Exception thrown in SimpleITK Elastix HOT 1
- AffineDTITransform does not return the CenterOfRotationPoint
- windows user :thank you very much
- Gradient based optimizer: how to control learning rate HOT 2
- Rigid transformation warping with "TransformixImageFilter"
- error of compiling on linux
- Fatal error LNK1181
- Error while installing SimpleElastix on Windows. HOT 1
- Shearing matrix composition in Affine DTI 3D Transform
- Failed to build on Win10 HOT 3
- affine registration outcome measurement
- A lot of console output even after turning it off HOT 1
- Registration with initial transform obtained using SimpleITK/etc. (.tfm file) HOT 1
- The ElastixImageFilter stuck when using iterative InitialTransformParameterFileName.
- Unable to create/compile/build SimpleElastix C++ dynamic or static library in 32bit or 64-bit.
- Trouble understanding basic usage
- Is there a way to save the transform to a .tfm file?
- AttributeError: module 'SimpleITK' has no attribute 'VesselnessMeasureImageFilter'
- Use only corresponding points based transformation
- SimpleElastix no longer maintained, use SimpleITK or ITKElastix!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simpleelastix.