ParaView 5.0 for Windows fails to open EnSight files larger than 2 GiB
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
When I open EnSight (version Gold or 6) case with geometry file larger than 2 GiB in ParaView 5.0 x64 for Windows (version 7 x64) I receive a geometry file reading error: stat failed. On smaller files or under Linux (CentOS 6.7 x64) this error doesn't occour. The ParaView Windows binary installer (version 5.0.0) downloaded from official website.
I took a look at the code and, possibly, found the reason for this bug. The error occures in line 114 of vtkEnSightGoldBinaryReader.cxx (stat failed). In this file stat() function and stat structure is used. For correct functionality of this syntax under 64-bit OS the macro _FILE_OFFSET_BITS should be set to 64 (otherwise 32-bit stat function and struct will be used). I didn't find _FILE_OFFSET_BITS definition in vtkEnSightGoldBinaryReader.cxx or relevant headers (I didn't check all headers cause they are related to geometry, not file operations).