MantisBT - VTK
View Issue Details
0004687VTK(No Category)public2007-03-27 09:342013-04-05 20:24
Jean Favre 
Robert Maynard 
lowmajoralways
closedfixed 
 
 
0004687: wrong endianess decision for EnSight Binary Gold file bigger then 4 Gbytes
I have a 5.6 Gbytes geometry file for an EnSight Gold Binary case. 467 millions cells. The reader falsely estimates that the endianness is wrong based on some code comparing FileSize and grid dimensions. The reader refuses to read the file.

However, this->FileSize is declared as int and assigned with a cast to (int).

When the physical size is greater than 4Gb, the result stored is actually the real size minus 2^32. The tests evaluate to true and execution is interrupted.

I tested declaring FileSize as a long and removing the cast to (int) on line 82 of vtkEnSightGoldBinaryReader.cxx

the test on line 2973 rightfully evaluates to false and execution continues correctly. I am able to visualize my large file.

Can this patch be generalized? and included in future paraview releases? I tested under 2.6.0
No tags attached.
has duplicate 0012041closed Robert Maynard ParaView Problems with Ensight-Files larger 2GB once more 
Issue History
2008-02-06 10:07Jeff BaumesAssigned ToWill Schroeder => Berk Geveci
2011-03-07 11:06Robert MaynardAssigned ToBerk Geveci => Robert Maynard
2011-03-11 09:29Robert MaynardNote Added: 0025759
2011-03-11 09:29Robert MaynardStatustabled => @80@
2011-03-11 09:29Robert MaynardResolutionopen => fixed
2011-03-11 10:00Robert MaynardSource_changeset_attached => VTK master ee91e85e
2011-03-11 10:00Robert MaynardSource_changeset_attached => VTK master 15215445
2011-04-04 13:10Robert MaynardRelationship addedhas duplicate 0012041
2011-04-05 11:00David PartykaSource_changeset_attached => VTK master 2063bdc1
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2013-04-05 20:24Berk GeveciStatuscustomer review => closed

Notes
(0025759)
Robert Maynard   
2011-03-11 09:29   
Merge topic 'ensight-large-file-bug'

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