|
[Sponsors] |
October 14, 2013, 12:10 |
Problems with ASCII STL
|
#1 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hi all,
I can not open an ascii stl file. Therefor I got the following error: Code:
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. *** glibc detected *** ./bin/paraview: double free or corruption (!prev): 0x000000000294c960 *** ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x7eb96)[0x7ff63d3a6b96] /lib/x86_64-linux-gnu/libc.so.6(fclose+0x155)[0x7ff63d396815] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkIO.so.pv3.14(_ZN12vtkSTLReader11RequestDataEP14vtkInformationPP20vtkInformationVectorS3_+0x712)[0x7ff6376b53cc] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkFiltering.so.pv3.14(_ZN20vtkPolyDataAlgorithm14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x5e)[0x7ff638816232] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkPVVTKExtensions.so(_ZN19vtkFileSeriesReader11RequestDataEP14vtkInformationPP20vtkInformationVectorS3_+0x85)[0x7ff63a1cccab] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkPVVTKExtensions.so(_ZN19vtkFileSeriesReader14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x1eb)[0x7ff63a1cc36b] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkFiltering.so.pv3.14(_ZN12vtkExecutive13CallAlgorithmEP14vtkInformationiPP20vtkInformationVectorS3_+0x87)[0x7ff63869a6b5] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkFiltering.so.pv3.14(_ZN23vtkDemandDrivenPipeline11ExecuteDataEP14vtkInformationPP20vtkInformationVectorS3_+0x6f)[0x7ff638682ef3] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkFiltering.so.pv3.14(_ZN24vtkCompositeDataPipeline11ExecuteDataEP14vtkInformationPP20vtkInformationVectorS3_+0x2ca)[0x7ff638653820] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkFiltering.so.pv3.14(_ZN23vtkDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x517)[0x7ff6386825b1] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkFiltering.so.pv3.14(_ZN32vtkStreamingDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x714)[0x7ff63889cce0] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkFiltering.so.pv3.14(_ZN24vtkCompositeDataPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x477)[0x7ff638653013] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkFiltering.so.pv3.14(_ZN24vtkCompositeDataPipeline15ForwardUpstreamEP14vtkInformation+0x57c)[0x7ff638652a9a] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkFiltering.so.pv3.14(_ZN23vtkDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x482)[0x7ff63868251c] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkFiltering.so.pv3.14(_ZN32vtkStreamingDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x714)[0x7ff63889cce0] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkFiltering.so.pv3.14(_ZN24vtkCompositeDataPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x477)[0x7ff638653013] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkFiltering.so.pv3.14(_ZN23vtkDemandDrivenPipeline10UpdateDataEi+0x2d8)[0x7ff638682cba] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkFiltering.so.pv3.14(_ZN32vtkStreamingDemandDrivenPipeline6UpdateEi+0xd6)[0x7ff63889cefe] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkPVServerImplementation.so(_ZN16vtkSISourceProxy14UpdatePipelineEidb+0x17f)[0x7ff63bee4c53] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkPVServerImplementationCS.so(_Z23vtkSISourceProxyCommandP26vtkClientServerInterpreterP13vtkObjectBasePKcRK21vtkClientServerStreamRS5_+0x6c4)[0x7ff632612d67] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkPVServerImplementationCS.so(_Z33vtkSIFileSeriesReaderProxyCommandP26vtkClientServerInterpreterP13vtkObjectBasePKcRK21vtkClientServerStreamRS5_+0x4c0)[0x7ff63260a363] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkClientServer.so(_ZN26vtkClientServerInterpreter20ProcessCommandInvokeERK21vtkClientServerStreami+0x18e)[0x7ff636f58cd4] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkClientServer.so(_ZN26vtkClientServerInterpreter17ProcessOneMessageERK21vtkClientServerStreami+0x135)[0x7ff636f58405] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkClientServer.so(_ZN26vtkClientServerInterpreter13ProcessStreamERK21vtkClientServerStream+0x2f)[0x7ff636f5829f] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkPVServerImplementation.so(_ZN16vtkPVSessionCore21ExecuteStreamInternalERK21vtkClientServerStreamb+0xdb)[0x7ff63be9c6ff] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkPVServerImplementation.so(_ZN16vtkPVSessionCore13ExecuteStreamEjRK21vtkClientServerStreamb+0x1f2)[0x7ff63be9c502] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkPVServerImplementation.so(_ZN16vtkPVSessionBase13ExecuteStreamEjRK21vtkClientServerStreamb+0x5e)[0x7ff63be98e46] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkPVServerManager.so(_ZN10vtkSMProxy13ExecuteStreamERK21vtkClientServerStreambj+0xad)[0x7ff63c52c827] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkPVServerManager.so(_ZN15vtkSMOutputPort22UpdatePipelineInternalEdb+0x21e)[0x7ff63c50c0ee] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkPVServerManager.so(_ZN15vtkSMOutputPort14UpdatePipelineEd+0x34)[0x7ff63c50bece] /home/shorty/software/ParaView-3.14.1-bin/bin/libvtkPVServerManager.so(_ZN16vtkSMSourceProxy14UpdatePipelineEd+0x7a)[0x7ff63c58dcb0] /home/shorty/software/ParaView-3.14.1-bin/bin/libpqCore.so(_ZN16pqPipelineSource14updatePipelineEv+0x60)[0x7ff63ef46ffe] /home/shorty/software/ParaView-3.14.1-bin/bin/libpqCore.so(_ZNK15pqDisplayPolicy20getPreferredViewTypeEP12pqOutputPortb+0x8c)[0x7ff63eefc812] /home/shorty/software/ParaView-3.14.1-bin/bin/libpqCore.so(_ZNK15pqDisplayPolicy16getPreferredViewEP12pqOutputPortP6pqView+0x4d)[0x7ff63eefcc95] /home/shorty/software/ParaView-3.14.1-bin/bin/libpqCore.so(_ZNK15pqDisplayPolicy29createPreferredRepresentationEP12pqOutputPortP6pqViewb+0xab)[0x7ff63eefcf5b] /home/shorty/software/ParaView-3.14.1-bin/bin/libpqComponents.so(_ZN23pqObjectInspectorWidget4showEP16pqPipelineSource+0xaa)[0x7ff63f56efd0] /home/shorty/software/ParaView-3.14.1-bin/bin/libpqComponents.so(_ZN23pqObjectInspectorWidget6acceptEv+0x255)[0x7ff63f56e28f] /home/shorty/software/ParaView-3.14.1-bin/bin/libpqComponents.so(+0x3bce07)[0x7ff63f66ce07] /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x2b1)[0x7ff63dd8f281] /home/shorty/software/ParaView-3.14.1-bin/bin/libpqComponents.so(_ZN24pqApplyPropertiesManager5applyEv+0x29)[0x7ff63f663187] /home/shorty/software/ParaView-3.14.1-bin/bin/libpqComponents.so(_ZN24pqApplyPropertiesManager15applyPropertiesEv+0x5c)[0x7ff63f4720ea] /home/shorty/software/ParaView-3.14.1-bin/bin/libpqComponents.so(+0x3b3034)[0x7ff63f663034] /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x2b1)[0x7ff63dd8f281] /usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN15QAbstractButton7clickedEb+0x32)[0x7ff63e933c72] /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x599a4e)[0x7ff63e671a4e] /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x59ad8b)[0x7ff63e672d8b] /usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN15QAbstractButton17mouseReleaseEventEP11QMouseEvent+0x8c)[0x7ff63e672ffc] /usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x684)[0x7ff63e2f4144] /usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xb4)[0x7ff63e2a3894] /usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0xabf)[0x7ff63e2a90bf] /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8c)[0x7ff63dd7ae9c] /usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Eb+0x172)[0x7ff63e2a4862] /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x24bbf5)[0x7ff63e323bf5] /usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0xdce)[0x7ff63e322bae] /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x2740d2)[0x7ff63e34c0d2] /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x133)[0x7ff636827d53] /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x480a0)[0x7ff6368280a0] /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x34)[0x7ff636828164] /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x6f)[0x7ff63ddaa3bf] /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x273d5e)[0x7ff63e34bd5e] /usr/lib/x86_64-linux-gnu/libQtCore.so.4(Abgebrochen (Speicherabzug geschrieben) I searched around and found that this problem already is known (http://www.paraview.org/pipermail/pa...il/024690.html) Further more the error/problem should be solved but I do not know why its not working on my maschine. Its the first time that this is not working. Does anyone have any hints? Regards Tobi PS: a) Self-Build PV-3.14.1 is not able to load the ascii stl b) binaries PV-3.14.1 ist not able to load the ascii stl c) binaries PV-3.14.0 ist not able to load the ascii stl d) Binaries PV-4.0 is working fine to load the ascii stl Last edited by Tobi; October 14, 2013 at 17:19. |
|
October 14, 2013, 18:17 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Tobi,
Continuing from the private message... Then it can only be one thing: the war of commas vs periods. Because "1,000" is not the same as "1.000". Try running these two commands: Code:
export LC_ALL=C paraview For more information: http://www.cfd-online.com/Forums/ope...-parafoam.html Best regards, Bruno
__________________
|
|
October 14, 2013, 18:26 |
|
#3 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hi Bruno,
thanks for your replay. The error exists! My stl looks as every old one: Code:
solid inlet facet normal -1.000000e+00 0.000000e+00 0.000000e+00 outer loop vertex 4.210000e-01 0.000000e+00 6.300000e-02 vertex 4.210000e-01 9.951403e-04 6.296186e-02 vertex 4.210000e-01 5.685894e-04 6.207929e-02 endloop endfacet facet normal -1.000000e+00 0.000000e+00 0.000000e+00 outer loop vertex 4.210000e-01 1.984441e-03 6.284765e-02 vertex 4.210000e-01 2.962096e-03 6.265804e-02 vertex 4.210000e-01 2.353770e-03 6.207462e-02 endloop endfacet facet normal -1.000000e+00 0.000000e+00 0.000000e+00 outer loop vertex 4.210000e-01 3.922368e-03 6.239415e-02 vertex 4.210000e-01 4.859622e-03 6.205753e-02 vertex 4.210000e-01 4.011797e-03 6.140342e-02 endloop . . . I added my STL file to check it out. |
|
October 14, 2013, 18:34 |
|
#4 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Solved.
I do not know it but the last line of my file is: Code:
endsolid Code:
end solid Code:
ERROR: In /home/shorty/software/ParaView-3.14.1-Source/VTK/IO/vtkSTLReader.cxx, line 446 vtkSTLReader (0x2d3f610): STLReader error reading file: /home/shorty/schichtspeicher/cad/stl/inlet.stl Premature EOF while reading end solid. Hmmm ... Strange error. Any hints are apreciated! Regards Tobi PS: I made a new Topic on MantisBT couse this error seems to be an old error again: http://paraview.org/Bug/view_all_bug...p?filter=88897 Last edited by Tobi; October 15, 2013 at 13:46. |
|
October 15, 2013, 14:00 |
|
#5 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hi all,
I compared the source code of PV-3.14.1 and PV-4.0.1 in the file: vtkSTLReader.cxx because in the latest version its working. I found the following two codes: Paraview-3.14.1 Code:
while ((strstr(line, "SOLID") == 0) && (strstr(line, "solid") == 0) && !done) { if (!fgets(line, 255, fp)) { vtkErrorMacro ("STLReader error reading file: " << this->FileName << " Premature EOF while reading end solid."); fclose(fp); return 0; } done = feof(fp); } Code:
while ((strstr(line, "SOLID") == 0) && (strstr(line, "solid") == 0) && !done) { if (!fgets(line, 255, fp)) { // if fgets() returns an error, it may be due to the fact that the EOF // is reached (BUG #13101) 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); } I will change the code and recompile it again. After it I will tell you the result. Regards Tobi Last edited by Tobi; October 15, 2013 at 17:17. |
|
April 30, 2014, 14:49 |
|
#7 |
Member
Lucas Mutti
Join Date: Aug 2013
Posts: 47
Rep Power: 14 |
Hey Tobi,
Bruno told me you came across this problem a while ago. In case you, or anyone else, come across this problem again please refer to my post on the link below. I hope this can help. http://www.cfd-online.com/Forums/ope...tml#post489165 Cheers Lucas |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[waves2Foam] Problems in Operating waveDyMFoam in openfoam 2.3.1 | zhxter | OpenFOAM Community Contributions | 2 | May 18, 2015 21:57 |
[CAD formats] application of ASCII STL in different systems | ljjouc | OpenFOAM Meshing & Mesh Conversion | 2 | August 29, 2014 05:14 |
[snappyHexMesh] Convert stl files and multi region | abrunet | OpenFOAM Meshing & Mesh Conversion | 1 | July 1, 2014 11:15 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 08:21 |
STL File - Mesh Surface Problems | Harmeet | CFX | 3 | June 10, 2004 19:19 |