MantisBT - VTK
View Issue Details
0013160VTK(No Category)public2012-05-10 10:482013-04-05 20:34
JensH 
Utkarsh Ayachit 
highminorhave not tried
closedduplicate 
5.8.0 
 
Release
incorrect functionality
0013160: vtkSTLReader does not read files any more
I have a piece of code, that uses the vtkSTLReader to perform some manipulations on a STL file via python and on the older VTK versions it works great. But after the update via git (d1db5b1), vtk raises the following error on reading an STL.

<snip>
vtkSTLReader (0x7ffc819363c0): STLReader error reading file: /Users/jens/test.stl Premature EOF while reading end solid.
</snip>

The stl can be displayed in paraview and was not altered at all, during the last year. My guess is, that this was introduced in release bbc7a0ef.

If you need further information, please let me know.

Jens
No tags attached.
related to 0013101closed Utkarsh Ayachit ParaView STL reader broken 
tgz stl.tgz (2,095,200) 2012-05-11 03:33
https://www.vtk.org/Bug/file/9192/stl.tgz
? box.stl (1,518) 2012-05-11 05:07
https://www.vtk.org/Bug/file/9193/box.stl
Issue History
2012-05-10 10:48JensHNew Issue
2012-05-10 10:54Utkarsh AyachitNote Added: 0028584
2012-05-10 12:04Bill LorensenNote Added: 0028585
2012-05-11 03:33JensHFile Added: stl.tgz
2012-05-11 03:41JensHNote Added: 0028588
2012-05-11 03:48JensHNote Added: 0028589
2012-05-11 04:18JensHNote Deleted: 0028589
2012-05-11 04:18JensHNote Edited: 0028588bug_revision_view_page.php?bugnote_id=28588#r440
2012-05-11 05:06JensHNote Added: 0028590
2012-05-11 05:07JensHFile Added: box.stl
2012-05-11 07:17JensHNote Added: 0028591
2012-05-17 12:56Utkarsh AyachitAssigned To => Utkarsh Ayachit
2012-05-17 12:56Utkarsh AyachitStatusbacklog => tabled
2012-05-17 12:56Utkarsh AyachitResolutionopen => fixed
2012-05-17 12:59Utkarsh AyachitNote Added: 0028619
2012-05-17 12:59Utkarsh AyachitStatustabled => customer review
2012-05-17 12:59Utkarsh AyachitResolutionfixed => duplicate
2012-05-30 11:09Utkarsh AyachitRelationship addedrelated to 0013101
2013-04-05 20:34Berk GeveciStatuscustomer review => closed

Notes
(0028584)
Utkarsh Ayachit   
2012-05-10 10:54   
Can you post a sample dataset please?
(0028585)
Bill Lorensen   
2012-05-10 12:04   
Jens,

We added more error checking to the STL reader. Is this a file that you created?
(0028588)
JensH   
2012-05-11 03:41   
(edited on: 2012-05-11 04:18)
First of all, thanks for your almost instant reply!

@Utkarsh: I've uploaded the geometry as a tar.gz, otherwise it would be to large

@Bill: This is an STL I received from a workshop's site and it is in the ASCII format, not binary. I've used exactly that (and some other) stl file to run the code and it worked like a charm.

(0028590)
JensH   
2012-05-11 05:06   
I've created a box in paraview exported it as a STL after triangulating it. Using the ReadASCIISTL method results in the same error message. This stl is attatched as well to this report.
(0028591)
JensH   
2012-05-11 07:17   
Ok, I've changed the branch from release to master and now seems to be working.
(0028619)
Utkarsh Ayachit   
2012-05-17 12:59   
This has been fixed.


commit 1d6745888bcc34b260410a3cdbba49ecf0084ba2
Author: Utkarsh Ayachit <utkarsh.ayachit@kitware.com>
Date: Tue Apr 17 14:54:05 2012 -0400

    BUG 0013101. STL ascii reader was report failures prematurely.
    
    STL ascii reader was reporting error when eof was reached at an expected
    location. This was causing the reader to fail for the STL file attached with the
    bug report.
    
    Change-Id: I734d2c8d8c85854df3d2a63bae6ba23bccf7a9c2