It is certainly possible that we never tested the code with multi-component data.<br><br><div class="gmail_quote">On Wed, Mar 30, 2011 at 8:32 AM, Eduardo Suarez-Santana <span dir="ltr"><<a href="mailto:esuarez@itccanarias.org">esuarez@itccanarias.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

  
    
  
  <div bgcolor="#ffffff" text="#000000">
    El 30/03/11 13:14, Eduardo Suarez-Santana escribió:
    <blockquote type="cite"><div class="im">
      
      
      El 30/03/11 12:46, David Doria escribió:
      </div><blockquote type="cite">
        <div class="gmail_quote">
          
          Why do you think that? Do you have a test that fails the old
          way and passes the new way?<br>
          <br>
        </div>
      </blockquote><div class="im">
      2) it is getting tuples beyond inScalars range (502).<br>
      <br>
      inScalars are the Scalars of the vtkImageData input, of size
      dataSize, so dataSize tuples are expected. Accessing vtkIdType
      number dataSize is out of range.<br>
    </div></blockquote>
    <br>
    I forgot. Valgrind reports "Invalid read of size 4" when running
    line 502 as well.<br>
    <br>
    ==1676== Invalid read of size 4<br>
    ==1676==    at 0x73EF2A9: void vtkCopyTuples<float,
    double>(float*, double*, int, long long, long long)
    (vtkDataArray.cxx:854)<br>
    ==1676==    by 0x73DCCE5: void vtkCopyTuples1<float>(float*,
    vtkDataArray*, long long, long long) (vtkDataArray.cxx:866)<br>
    ==1676==    by 0x73D24E3: vtkDataArray::GetTuples(long long, long
    long, vtkAbstractArray*) (vtkDataArray.cxx:896)<br>
    ==1676==    by 0x4CE85E:
    vtkMarchingCubesMultiple::RequestData(vtkInformation*,
    vtkInformationVector**, vtkInformationVector*)
    (vtkMarchingCubesMultiple.cxx:502)<br>
    ==1676==    by 0x6576EB7:
    vtkPolyDataAlgorithm::ProcessRequest(vtkInformation*,
    vtkInformationVector**, vtkInformationVector*)
    (vtkPolyDataAlgorithm.cxx:91)<br>
    ==1676==    by 0x6456532:
    vtkExecutive::CallAlgorithm(vtkInformation*, int,
    vtkInformationVector**, vtkInformationVector*)
    (vtkExecutive.cxx:747)<br>
    ==1676==    by 0x643D6B1:
    vtkDemandDrivenPipeline::ExecuteData(vtkInformation*,
    vtkInformationVector**, vtkInformationVector*)
    (vtkDemandDrivenPipeline.cxx:507)<br>
    ==1676==    by 0x643CD67:
    vtkDemandDrivenPipeline::ProcessRequest(vtkInformation*,
    vtkInformationVector**, vtkInformationVector*)
    (vtkDemandDrivenPipeline.cxx:279)<br>
    ==1676==    by 0x65D3D1E:
    vtkStreamingDemandDrivenPipeline::ProcessRequest(vtkInformation*,
    vtkInformationVector**, vtkInformationVector*)
    (vtkStreamingDemandDrivenPipeline.cxx:202)<br>
    ==1676==    by 0x643D47A: vtkDemandDrivenPipeline::UpdateData(int)
    (vtkDemandDrivenPipeline.cxx:449)<br>
    ==1676==    by 0x65D3EFB:
    vtkStreamingDemandDrivenPipeline::Update(int)
    (vtkStreamingDemandDrivenPipeline.cxx:246)<br>
    ==1676==    by 0x6454718: vtkExecutive::Update()
    (vtkExecutive.cxx:315)<br>
    ==1676==  Address 0xeb0a85c is 0 bytes after a block of size 1,500
    alloc'd<br>
    ==1676==    at 0x4C267CE: malloc (vg_replace_malloc.c:236)<br>
    ==1676==    by 0x7411595:
    vtkDataArrayTemplate<float>::Allocate(long long, long long)
    (vtkDataArrayTemplate.txx:136)<br>
    ==1676==    by 0x7412EA7:
    vtkDataArrayTemplate<float>::SetNumberOfValues(long long)
    (vtkDataArrayTemplate.txx:849)<br>
    ==1676==    by 0x7411809:
    vtkDataArrayTemplate<float>::SetNumberOfTuples(long long)
    (vtkDataArrayTemplate.txx:405)<br>
    ==1676==    by 0x64B88C1: vtkImageData::AllocateScalars()
    (vtkImageData.cxx:1574)<br>
    ==1676==    by 0x4653F4: main (AntialiasVector.cxx:286)<br>
    ==1676== <br>
    <br>
  </div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br>