[Paraview] Debbuging vtkEnSight6BinaryReader.cxx: this->FileSize is
negative: type int being used for FileSize
Peter J. Bismuti
pjb9508 at vashon.ca.boeing.com
Mon Jul 3 15:45:34 EDT 2006
The EnSight reader is exiting after an assertion fails based on the file size.
Notice I have stuck in an additional error message printing out data.
It is saying the file size is negative. Has anyone seen this error before?
The type of FileSize is an integer. What if the size is larger than the
range of int?
The file size is being set at line 92:
struct stat fs;
if ( !stat( filename, &fs) )
{
// Find out how big the file is.
this->FileSize = (int)(fs.st_size);
# Error or warning: There was a VTK Error in
file: /acct/pjb9508/VTK/paraview-2.4.3/VTK/IO/vtkEnSight6BinaryReader.cxx
(222)
vtkEnSight6BinaryReader (0x1e80400): NumberOfUnstructuredPoints = 51307155,
sizeof(int) = 4, FileSize = -319714492
ErrorMessage end
ErrorMessage
# Error or warning: There was a VTK Error in
file: /acct/pjb9508/VTK/paraview-2.4.3/VTK/IO/vtkEnSight6BinaryReader.cxx
(223)
vtkEnSight6BinaryReader (0x1e80400): Invalid number of unstructured points;
check that ByteOrder is set correctly.
ErrorMessage end
ErrorMessage
# Error or warning: There was a VTK Error in
file: /acct/pjb9508/VTK/paraview-2.4.3/VTK/IO/vtkEnSightReader.cxx (270)
vtkEnSight6BinaryReader (0x1e80400): error reading geometry file
ErrorMessage end
ErrorMessage
# Error or warning: There was a VTK Error in
file: /acct/pjb9508/VTK/paraview-2.4.3/VTK/Filtering/vtkExecutive.cxx (688)
vtkCompositeDataPipeline (0x1e80240): Algorithm
vtkEnSight6BinaryReader(0x1e80400) returned failure for request:
vtkInformation (0x1e82b80)
Debug: Off
Modified Time: 101863
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA
FORWARD_DIRECTION: 0
KEYS_TO_COPY: UPDATE_BLOCKS
FROM_OUTPUT_PORT: 0
ALGORITHM_AFTER_FORWARD: 1
ErrorMessage end
More information about the ParaView
mailing list