View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000511VTK(No Category)public2004-01-13 05:312013-04-05 20:24
ReporterJean Favre 
Assigned ToRobert Maynard 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000511: ambiguous Byte Order setting in EnSight Reader
DescriptionI 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.
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0000474)
Amy Squillacote (reporter)
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 (developer)
2011-03-11 09:31

Merge topic 'ensight-large-file-bug'

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

 Issue History
Date Modified Username Field Change
2007-08-03 18:06 Berk Geveci Note Deleted: 0008300
2007-08-03 18:07 Berk Geveci Assigned To Sean McBride =>
2007-08-03 18:07 Berk Geveci Status backlog => closed
2007-08-03 18:07 Berk Geveci Resolution reopened => fixed
2007-08-03 18:07 Berk Geveci Summary Goodsite => ambiguous Byte Order setting in EnSight Reader
2007-08-03 18:07 Berk Geveci Project @3@ => VTK
2007-08-03 18:07 Berk Geveci Status closed => tabled
2007-08-03 18:07 Berk Geveci Assigned To => Amy Squillacote
2011-03-11 09:31 Robert Maynard Note Added: 0025760
2011-03-11 09:31 Robert Maynard Status tabled => @80@
2011-03-11 09:31 Robert Maynard Assigned To Amy Squillacote => Robert Maynard
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2013-04-05 20:24 Berk Geveci Status customer review => closed


Copyright © 2000 - 2018 MantisBT Team