[vtkusers] Fill holes filter crash when using large vtk mesh

chaitanya nittala chyt_n_ya at yahoo.com
Wed Nov 16 02:23:59 EST 2011


Hi,

I am new to VTK. I am trying to fill small holes in a mesh I created using Kinect data. I used the example code to do that. While it works fine for small meshes, it crashes for large meshes (over 150MB in size when saved in .vtk ASCII format, roughly 15,000,000 points). I am using vtk-5.6 in Ubuntu 11.10. 

Are there any tips/suggestions to make this work for large meshes? Or is there a way I can divide the mesh into small parts, apply the filter on all the parts and combine them? 


The crash message is as follows:

ERROR: In /build/buildd/vtk-5.6.1/Filtering/vtkPolygon.cxx, line 766
vtkPolygon (0xc0f9d90): ERROR: start >= end

*** glibc detected *** ./WritePly: munmap_chunk(): invalid pointer: 0x0d936368 ***
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x6ebc2)[0xa59bc2]
/lib/i386-linux-gnu/libc.so.6(+0x6ee08)[0xa59e08]
/usr/lib/libvtkCommon.so.5.6(_ZN20vtkDataArrayTemplateIdE11DeleteArrayEv+0x5d)[0x6fbc5d]
/usr/lib/libvtkCommon.so.5.6(_ZN20vtkDataArrayTemplateIdED1Ev+0x31)[0x6fe441]
/usr/lib/libvtkCommon.so.5.6(_ZN14vtkDoubleArrayD2Ev+0x26)[0x6fad96]
/usr/lib/libvtkCommon.so.5.6(_ZN14vtkDoubleArrayD0Ev+0x22)[0x6fadc2]
/usr/lib/libvtkCommon.so.5.6(_ZN13vtkObjectBase18UnRegisterInternalEPS_i+0x88)[0x77f068]
/usr/lib/libvtkCommon.so.5.6(_ZN9vtkObject18UnRegisterInternalEP13vtkObjectBasei+0x5a)[0x77e3aa]
/usr/lib/libvtkCommon.so.5.6(_ZN13vtkObjectBase10UnRegisterEPS_+0x1f)[0x77ee2f]
/usr/lib/libvtkCommon.so.5.6(_ZN13vtkObjectBase6DeleteEv+0x17)[0x77eda7]
/usr/lib/libvtkFiltering.so.5.6(_ZN10vtkPolygonD1Ev+0x4b)[0x4aadeb]
/usr/lib/libvtkFiltering.so.5.6(_ZN10vtkPolygonD0Ev+0x22)[0x4aae42]
/usr/lib/libvtkCommon.so.5.6(_ZN13vtkObjectBase18UnRegisterInternalEPS_i+0x88)[0x77f068]
/usr/lib/libvtkCommon.so.5.6(_ZN9vtkObject18UnRegisterInternalEP13vtkObjectBasei+0x5a)[0x77e3aa]
/usr/lib/libvtkCommon.so.5.6(_ZN13vtkObjectBase10UnRegisterEPS_+0x1f)[0x77ee2f]
/usr/lib/libvtkCommon.so.5.6(_ZN13vtkObjectBase6DeleteEv+0x17)[0x77eda7]
/usr/lib/libvtkFiltering.so.5.6(_ZN10vtkPolygon24NonDegenerateTriangulateEP9vtkIdList+0x523)[0x4aefe3]
/usr/lib/libvtkGraphics.so.5.6(_ZN18vtkFillHolesFilter11RequestDataEP14vtkInformationPP20vtkInformationVectorS3_+0xb1e)[0x11a2cee]
/usr/lib/libvtkFiltering.so.5.6(_ZN20vtkPolyDataAlgorithm14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0xd3)[0x4a4323]
/usr/lib/libvtkFiltering.so.5.6(_ZN12vtkExecutive13CallAlgorithmEP14vtkInformationiPP20vtkInformationVectorS3_+0x73)[0x3d4d73]
/usr/lib/libvtkFiltering.so.5.6(_ZN23vtkDemandDrivenPipeline11ExecuteDataEP14vtkInformationPP20vtkInformationVectorS3_+0x56)[0x3c8456]
/usr/lib/libvtkFiltering.so.5.6(_ZN23vtkDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x16f)[0x3cbabf]
/usr/lib/libvtkFiltering.so.5.6(_ZN32vtkStreamingDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0xae)[0x4e517e]
/usr/lib/libvtkFiltering.so.5.6(_ZN23vtkDemandDrivenPipeline10UpdateDataEi+0x21a)[0x3ca33a]
/usr/lib/libvtkFiltering.so.5.6(_ZN32vtkStreamingDemandDrivenPipeline6UpdateEi+0xa3)[0x4e69e3]
/usr/lib/libvtkFiltering.so.5.6(_ZN12vtkExecutive6UpdateEv+0x56)[0x3d54b6]
/usr/lib/libvtkFiltering.so.5.6(_ZN23vtkDemandDrivenPipeline6UpdateEv+0x1b)[0x3c92db]
/usr/lib/libvtkFiltering.so.5.6(_ZN32vtkStreamingDemandDrivenPipeline6UpdateEv+0x1b)[0x4e227b]
/usr/lib/libvtkFiltering.so.5.6(_ZN12vtkAlgorithm6UpdateEv+0x23)[0x36d003]
./WritePly[0x80490fd]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xa04113]
./WritePly[0x80495a1]


Thanks in advance,
Chytu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111116/d85a1078/attachment.htm>


More information about the vtkusers mailing list