MantisBT - VTK |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0012819 | VTK | (No Category) | public | 2011-12-21 11:24 | 2016-08-12 09:55 |
|
Reporter | Tobias Maier | |
Assigned To | Dave DeMarle | |
Priority | normal | 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 | TBD |
Type | incorrect functionality |
|
Summary | 0012819: Wrong byte order for long (64bit) in vtkDataReader/vtkDataWriter |
Description | When a vtkLongArray is written with the vtkDataWriter on a system where sizeof(long) = 8 the byte order is changed within a block of 8 bytes [0 1 2 3 4 5 6 7] -> [7 6 5 4 3 2 1 0]. But when the data is read back with vtkDataReader it uses a block size of 4 for swapping the byte order for long. This results when writing and reading (as in marshalling/unmarshalling in vtkCommunicator) in an ordering of [4 5 6 7 0 1 2 3].
I do not know if the behaviour of the reader or writer is correct and if an exchange between systems with 32bit and 64bit is even possible.
The attached file is an example that should reproduce the explained bug on 64bit systems. |
Steps To Reproduce | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | vtkWriterReaderBug.cxx (2,308) 2011-12-21 11:24 https://www.vtk.org/Bug/file/9094/vtkWriterReaderBug.cxx |
|
Issue History |
Date Modified | Username | Field | Change |
2011-12-21 11:24 | Tobias Maier | New Issue | |
2011-12-21 11:24 | Tobias Maier | File Added: vtkWriterReaderBug.cxx | |
2013-07-22 16:46 | Dave DeMarle | Note Added: 0031174 | |
2013-07-22 16:46 | Dave DeMarle | Status | backlog => expired |
2013-07-22 16:46 | Dave DeMarle | Resolution | open => fixed |
2013-07-22 16:46 | Dave DeMarle | Assigned To | => Dave DeMarle |
2016-08-12 09:55 | Kitware Robot | Note Added: 0037265 | |
2016-08-12 09:55 | Kitware Robot | Status | expired => closed |
2016-08-12 09:55 | Kitware Robot | Resolution | fixed => moved |