MantisBT - VTK | ||||||||||||||||||||
View Issue Details | ||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||||||||||
0013294 | VTK | (No Category) | public | 2012-07-04 11:39 | 2016-08-12 09:55 | |||||||||||||||
Reporter | klaus triendl | |||||||||||||||||||
Assigned To | Cory Quammen | |||||||||||||||||||
Priority | high | Severity | minor | Reproducibility | have not tried | |||||||||||||||
Status | closed | Resolution | moved | |||||||||||||||||
Platform | OS | OS Version | ||||||||||||||||||
Product Version | 5.8.0 | |||||||||||||||||||
Target Version | Fixed in Version | |||||||||||||||||||
Project | Release | |||||||||||||||||||
Type | crash | |||||||||||||||||||
Summary | 0013294: string arrays may cause vtkXMLUnstructuredGridWriter to produce corrupt vtu-files, which are unreadable or cause crash | |||||||||||||||||||
Description | When a string array is appended to the cell data of an unstructured grid, vtkXMLUnstructuredGridWriter may produce a corrupt vtu-file, depending on how long the strings are. I cannot tell at what length the issue shows up, but the longer the strings the sooner it happens. Even very simple models with just 304 cells can be affected. It doesn't matter whether the cell data is compressed or not and whether the data is binary or appended. Only ascii works. Please see attached zip file, which contains: * a test cpp file displaying how I produce the vtu-files * a test msvc2010 project * the source and resulting vtu files Notes worth to be mentioned: * When loading the compressed vtu-files the following error is reported: <error> - ERROR: In ..\..\..\..\src\VTK\IO\vtkZLibDataCompressor.cxx, line 83 vtkZLibDataCompressor (00000000139D63E0): Decompression produced incorrect size. Expected 27728 and got 27529 ERROR: In ..\..\..\..\src\VTK\IO\vtkXMLDataReader.cxx, line 545 vtkXMLUnstructuredGridReader (000000000B2F7ED0): Cannot read cell data array "strings" from PointData in piece 0. The data array in the element may be too short. </error> * when loading the uncompressed vtu-files then the reading application crashes in the template function vtkXMLDataReaderReadArrayValues<vtkArrayIteratorTemplate<vtkStdString>> I detected the issue already in version 5.8.0, it's still active in 5.10.0 and in 6.0 (git #02aef09). | |||||||||||||||||||
Steps To Reproduce | ||||||||||||||||||||
Additional Information | ||||||||||||||||||||
Tags | No tags attached. | |||||||||||||||||||
Relationships |
| |||||||||||||||||||
Attached Files | ![]() https://www.vtk.org/Bug/file/9223/vtk-xmlwriter-bug.zip ![]() https://www.vtk.org/Bug/file/9508/None.vtp ![]() https://www.vtk.org/Bug/file/9509/Zlib.vtp | |||||||||||||||||||
Issue History | ||||||||||||||||||||
Date Modified | Username | Field | Change | |||||||||||||||||
2012-07-04 11:39 | klaus triendl | New Issue | ||||||||||||||||||
2012-07-04 11:39 | klaus triendl | File Added: vtk-xmlwriter-bug.zip | ||||||||||||||||||
2013-06-25 14:22 | Dave DeMarle | Relationship added | child of 0013860 | |||||||||||||||||
2013-06-25 14:22 | Dave DeMarle | Relationship deleted | child of 0013860 | |||||||||||||||||
2013-06-25 14:22 | Dave DeMarle | Relationship added | related to 0013860 | |||||||||||||||||
2013-06-25 14:23 | Dave DeMarle | Relationship added | related to 0013295 | |||||||||||||||||
2013-06-25 14:24 | Dave DeMarle | Relationship added | related to 0013382 | |||||||||||||||||
2013-08-22 04:34 | Emmanuel | Note Added: 0031491 | ||||||||||||||||||
2013-08-22 04:35 | Emmanuel | File Added: None.vtp | ||||||||||||||||||
2013-08-22 04:35 | Emmanuel | File Added: Zlib.vtp | ||||||||||||||||||
2015-08-18 10:25 | T.J. Corona | Note Added: 0035013 | ||||||||||||||||||
2015-08-18 10:25 | T.J. Corona | Status | backlog => closed | |||||||||||||||||
2015-08-18 10:25 | T.J. Corona | Assigned To | => T.J. Corona | |||||||||||||||||
2015-08-18 10:25 | T.J. Corona | Resolution | open => unable to reproduce | |||||||||||||||||
2015-08-18 10:25 | T.J. Corona | Fixed in Version | => 6.3.0 | |||||||||||||||||
2015-12-16 09:23 | Cory Quammen | Assigned To | T.J. Corona => Cory Quammen | |||||||||||||||||
2015-12-16 09:23 | Cory Quammen | Note Added: 0035573 | ||||||||||||||||||
2015-12-16 09:23 | Cory Quammen | Status | closed => backlog | |||||||||||||||||
2015-12-16 09:23 | Cory Quammen | Resolution | unable to reproduce => reopened | |||||||||||||||||
2016-08-12 09:55 | Kitware Robot | Note Added: 0037286 | ||||||||||||||||||
2016-08-12 09:55 | Kitware Robot | Status | backlog => closed | |||||||||||||||||
2016-08-12 09:55 | Kitware Robot | Fixed in Version | 6.3.0 => | |||||||||||||||||
2016-08-12 09:55 | Kitware Robot | Resolution | reopened => moved |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|