[Insight-developers] Fwd: [ITK 0012186]: itkBSplineDeformableTransform throws error when enabling multithreading

Wes Turner wes.turner at kitware.com
Thu May 26 08:49:02 EDT 2011


Nick,

Sorry for the delay.  I'm working under a heavy deadline on something else.

Karthik and I have a test driver that we are working with.  One of us will
take a crack at sending you code and test data that exhibit the failure some
time today (we need to sanitize a few things), but basically it just
required the pipeline:

itkImageFileReader()
... pull out image points into point set
itkBSplineScatteredDataPointSetToImageFilter()
- Spline order 3
- Levels 2
- Number of ctrl points large ... say 50% of the x and y extents of the data

On update of the BSplineFilter, the aforementioned exception is thrown.

- Wes

On Wed, May 25, 2011 at 10:19 AM, Nicholas Tustison <ntustison at gmail.com>wrote:

> Hey Wes,
>
> So I'm trying to pinpoint the problem.  Does this problem occur during
> image registration?  I tried to get the error by setting the transform in
> the
> ResampleImageFilter and setting the number of threads > 1 but didn't
> have a problem.  Since the bug tracker doesn't mention the specific use
> context of the transform and since the transform itself is just an object
> and isn't something for which you specify more than one thread, I'm
> hoping you could give me some further direction.
>
> Thanks,
> Nick
>
>
>
>
> On May 20, 2011, at 10:24 AM, Wes Turner wrote:
>
> Nick,
>
> I am having a similar issue, but I haven't had an opportunity to look into
> it yet.  I expect that this is easy to replicate given that I am at least
> the third person to run into the problem.  I think that if you use an
> arbitrary image, pull it into  itkBSplineDeformableTransform, choose a
> relatively large number of spline points and a level >1, you will quickly
> find it.  Right now I am on travel, but if you have problems replicating the
> issue, I can work with you to get a failure case when I get back ... Monday
> possibly.
>
> - Wes
>
> On Fri, May 20, 2011 at 9:55 AM, Nicholas Tustison <ntustison at gmail.com>wrote:
>
>> Hi developers,
>>
>> I have been assigned the following bug but I'm skeptical that the issue is
>> really a bug
>> as described.  Is there a mechanism on Mantis for requesting more input
>> (e.g. code) from the
>> person who reported the bug?
>>
>> Thanks,
>> Nick
>>
>> Begin forwarded message:
>>
>> *From: *Mantis Bug Tracker <mantis at public.kitware.com>
>> *Date: *May 19, 2011 4:33:11 PM EDT
>> *To: *ntustison at wustl.edu
>> *Subject: **[ITK 0012186]: itkBSplineDeformableTransform throws error
>> when enabling multithreading*
>>
>>
>> The following issue has been ASSIGNED.
>> ======================================================================
>> http://public.kitware.com/Bug/view.php?id=12186
>> ======================================================================
>> Reported By:                Erik Türke
>> Assigned To:                Nick Tustison
>> ======================================================================
>> Project:                    ITK
>> Issue ID:                   12186
>> Category:                   ITK
>> Reproducibility:            always
>> Severity:                   crash
>> Priority:                   high
>> Status:                     assigned
>> Resolution Date:
>> Sprint:
>> Sprint Status:              backlog
>> ======================================================================
>> Date Submitted:             2011-05-12 07:53 EDT
>> Last Modified:              2011-05-19 16:33 EDT
>> ======================================================================
>> Summary:                    itkBSplineDeformableTransform throws error
>> when
>> enabling multithreading
>> Description:
>> 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.
>>
>> ======================================================================
>>
>> Issue History
>> Date Modified    Username       Field                    Change
>>
>> ======================================================================
>> 2011-05-12 07:53 Erik Türke     New Issue
>>
>> 2011-05-19 16:33 Hans Johnson   Assigned To               => Nick Tustison
>>
>> 2011-05-19 16:33 Hans Johnson   Status                   new => assigned
>>
>> ======================================================================
>>
>>
>>
>> _______________________________________________
>> 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://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-developers
>>
>>
>
>
> --
> Wesley D. Turner, Ph.D.
> Kitware, Inc.
> Technical Leader
> 28 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4920
>
>
>


-- 
Wesley D. Turner, Ph.D.
Kitware, Inc.
Technical Leader
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4920
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110526/fa6f82db/attachment.htm>


More information about the Insight-developers mailing list