<div dir="ltr">Simon,<div><br></div><div>Might you be able to try TJ's merge request and see if it restores the functionality you expected?</div><div><br></div><div>Thanks,</div><div>Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 26, 2016 at 9:34 AM, T.J. Corona <span dir="ltr"><<a href="mailto:tj.corona@kitware.com" target="_blank">tj.corona@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi Simon,</div><div><br></div><div>I have created a MR (<a href="https://gitlab.kitware.com/vtk/vtk/merge_requests/2007" target="_blank">https://gitlab.kitware.com/<wbr>vtk/vtk/merge_requests/2007</a>) that reverts the addition of an exit-with-error when data arrays have the same name.</div><div><br></div><div>Cory,</div><div><br></div><div>I believe this MR also accounts for the segfault you originally reported when reading in data arrays that have duplicate names.</div><div><br></div><div>Sincerely,</div><div>T.J.</div><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div>Thomas J. Corona, Ph.D.<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:518-881-4443" value="+15188814443" target="_blank">518-881-4443</a></div></div></div></div></div></div>
</div><div><div class="h5">
<br><div><blockquote type="cite"><div>On Sep 23, 2016, at 1:41 PM, Cory Quammen <<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>> wrote:</div><br><div><div dir="ltr"><div>Simon,</div><div><br></div><div>Thanks for your sleuthing and bug report. I don't believe your use case was known when merge request !488 was merged.</div><div><br></div>TJ,<div><br></div><div>Can you have a look at Simon's issue?</div><div><br></div><div>Thanks,</div><div>Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 23, 2016 at 12:07 PM, Simon Praetorius <span dir="ltr"><<a href="mailto:Simon.Praetorius@tu-dresden.de" target="_blank">Simon.Praetorius@tu-dresden.<wbr>de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have found an old issue in the mantis bug-tracker addressing this topic: #15723<br>
<br>
The answer was: "VTK file format does not support saving several time steps in a file" and a reference to the file-format description was given. This description (version 4.2.) is definitely not complete, thus it can not be an indicator for a support of writing timeseries or not.<br>
<br>
Although the file-format description does not show support for timeseries, at least in older vtk versions (before 6.3) it was supported. The source code of the XMLreader shows all the necessary parts to read the time-series, all the corresponding attributes are interpreted. The only problem is a change in the handling of duplicate names. This was done about a year ago in merge request !488. Since there is no test that reads back the files generated by `IO/XML/Testing/Cxx/TestXMLCIn<wbr>terface.c` no error could be detected. The corresponding test to create the file was removed in June 2016.<br>
<br>
Thus, the questions are:<br>
- Is this feature quietly removed from VTK, or removed by accident since only few people use it?<br>
- Is the documentation of the file-format incomplete or the implementation simply not cleaned up?<br>
- Should the test for duplicate array names be rewritten in order to allow timeseries again?<br>
- There should be at least a comment in the file-format description that duplicate array names are not allowed!<br>
<br>
Maybe this issue could be forwarded to the developer mailing list.<br>
<br>
Simon<br>
<br>
<br>
Zitat von Simon Praetorius <<a href="mailto:Simon.Praetorius@tu-dresden.de" target="_blank">Simon.Praetorius@tu-dresden.d<wbr>e</a>>:<div><div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
When reading a VTK XML-file that includes timesteps, the `vtkXMLDataReader:282` throws an error that multiple arrays with the same name are present in the file. In general this is a valid test and the error is correct, except for the case that multiple timesteps are written in the file. An example file can be created by the test `IO/XML/Testing/Cxx/TestXMLCIn<wbr>terface.c`:<br>
<br>
```xml<br>
<Piece NumberOfPoints="8" NumberOfCells="1"><br>
<PointData Scalars="example data"><br>
<DataArray type="Float32" Name="example data" TimeStep="0" format="appended" RangeMin="0" RangeMax="0" offset="0" /><br>
<DataArray type="Float32" Name="example data" TimeStep="1" format="appended" RangeMin="1" RangeMax="1" offset="240" /><br>
<!-- ... --><br>
</PointData><br>
</Piece><br>
```<br>
Here all DataArrays refer to the same dataset at different timesteps.<br>
<br>
Reading back this file, using a `VTLXMLUnstructuredGridReader` (e.g. `Examples/IO/Cxx/DumpXMLFile.c<wbr>xx`), produced the error above:<br>
<br>
```<br>
vtkXMLDataReader.cxx, line 282: Duplicate array names.<br>
```<br>
<br>
Writing TimeSteps seems to be supported by the XMLReader and the XMLWriter. Maybe the `vtkXMLWriterC` is not valid/compatible any more? Is the structure of the vtk format changed when writing timeseries, compared to the xml-code shown above?<br>
(I'm referring to the VTK version 7.0.0, when naming line-numbers.)<br>
<br>
<br>
This issue refers to an old ParaView issue #5542 (<a href="http://www.paraview.org/Bug/view.php?id=5542" rel="noreferrer" target="_blank">http://www.paraview.org/Bug/v<wbr>iew.php?id=5542</a>). The file was readable with at least vtk-5.2 and paraview-3.6.2.<br>
<br>
Simon<br>
<br>
-- <br>
Dr. Simon Praetorius<br>
Institut für Wissenschaftliches Rechnen<br>
Fachrichtung Mathematik<br>
Technische Universität Dresden<br>
Tel.: TUD-42377<br>
Mail: <a href="mailto:simon.praetorius@tu-dresden.de" target="_blank">simon.praetorius@tu-dresden.de</a><br>
Web: <a href="http://www.math.tu-dresden.de/~spraetor" rel="noreferrer" target="_blank">www.math.tu-dresden.de/~spraet<wbr>or</a><br>
</blockquote>
<br>
<br>
<br>
-- <br>
Dr. Simon Praetorius<br>
Institut für Wissenschaftliches Rechnen<br>
Fachrichtung Mathematik<br>
Technische Universität Dresden<br>
Tel.: TUD-42377<br>
Mail: <a href="mailto:simon.praetorius@tu-dresden.de" target="_blank">simon.praetorius@tu-dresden.de</a><br>
Web: <a href="http://www.math.tu-dresden.de/~spraetor" rel="noreferrer" target="_blank">www.math.tu-dresden.de/~spraet<wbr>or</a><br>
</div></div><br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FA<wbr>Q</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature">Cory Quammen<br>Staff R&D Engineer<br>Kitware, Inc.</div>
</div>
</div></blockquote></div><br></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Cory Quammen<br>Staff R&D Engineer<br>Kitware, Inc.</div>
</div>