View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0014326 | ParaView | (No Category) | public | 2013-10-15 06:29 | 2013-10-16 02:12 | ||||
Reporter | Tobias Holzmann M.Eng. | ||||||||
Assigned To | |||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | 3.14.1 | ||||||||
Target Version | Fixed in Version | 3.14.1 | |||||||
Summary | 0014326: vtkSTLReader does not read ASCII STL anymore | ||||||||
Description | Hi all, the vtkSTLReader seems to have an old problem again. The Reader can not open an ASCII STL file anymore. I get the following error: ERROR: In /home/shorty/software/ParaView-3.14.1-Source/VTK/IO/vtkSTLReader.cxx, line 446 vtkSTLReader (0x2959910): STLReader error reading file: /home/shorty/OpenFOAM/shorty-2.2.x/run/schichtspeicher/cad/outlet.stl Premature EOF while reading end solid. It is the same error like here: http://vtk.org/Bug/view.php?id=13160 [^] The STL file is created with SALOME MECA and older STL files can not be loaded to. Additionally I tested the STL files used in the OpenFOAM tutorial for meshing. The same error. This error occur with self-build in 3.12.0 3.14.0 3.14.1 This error occur with binaries in 3.12.0 3.14.1 With the latest version (binaries) V4 it is working. Maybe an additional information. I had a look at the STL files and everything is fine. To remove the error I can change the last line in the STL file: endsolid --> end solid After that the vtkSTLReader can read the file but this should not be the normal way. STL files can be loaded when converting into binary format. If you need more information let me know. Regard Tobi | ||||||||
Tags | No tags attached. | ||||||||
Project | Kitware | ||||||||
Topic Name | |||||||||
Type | crash | ||||||||
Attached Files | inlet.stl.tar.gz [^] (21,148 bytes) 2013-10-15 06:29 | ||||||||
Relationships | |
Relationships |
Notes | |
(0031688) Tobias Holzmann M.Eng. (reporter) 2013-10-16 02:12 |
To solve this Problem you have to edit the following file: ParaView-3.14.1-Source/VTK/IO/vtkSTLReader.cxx on line 446: if (!fgets(line, 255, fp)) { // if fgets() returns an error, it may be due to the fact that the EOF // is reached (BUG 0013101) hence we test again. done = feof(fp); if (!done) { vtkErrorMacro ("STLReader error reading file: " << this->FileName << " Premature EOF while reading end solid."); fclose(fp); return 0; } } done = feof(fp); } It is the code implemented in version 4.0.1. Regards Tobi |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2013-10-15 06:29 | Tobias Holzmann M.Eng. | New Issue | |
2013-10-15 06:29 | Tobias Holzmann M.Eng. | File Added: inlet.stl.tar.gz | |
2013-10-16 02:12 | Tobias Holzmann M.Eng. | Note Added: 0031688 | |
2013-10-16 02:12 | Tobias Holzmann M.Eng. | Status | backlog => closed |
2013-10-16 02:12 | Tobias Holzmann M.Eng. | Resolution | open => fixed |
2013-10-16 02:12 | Tobias Holzmann M.Eng. | Fixed in Version | => 3.14.1 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |