[Insight-developers] Re: Insight-developers Digest, Vol 14, Issue 20

?? liu_peng at neusoft.com
Wed Jul 6 04:15:11 EDT 2005


----- Original Message ----- 
From: <insight-developers-request at itk.org>
To: <insight-developers at itk.org>
Sent: Sunday, June 19, 2005 12:01 AM
Subject: Insight-developers Digest, Vol 14, Issue 20


> Send Insight-developers mailing list submissions to
> insight-developers at itk.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> http://www.itk.org/mailman/listinfo/insight-developers
> or, via email, send a message with subject or body 'help' to
> insight-developers-request at itk.org
> 
> You can reach the person managing the list at
> insight-developers-owner at itk.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Insight-developers digest..."
> 
> 
> Today's Topics:
> 
>    1. Re: how to attack memory leaks (Leila baghdadi)
>    2. Re: itkImageFileWriter (Karthik Krishnan)
>    3. Re: itkImageFileWriter (Luis Ibanez)
>    4. GradientRecursiveGaussianImageFilter never deleted (Julien Jomier)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: 17 Jun 2005 12:03:06 -0400
> From: Leila baghdadi <baghdadi at sickkids.ca>
> Subject: Re: [Insight-developers] how to attack memory leaks
> To: Andy Cedilnik <andy.cedilnik at kitware.com>
> Cc: Mathieu Malaterre <mathieu.malaterre at kitware.com>,
> insight-developers at itk.org, Luis Ibanez <luis.ibanez at kitware.com>,
> Kent Williams <norman-k-williams at uiowa.edu>, "\(Research\)"
> <lorensen at crd.ge.com>
> Message-ID: <1119024186.1009.27.camel at mouse18.phenogenomics.ca>
> Content-Type: text/plain
> 
> Hi Andy,
> 
> I just saw this message now!
> 
> I am more than willing to run valgrind (I just updated it 2.4.0) on a
> subset of tests,
> 
> I know how to run it on for one test only, but I might need help to set
> this one up!
> 
> if you could please help me set it up that would be great,
> 
> thanks
> 
> Leila
> 
> On Thu, 2005-06-16 at 10:04, Andy Cedilnik wrote:
> > Hi All,
> > 
> > CTest supports running subset of tests through a valgrind.
> > 
> > Dash16 takes about 210 minutes to compile everything and 35 minutes to
> > run tests. I should be able to add valgrind run for a subset of tests so
> > that we at least get some coverage. Maybe somebody else could setup
> > another one that will run different subset of tests?
> > 
> >        Andy
> > 
> > Leila baghdadi wrote:
> > 
> > >well, maybe instead of running everything overnight, it can go through a
> > >portion of tests per night so that way by the end of a few nights the
> > >runs are complete,
> > >
> > >about this particular problem, I remember having a discussion with Jim,
> > >except I never got around it, I am pretty sure one of the mesh classes
> > >is leaking memory and it leaks big, I have 2 GB on my machine and before
> > >you know it BAM!
> > >
> > >I will try using valgrind, ( I just updated it on my machine) see if I
> > >can find out where the problem is
> > >
> > >
> > >Leila
> > >
> > >On Wed, 2005-06-15 at 16:55, Lorensen, William E (Research) wrote:
> > >  
> > >
> > >>We have not had purify runs for several months. Our systems cannot complete the runs overnight. We should see how valgrind performs. I'm really uncomfortable that we are not running nightly memory tests. Dart2 may help.
> > >>
> > >>Bill
> > >>
> > >>-----Original Message-----
> > >>From: insight-developers-bounces+lorensen=crd.ge.com at itk.org
> > >>[mailto:insight-developers-bounces+lorensen=crd.ge.com at itk.org]On Behalf
> > >>Of Luis Ibanez
> > >>Sent: Wednesday, June 15, 2005 4:08 PM
> > >>To: Kent Williams
> > >>Cc: insight-developers at itk.org; Mathieu Malaterre
> > >>Subject: Re: [Insight-developers] how to attack memory leaks
> > >>
> > >>
> > >>
> > >>Kent,
> > >>
> > >>That's great,
> > >>
> > >>Maybe we should put together a ValgridnSuppresion.supp
> > >>file for ITK and maintain it in the CVS repository.
> > >>
> > >>It seems that there are similar files already in CMake and
> > >>VTK but each one is a bit tailored to their own project.
> > >>
> > >>We could start by combining Kent's file from Brains2 and
> > >>the one available in GDCM in Insight/Utilities/gdcm/CMake.
> > >>
> > >>
> > >>Any suggestions as to where to put this file in the ITK
> > >>directory ?
> > >>
> > >>
> > >>
> > >>     Luis
> > >>
> > >>
> > >>
> > >>
> > >>--------------------------
> > >>Kent Williams wrote:
> > >>
> > >>    
> > >>
> > >>>Here's my suppression file; it just deals with GL libraries, which -- 
> > >>>yes -- are a problem. I think there may be a few 'valgrind foolers' in 
> > >>>ITK itself, so it wouldn't be a bad thing to have them suppressed...
> > >>>
> > >>>Mathieu Malaterre wrote:
> > >>>
> > >>>      
> > >>>
> > >>>>>4. As good as valgrind is, it can be fooled, and regularly reports 
> > >>>>>leaks where I suspect none is occuring. Something as basic as an 
> > >>>>>assignement to a std::string can generate a leak report.
> > >>>>>
> > >>>>>          
> > >>>>>
> > >>>>I believe this is answered in the FAQ of valgrind. You have to use 
> > >>>>GLIBCPP_NEW = 1 (or GLIBCXX_NEW=1 if you use gcc > 3.4.0)
> > >>>>
> > >>>>As for the suppressions file, could you share it with us ? We do it in 
> > >>>>ParaView, therefore people could have at least a good start, and would 
> > >>>>only had a few. As a side note the only annoying suppression I had to 
> > >>>>deal with is the one generated by the libGL.so (ATI or NVidia) since 
> > >>>>they are doing some crazy things.
> > >>>>
> > >>>>So what about a : Insight/CMake/ITKValgrindSuppressions.supp ?
> > >>>>
> > >>>>HTH
> > >>>>Mathieu
> > >>>>
> > >>>>        
> > >>>>
> > >>>------------------------------------------------------------------------
> > >>>
> > >>>{
> > >>>   BUG-0
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGL.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-9
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-9-X
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:_nv000027gl
> > >>>}
> > >>>{
> > >>>   BUG-10
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-11
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-12
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-13
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-14
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-15
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-16
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-17
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGL.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-18
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGL.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-19
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-20
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-21
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-22
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-23
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-24
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-25
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-26
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-27
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-28
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-29
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-30
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   fun:_nv000026gl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-31
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   fun:_nv000026gl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-32
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-33
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-34
> > >>>   Addrcheck,Memcheck:Value4
> > >>>   fun:memset
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-35
> > >>>   Addrcheck,Memcheck:Value4
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-36
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-37
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-38
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-39
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-40
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-41
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-42
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   fun:_nv000027gl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-43
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-44
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-45
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-46
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   fun:_nv000027gl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-47
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-48
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-49
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-50
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-51
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-52
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-53
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-54
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-55
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-56
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-57
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-58
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-59
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-60
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-61
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-62
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-63
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-64
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-65
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-66
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-67
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-68
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-69
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-70
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-71
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-72
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-73
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-74
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-75
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-76
> > >>>   Addrcheck,Memcheck:Value4
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-77
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-78
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-79
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-80
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-81
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-82
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-83
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-84
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-85
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-86
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-87
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-88
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-89
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-90
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-91
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-92
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-93
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-94
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-95
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-96
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-97
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-98
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-99
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-100
> > >>>   Addrcheck,Memcheck:Value4
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-101
> > >>>   Addrcheck,Memcheck:Value4
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-102
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-103
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-104
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-105
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-106
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-107
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-108
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-109
> > >>>   Addrcheck,Memcheck:Param
> > >>>   ioctl(generic)
> > >>>   fun:ioctl
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-110
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   fun:strcat
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-111
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   fun:strcat
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-112
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   fun:strcat
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-113
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   fun:strcat
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-114
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-115
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-116
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-117
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-118
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-119
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-120
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-121
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-122
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-123
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-124
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-125
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-126
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-127
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-128
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-129
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-130
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-131
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-132
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-133
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-134
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-135
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-136
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-137
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-138
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-139
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-140
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-141
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-142
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-143
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-144
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-145
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-146
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-147
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-148
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-149
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-150
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-151
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-152
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-153
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-154
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-155
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   obj:/usr/lib/libGLcore.so.1.0.7167
> > >>>}
> > >>>{
> > >>>   BUG-156
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   fun:_nv000848gl
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-157
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   fun:_nv000848gl
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-158
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   fun:_nv000848gl
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-159
> > >>>   Addrcheck,Memcheck:Cond
> > >>>   fun:_nv000848gl
> > >>>   fun:*
> > >>>}
> > >>>{
> > >>>   BUG-160
> > >>>   Addrcheck,Memcheck:Param
> > >>>   fun:_X11TransWrite
> > >>>   fun:*
> > >>>}
> > >>>
> > >>>
> > >>>------------------------------------------------------------------------
> > >>>
> > >>>_______________________________________________
> > >>>Insight-developers mailing list
> > >>>Insight-developers at itk.org
> > >>>http://www.itk.org/mailman/listinfo/insight-developers
> > >>>      
> > >>>
> > >>
> > >>_______________________________________________
> > >>Insight-developers mailing list
> > >>Insight-developers at itk.org
> > >>http://www.itk.org/mailman/listinfo/insight-developers
> > >>_______________________________________________
> > >>Insight-developers mailing list
> > >>Insight-developers at itk.org
> > >>http://www.itk.org/mailman/listinfo/insight-developers
> > >>    
> > >>
> > >
> > >_______________________________________________
> > >Insight-developers mailing list
> > >Insight-developers at itk.org
> > >http://www.itk.org/mailman/listinfo/insight-developers
> > >  
> > >
> > 
> 
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Fri, 17 Jun 2005 12:09:06 -0400
> From: Karthik Krishnan <Karthik.Krishnan at kitware.com>
> Subject: Re: [Insight-developers] itkImageFileWriter
> To: Leila baghdadi <baghdadi at sickkids.ca>
> Cc: insight-developers at itk.org
> Message-ID: <42B2F5A2.7020309 at kitware.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> 
> 
> Leila baghdadi wrote:
> 
> >Hi guys,
> >
> >I just noticed something weird!
> >
> >I created an image and set the origin of my image before I used
> >itkImageFileWriter to write it but then it changes the origin
> >
> >the this the code that I have
> >
> >  size[0] = 300;
> >  size[1] = 270;
> >  size[2] = 270;
> >
> >  m_TriangleToImage->SetSize(size);
> >  float origin[3];
> >  
> >  
> >  origin[0] = -14.95;
> >  origin[0] = -13.45;
> >  
> >
> BUG... origin[1] :)   
> 
> >  origin[2] = -13.45;
> > 
> >  m_TriangleToImage->SetOrigin(origin);
> >  float spacing[3];
> >  spacing[0] = 1;
> >  spacing[1] = 1;
> >  spacing[2] = 1;
> >
> >  m_TriangleToImage->SetSpacing(spacing);
> >
> >  m_TriangleToImage->Update();
> >
> >  m_ImageWriter->SetInput(m_TriangleToImage->GetOutput() );
> >  m_ImageWriter->SetFileName("myimage.mhd");
> >  m_ImageWriter->UseInputMetaDataDictionaryOn();
> >  m_ImageWriter->Update();
> >  
> >
> >and then if I look at the .mhd file
> >
> >
> >ObjectType = Image
> >NDims = 3
> >BinaryData = True
> >BinaryDataByteOrderMSB = False
> >TransformMatrix = 1 0 0 0 1 0 0 0 1
> >Offset = -13.45 5.60519e-44 -13.45
> >CenterOfRotation = 0 0 0
> >ElementSpacing = 1 1 1
> >DimSize = 300 270 270
> >AnatomicalOrientation = ???
> >ElementType = MET_UCHAR
> >ElementDataFile = myimage.raw
> >
> >
> >also how does ordering of data come into effect with these classes, it
> >is always xyz??
> >
> >Thanks for your time
> >
> >
> >Leila
> >
> >_______________________________________________
> >Insight-developers mailing list
> >Insight-developers at itk.org
> >http://www.itk.org/mailman/listinfo/insight-developers
> >
> >  
> >
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Fri, 17 Jun 2005 13:14:20 -0400
> From: Luis Ibanez <luis.ibanez at kitware.com>
> Subject: Re: [Insight-developers] itkImageFileWriter
> To: Leila baghdadi <baghdadi at sickkids.ca>
> Cc: Karthik Krishnan <Karthik.Krishnan at kitware.com>,
> insight-developers at itk.org
> Message-ID: <42B304EC.4020605 at kitware.com>
> Content-Type: text/plain; charset=us-ascii; format=flowed
> 
> 
> Leila,
> 
> Also... if your image is the output of a filter,
> you *should not* change manually the origin and
> spacing. It is only up to the filter to set this
> values.
> 
> This is unfortunately a weak point in the ITK
> support for const-correctness. The output returned
> by ITK filters should have been declared *const*.
> 
> It is unfortunate that we missed the oportunity
> for making this safe and consistent at the level
> of GetOutput().
> 
> If you really need to change the origin, then
> you should use the "ChangeInformationImageFilter".
> 
> 
>     Regards,
> 
> 
>        Luis
> 
> 
> ------------------------
> Karthik Krishnan wrote:
> > 
> > 
> > Leila baghdadi wrote:
> > 
> >> Hi guys,
> >>
> >> I just noticed something weird!
> >>
> >> I created an image and set the origin of my image before I used
> >> itkImageFileWriter to write it but then it changes the origin
> >>
> >> the this the code that I have
> >>
> >>  size[0] = 300;
> >>  size[1] = 270;
> >>  size[2] = 270;
> >>
> >>  m_TriangleToImage->SetSize(size);
> >>  float origin[3];
> >>  
> >>  
> >>  origin[0] = -14.95;
> >>  origin[0] = -13.45;
> >>  
> >>
> > BUG... origin[1] :)  
> > 
> >>  origin[2] = -13.45;
> >>
> >>  m_TriangleToImage->SetOrigin(origin);
> >>  float spacing[3];
> >>  spacing[0] = 1;
> >>  spacing[1] = 1;
> >>  spacing[2] = 1;
> >>
> >>  m_TriangleToImage->SetSpacing(spacing);
> >>
> >>  m_TriangleToImage->Update();
> >>
> >>  m_ImageWriter->SetInput(m_TriangleToImage->GetOutput() );
> >>  m_ImageWriter->SetFileName("myimage.mhd");
> >>  m_ImageWriter->UseInputMetaDataDictionaryOn();
> >>  m_ImageWriter->Update();
> >>  
> >>
> >> and then if I look at the .mhd file
> >>
> >>
> >> ObjectType = Image
> >> NDims = 3
> >> BinaryData = True
> >> BinaryDataByteOrderMSB = False
> >> TransformMatrix = 1 0 0 0 1 0 0 0 1
> >> Offset = -13.45 5.60519e-44 -13.45
> >> CenterOfRotation = 0 0 0
> >> ElementSpacing = 1 1 1
> >> DimSize = 300 270 270
> >> AnatomicalOrientation = ???
> >> ElementType = MET_UCHAR
> >> ElementDataFile = myimage.raw
> >>
> >>
> >> also how does ordering of data come into effect with these classes, it
> >> is always xyz??
> >>
> >> Thanks for your time
> >>
> >>
> >> Leila
> >>
> >> _______________________________________________
> >> Insight-developers mailing list
> >> Insight-developers at itk.org
> >> http://www.itk.org/mailman/listinfo/insight-developers
> >>
> >>  
> >>
> > _______________________________________________
> > Insight-developers mailing list
> > Insight-developers at itk.org
> > http://www.itk.org/mailman/listinfo/insight-developers
> > 
> > 
> 
> 
> 
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Fri, 17 Jun 2005 17:45:59 -0400
> From: Julien Jomier <jjomier at cs.unc.edu>
> Subject: [Insight-developers] GradientRecursiveGaussianImageFilter
> never deleted
> To: "Insight-developers (E-mail)" <insight-developers at itk.org>
> Message-ID: <42B34497.1000105 at cs.unc.edu>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Hi all,
> 
> I found an issue in the GradientRecursiveGaussianImageFilter and I don't 
> know how to solve it.
> 
> Basically the filter is registered by the ProgressAccumulator using the 
> SetMiniPipelineFilter(this). This is done in the constructor and 
> therefore the reference count can never be less than 2 and the filter is 
> never destroyed.
> 
> If someone knows a fix to this...
> 
> Julien
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
> 
> 
> End of Insight-developers Digest, Vol 14, Issue 20
> **************************************************
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.itk.org/mailman/private/insight-developers/attachments/20050706/f0e735e8/ITKCommon.html


More information about the Insight-developers mailing list