[Paraview] pv 3.8 segfaults on opening raw binary files

2012-05-15 Thread Mohammad Mirzadeh
Hi guys, I have a problem getting pv open my binary file. It basically segfaults and terminates without any information. When I run in gdb I get: ERROR: In /build/buildd/paraview-3.8.1/VTK/IO/vtkDataReader.cxx, line 1910 vtkUnstructuredGridReader (0x19f6890): Unsupported data type: 1 Program rec

Re: [Paraview] pv 3.8 segfaults on opening raw binary files

2012-05-16 Thread Mohammad Mirzadeh
If it helps, here's the source code and attached is a sample binary file: void QuadTree::writeBinaryVTK(string file_name, vtk_data_format format){ CaslInt num_of_nodes, num_of_cells, num_of_leaf_cells; CaslInt node_of_cell[4]; const QuadCell *cell = this -> get_cells(); co

Re: [Paraview] pv 3.8 segfaults on opening raw binary files

2012-05-17 Thread David E DeMarle
Something is wrong with this binary file. Paraview opens up other binary files just fine, but 3.8 and newer versions of paraview don't open up this one. ParaView appears to failing near vtkDataSetSurfaceFilter.cxx:1097 where it is trying to process the cells. Try these to diagnose the specific pr

Re: [Paraview] pv 3.8 segfaults on opening raw binary files

2012-05-17 Thread Mohammad Mirzadeh
Thanks David. I have thoroughly looked through that file format document but with no luck. It the mean time, I have tried the xml format and while my ascii writer (both in legacy and xml versions) work, I'm hopeless when it comes to the binary version. It seems that (for xml binary) pv is confused

Re: [Paraview] pv 3.8 segfaults on opening raw binary files

2012-05-17 Thread Mohammad Mirzadeh
YES! Alright fixed the problem. This might help other folks having the same problem: http://public.kitware.com/pipermail/paraview/2007-October/006066.html Since I know what big pain this is, email me if you needed assistance getting your code working :D On Thu, May 17, 2012 at 4:13 PM,