CFD Online Discussion Forums

CFD Online Discussion Forums (
-   ParaView (
-   -   [OpenFOAM] paraFoam can't open STL file (

ordinary March 26, 2017 11:13

paraFoam can't open STL file
1 Attachment(s)

I have an annoying problem. I can't open STL file which is in constant/triSurface folder. STL file is working properly. So I think my error is about installation.

Attachment 54914

I clicked console view:


p, li { white-space: pre-wrap; }  ERROR: In /home/emre/foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD/ParaView-v4.4.0-source/VTK/IO/Geometry/vtkSTLReader.cxx, line 461
 vtkSTLReader (0x5a63e00): STLReader: error while reading file /home/emre/Desktop/foam-extend-4.0/run/modifiedsolver/constant/triSurface/IB_block.stl at line 287: unable to read reading point.



ERROR: In /home/emre/foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD/ParaView-v4.4.0-source/VTK/Common/ExecutionModel/vtkExecutive.cxx, line 784
 vtkPVCompositeDataPipeline (0x5b80c20): Algorithm vtkFileSeriesReader(0x5b80040) returned failure for request: vtkInformation (0x556f7b0)
   Debug: Off
   Modified Time: 305221
   Reference Count: 1
   Registered Events: (none)
   Request: REQUEST_DATA



I checked the lines related with errors. They are:

1) foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD/ParaView-v4.4.0-source/VTK/IO/Geometry/vtkSTLReader.cxx, line 461


catch (const std::runtime_error &e)
    vtkErrorMacro("STLReader: error while reading file " <<
      this->FileName << " at line " << lineCount << ": " << e.what());
    return false;


foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD/ParaView-v4.4.0-source/VTK/Common/ExecutionModel/vtkExecutive.cxx, line 784


  // If the algorithm failed report it now.
    vtkErrorMacro("Algorithm " << this->Algorithm->GetClassName()
                  << "(" << this->Algorithm
                  << ") returned failure for request: "
                  << *request);

  return result;


wyldckat March 26, 2017 14:55

Quick question: Do you have the same problem if you run this command:

paraview $FOAM_TUTORIALS/immersedBoundary/cylBumpInterIbFoam/constant/triSurface/ibCylinder.stl
It will start ParaView and open one of the STL files from foam-extend 4.0.

ordinary March 27, 2017 04:15

1 Attachment(s)
Thank you very much for reply.

I run and opened it. There is no problem. I can see STL cylinder. BTW after closing ParaView, I received this on the terminal. I think it is not important because I can open an STL file at all:


Inconsistency detected by dl-close.c: 811: _dl_close: Assertion `map->l_init_called' failed!
After that I tried to open my STL again, but I get which is working on other laptop(openSUSE 42.1, foam-extend 3.2). I received same error:

Attachment 54925

I will also attach my STL to next post because I can't attach this one.

Thank you very much Bruno, for this and for all of your effort on openFoam, foam-extend.


akidess March 27, 2017 04:38

Did you use the same Paraview version on your Laptop? I recall there was a Paraview version with an STL reader bug.

ordinary March 27, 2017 04:51

1 Attachment(s)
Here I attached STL file that gives me error which does not supposed to do so.
It is in text file due to the restriction of uploading it in STL extension. So you can simply change its extension to .STL from .TXT.
Attachment 54926

ordinary March 27, 2017 04:55


Originally Posted by akidess (Post 642403)
Did you use the same Paraview version on your Laptop? I recall there was a Paraview version with an STL reader bug.

Hello and thank you for the reply,

The working version is 4.3.1 on openSUSE 42.1.
This error I'm dealing with is 4.4.0 on ubuntu 16.04.


wyldckat April 25, 2017 12:56

Greetings to all!

@Emre: Sorry for taking so long to get back to you on this. Anton is right, ParaView 4.4.0 has a bug when it comes to loading STL files, as reported here:

You will have to either have to:
  • rebuild ParaView 4.4.0 in foam-extend to use the bug fix reported there;
  • or install another version of OpenFOAM that has this fixed and switch between terminal tabs, with different loaded OpenFOAM/foam-extend environments, as explained here:
  • or use surfaceConvert to convert the STL to another format, e.g.:

    surfaceConvert IB_block.stl IB_block.obj

Best regards,

All times are GMT -4. The time now is 10:44.