MantisBT - ParaView
View Issue Details
0010593ParaViewBugpublic2010-04-22 08:542010-07-08 10:39
tzapuu 
Utkarsh Ayachit 
normalmajoralways
closedfixed 
 
3.8.13.8.1 
0010593: Big-Endian files
 The Paraview versions 3.6/3.8 Beta are not able to open anymore files written in Big-Endian order. We produce the files on a sun machine and post process them on a Linux PC.

The file could be opened trouble loss with Paraview version 3.4
No tags attached.
gz Paraview.tar.gz (65,204) 2010-05-27 09:12
https://www.vtk.org/Bug/file/8148/Paraview.tar.gz
Issue History
2010-04-22 08:54tzapuuNew Issue
2010-04-22 09:01Julien JomierProject@16@ => ParaView
2010-05-07 13:29Utkarsh AyachitNote Added: 0020643
2010-05-07 13:29Utkarsh AyachitStatusbacklog => @80@
2010-05-07 13:29Utkarsh AyachitFixed in Version => 3.8
2010-05-07 13:29Utkarsh AyachitResolutionopen => unable to reproduce
2010-05-07 13:29Utkarsh AyachitAssigned To => Utkarsh Ayachit
2010-05-08 10:45tzapuuNote Added: 0020664
2010-05-08 10:45tzapuuStatus@80@ => @20@
2010-05-08 10:45tzapuuResolutionunable to reproduce => reopened
2010-05-08 10:48tzapuuNote Edited: 0020664
2010-05-08 13:30Utkarsh AyachitStatus@20@ => tabled
2010-05-08 13:30Utkarsh AyachitAssigned ToUtkarsh Ayachit => Zhanping Liu
2010-05-11 11:51Ken MorelandNote Added: 0020709
2010-05-26 15:05Utkarsh AyachitAssigned ToZhanping Liu =>
2010-05-26 15:05Utkarsh AyachitNote Added: 0020827
2010-05-26 15:05Utkarsh AyachitStatustabled => @20@
2010-05-27 09:12tzapuuFile Added: Paraview.tar.gz
2010-05-27 09:19tzapuuNote Added: 0020835
2010-06-01 13:09BuddelNote Added: 0020885
2010-06-09 16:59Utkarsh AyachitStatus@20@ => tabled
2010-06-09 16:59Utkarsh AyachitAssigned To => Utkarsh Ayachit
2010-06-09 16:59Utkarsh AyachitCategory => Bug
2010-06-09 16:59Utkarsh AyachitFixed in Version3.8 =>
2010-06-09 16:59Utkarsh AyachitTarget Version => 3.8.2
2010-06-10 09:56Utkarsh AyachitNote Added: 0020962
2010-06-10 09:56Utkarsh AyachitStatustabled => @80@
2010-06-10 09:56Utkarsh AyachitResolutionreopened => fixed
2010-06-15 09:44Utkarsh AyachitTarget Version3.8.2 => 3.8.1
2010-06-16 18:10Alan ScottNote Added: 0021052
2010-06-16 18:10Alan ScottStatus@80@ => closed
2010-07-07 09:55Utkarsh AyachitFixed in Version => Development
2010-07-07 17:35Utkarsh AyachitNote Added: 0021306
2010-07-08 10:39Utkarsh AyachitNote Deleted: 0021306
2010-07-08 10:39Utkarsh AyachitNote Added: 0021324
2010-07-08 10:39Utkarsh AyachitFixed in VersionDevelopment => 3.8.1

Notes
(0020643)
Utkarsh Ayachit   
2010-05-07 13:29   
I believe the reporter is referring to Ensight reader panel no longer having the endian-ness option. That's because the reader automatically figures out the endian-ness, without having the user to choose it.
(0020664)
tzapuu   
2010-05-08 10:45   
(edited on: 2010-05-08 10:48)
Hi,

Maybe I did not clarify the issue good enough. Sorry.

The endian detector you mention does very well the detection BUT I suppose it detect the endian writing based on the system - NOT the actual file. And here it comes the problem: If the files are produced on another Operating System/Machine/Cluster than the machine where paraview is running, one CAN NOT open them anymore.

So:
1 my desktop PC is a Linux machine (here i use Paraview)
2 I generate the "Ensight gold" files on a sun/solaris (different endian)
3 When I try to open the files the endianness is wrong taken from the Linux machine even if the files are written in different Endian order.

The files and so are corect as they work as a charm in Paraview 3.4

If more infos are needed please let me know.

Best regards,
Adrian

(0020709)
Ken Moreland   
2010-05-11 11:51   
It might be helpful if example files were uploaded/attached to this bug report.
(0020827)
Utkarsh Ayachit   
2010-05-26 15:05   
Please attach a sample dataset.
(0020835)
tzapuu   
2010-05-27 09:19   
Hi all,

As requested a small example has been uploaded.

Best regards,
Adrian
(0020885)
Buddel   
2010-06-01 13:09   
Hey,

I have the same problem. If I try to open the "Ensight Gold" case-files on my Linux/Ubuntu mashine I get the same failure. I generate the files on sun solaris too. If I try to open the file unter Windows 32Bit, I get the same failure.

Here is the output message:
++++++++++++++++++++++++++++++++++++++++++++++
ERROR: In ..\..\..\src\Servers\Filters\vtkEnSightGoldBinaryReader2.cxx, line 150
vtkEnSightGoldBinaryReader2 (0543DB88): Error with subline extraction upon file initialization


ERROR: In ..\..\..\src\Servers\Filters\vtkEnSightReader2.cxx, line 307
vtkEnSightGoldBinaryReader2 (0543DB88): error reading geometry file


ERROR: In ..\..\..\src\VTK\Filtering\vtkExecutive.cxx, line 756
vtkCompositeDataPipeline (0C73C5D8): Algorithm vtkEnSightGoldBinaryReader2(0543DB88) returned failure for request: vtkInformation (05503CE0)
  Debug: Off
  Modified Time: 75761
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA
  FROM_OUTPUT_PORT: 0
  FORWARD_DIRECTION: 0
  ALGORITHM_AFTER_FORWARD: 1
++++++++++++++++++++++++++++++++++++++++++++++

In my opinion the problem is the endian-ness "autodetection" which don't get the correct endian-ness of the binary files (with ParaView 3.4 I get errors like this if I choose the wrong endian-ness).

Is there a switch or option to turn off the autodetection of endian-ness?

Regards
(0020962)
Utkarsh Ayachit   
2010-06-10 09:56   
commit 860a8c5225743eb078b99a977ca064f5de4c824e
Author: Utkarsh Ayachit <utkarsh.ayachit@kitware.com>
Date: Thu Jun 10 09:53:17 2010 -0400

    Fixed BUG 0010593 Bug in EnSight byte-ordering auto-detection.
    
    vtkEnSightGoldBinaryReader2::ReadLine() was getting called before the code that
    auto-detected the byte order. There was code in ReadLine() that relied on
    byte-order being set!!! That was the bug (esp. with fortran written files).
    Fixed ReadLine() to handle the case when byte order hasn't been set explicitly.


--------------------------------------------------------------------------------
TODO: Commit should be added to "release" branch.
(0021052)
Alan Scott   
2010-06-16 18:10   
Tested using included data, trunk, Windows, local server.
(0021324)
Utkarsh Ayachit   
2010-07-08 10:39   
moved to release