MantisBT - VTK
View Issue Details
0000511VTK(No Category)public2004-01-13 05:312013-04-05 20:24
Jean Favre 
Robert Maynard 
normalminoralways
closedfixed 
 
 
0000511: ambiguous Byte Order setting in EnSight Reader
I have a binary EnSight6 file which VTK fails to read with either Little or Big Endian set.
The heuristic in vtkEnSight6BinaryReader.cxx seems to fail for large grid size.

I can supply Debug output to help debug and the file can also be made available (94 Mbytes geom file).

I have been able to read the file by changing the source code around line 2630:

  // If they are both valid, use the larger one.
  if (tmp > 0 && tmp > *result)

I changed "tmp > *result" to "tmp < *result" and it allows VTK to continue without errors. This is only a work-around for the particular file, not a solution to the problem.
No tags attached.
Issue History
2007-08-03 18:06Berk GeveciNote Deleted: 0008300
2007-08-03 18:07Berk GeveciAssigned ToSean McBride =>
2007-08-03 18:07Berk GeveciStatusbacklog => closed
2007-08-03 18:07Berk GeveciResolutionreopened => fixed
2007-08-03 18:07Berk GeveciSummaryGoodsite => ambiguous Byte Order setting in EnSight Reader
2007-08-03 18:07Berk GeveciProject@3@ => VTK
2007-08-03 18:07Berk GeveciStatusclosed => tabled
2007-08-03 18:07Berk GeveciAssigned To => Amy Squillacote
2011-03-11 09:31Robert MaynardNote Added: 0025760
2011-03-11 09:31Robert MaynardStatustabled => @80@
2011-03-11 09:31Robert MaynardAssigned ToAmy Squillacote => Robert Maynard
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2013-04-05 20:24Berk GeveciStatuscustomer review => closed

Notes
(0000474)
Amy Squillacote   
2004-01-14 11:06   
In the same part of the code, the following comparison was made:
if ((tmp*(int)(sizeof(int))) > this->FileSize)

The problem was that if tmp was large enough, then multiplying it by sizeof(int) could overflow an int, making the test fail when we actually want it to pass.
(0025760)
Robert Maynard   
2011-03-11 09:31   
Merge topic 'ensight-large-file-bug'

1521544 Bug 0004687 Support ensight gold files larger than 2GB on 64bit machines.