<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
El 30/03/11 13:14, Eduardo Suarez-Santana escribió:
<blockquote cite="mid:4D931E92.8000000@itccanarias.org" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
El 30/03/11 12:46, David Doria escribió:
<blockquote
cite="mid:AANLkTi=1BSb72FOSetLoEgemsq9Y_FptJy6WBTd6-2F1@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Why do you think that? Do you have a test that fails the old
way and passes the new way?<br>
<br>
</div>
</blockquote>
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>
</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>
</body>
</html>