# error when trying to import stl files

**URL:** https://discourse.vtk.org/t/error-when-trying-to-import-stl-files/12436
**Category:** Support
**Created:** [October 7, 2023, 12:31pm UTC](https://discourse.vtk.org/t/error-when-trying-to-import-stl-files/12436 "2023-10-07T12:31:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![evass](https://discourse.vtk.org/user_avatar/discourse.vtk.org/evass/32/7798_2.png) [@evass](https://discourse.vtk.org/u/evass)
#### Post date: [October 7, 2023, 12:31pm UTC](https://discourse.vtk.org/t/error-when-trying-to-import-stl-files/12436/1 "2023-10-07T12:31:26Z")

</div>

Hello. I am using a tool within linux mint (BARAM) to import stl files and then create surface meshes. Although the information contained within the .stl file (like surface names) is loaded, it cannot be displayed. In the terminal the following error is shown. All stl files that fail to load in the tool are accessible in other tools like “PARAVIEW”.

TK-6.3.0/IO/Geometry/vtkSTLReader.cxx, line 461  
/vtkSTLReader (0x3965560): STLReader: error while reading file /home/XXXX/.OpenFOAM/Baram\_temporary/system/settings/bottom.stl at line 3: unable to read point.

ERROR: In /home/foamer/Projects/Baram/dev/makeLibs/src/VTK-6.3.0/Common/ExecutionModel/vtkExecutive.cxx, line 784  
vtkCompositeDataPipeline (0x391fff0): Algorithm vtkSTLReader(0x3965560) returned failure for request: vtkInformation (0x395c780)  
Debug: Off  
Modified Time: 9094  
Reference Count: 1  
Registered Events: (none)  
Request: REQUEST\_DATA  
ALGORITHM\_AFTER\_FORWARD: 1  
FORWARD\_DIRECTION: 0  
FROM\_OUTPUT\_PORT: 0

Can you please suggest any solution?  
Thank you in advance

---

<div class="post-metadata">

### Author: ![gongwaner](https://discourse.vtk.org/user_avatar/discourse.vtk.org/gongwaner/32/6996_2.png) [@gongwaner](https://discourse.vtk.org/u/gongwaner)
#### Post date: [October 8, 2023, 2:12am UTC](https://discourse.vtk.org/t/error-when-trying-to-import-stl-files/12436/2 "2023-10-08T02:12:31Z")

</div>

Could you upload the .stl file? It might be that the .stl file is not valid.

---

<div class="post-metadata">

### Author: ![evass](https://discourse.vtk.org/user_avatar/discourse.vtk.org/evass/32/7798_2.png) [@evass](https://discourse.vtk.org/u/evass)
#### Post date: [October 8, 2023, 9:26am UTC](https://discourse.vtk.org/t/error-when-trying-to-import-stl-files/12436/3 "2023-10-08T09:26:34Z")

</div>

Thank you for your reply. The .stl file I am talking about opens in virtually any tool that can import .stl files (blender, Paraview, etc.). I am no expert, but I think the problem is related to the tool I am using to import the file. It does the same thing with any .stl files I am trying to import.

Unfortunately as a new user I cannot upload any content.

Thank you.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [October 9, 2023, 7:31am UTC](https://discourse.vtk.org/t/error-when-trying-to-import-stl-files/12436/4 "2023-10-09T07:31:23Z")

</div>

> [@evass](#):
>
> The .stl file I am talking about opens in virtually any tool that can import .stl files (blender, Paraview, etc.)

ParaView literally uses the vtkSTLReader, you may want to share your data.

---

<div class="post-metadata">

### Author: ![will.schroeder](https://discourse.vtk.org/user_avatar/discourse.vtk.org/will.schroeder/32/233_2.png) [@will.schroeder](https://discourse.vtk.org/u/will.schroeder)
#### Post date: [October 9, 2023, 9:43am UTC](https://discourse.vtk.org/t/error-when-trying-to-import-stl-files/12436/5 "2023-10-09T09:43:46Z")

</div>

If I am reading the error output correctly you are using VTK version VTK-6.3.0 which is quite old, I would guess that this is the problem.

---

<div class="post-metadata">

### Author: ![evass](https://discourse.vtk.org/user_avatar/discourse.vtk.org/evass/32/7798_2.png) [@evass](https://discourse.vtk.org/u/evass)
#### Post date: [October 9, 2023, 10:39am UTC](https://discourse.vtk.org/t/error-when-trying-to-import-stl-files/12436/6 "2023-10-09T10:39:36Z")

</div>

Thank you all for your kind replies. @will.schroeder: Yes, I am aware that the 6.3.0 utilised by the tool is quite old. Do you recon to replace the whole folder with a newer version of the libraries? Will that work?

Kind regards,  
EV
