MantisBT - ITK
View Issue Details
0012186ITKITKpublic2011-05-12 07:532011-05-25 19:17
Erik Türke 
Nick Tustison 
highcrashalways
resolvedunable to reproduce 
Intel Pentium i5LinuxDebian Lenny 5.0
ITK-4-A0 
 
2011-05-25
backlog
0012186: itkBSplineDeformableTransform throws error when enabling multithreading
When enabling multithreading in itk and set the number of threads > 1, the itkBSplineDeformableTransform throws an error saying:

itk::ExceptionObject (0x24efee0)
Location: "void itk::BSplineDeformableTransform<TScalarType, NDimensions, VSplineOrder>::SetParameters(const typename itk::Transform<TScalarType, NDimensions, NDimensions>::ParametersType&) [with TScalarType = double, unsigned int NDimensions = 3u, unsigned int VSplineOrder = 3u]"
File: /scr/morse1/programming/src/ITK/Modules/Core/Transform/include/itkBSplineDeformableTransform.txx
Line: 354
Description: itk::ERROR: BSplineDeformableTransform(0x24efc40): Mismatch between parameters size 19728016 and expected number of parameters 1536

If you set the number of threads to 1 it works perfectly.
I encountered this error with the ITK release 3.20 (review code) as well.
No tags attached.
Issue History
2011-05-12 07:53Erik TürkeNew Issue
2011-05-19 16:33Hans JohnsonAssigned To => Nick Tustison
2011-05-19 16:33Hans JohnsonStatusnew => assigned
2011-05-25 19:16Nick TustisonNote Added: 0026602
2011-05-25 19:17Nick TustisonResolution Date => 2011-05-25
2011-05-25 19:17Nick TustisonStatusassigned => resolved
2011-05-25 19:17Nick TustisonResolutionopen => unable to reproduce

Notes
(0026602)
Nick Tustison   
2011-05-25 19:16   
As an ITK object, the B-spline deformable transform does not operate with a specific number of threads.
I suspect that the reporter is referring to some specific application, like image registration, in which the failing occurs. I was able to load a b-spline deformable transform into the itkResampleImageFilter, set the number of threads > 1, and it ran for me just fine. I'm setting this issue resolved until I get more feedback as to the specific cause, hopefully with some code to reproduce the error.