vtk Unstructured Grid

Hi everyone, I’m trying to upload an unstructured grid vtk file into Paraview to visualize a Voronoi tessellation, but it crashes and the following error appears:

Loguru caught a signal: SIGSEGV
Stack trace:
78            0x407b2a /opt/ParaView-5.9.1/bin/paraview-real() [0x407b2a]
77      0x7f8e99cdc840 __libc_start_main + 240
76            0x40778a /opt/ParaView-5.9.1/bin/paraview-real() [0x40778a]
75      0x7f8e9717a120 QCoreApplication::exec() + 128
74      0x7f8e9717162a QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 298
73      0x7f8e609bae13 /opt/ParaView-5.9.1/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x5ee13) [0x7f8e609bae13]
72      0x7f8e977fab9b QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 187
71      0x7f8e9781f5f5 QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) + 261
70      0x7f8e9781e36d QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 1837
69      0x7f8e97172dd8 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 280
68      0x7f8e99132260 QApplication::notify(QObject*, QEvent*) + 704
67      0x7f8e9912b18c QApplicationPrivate::notify_helper(QObject*, QEvent*) + 156
66      0x7f8e991858fb /opt/ParaView-5.9.1/bin/../lib/libQt5Widgets.so.5(+0x1b68fb) [0x7f8e991858fb]
65      0x7f8e99182d86 /opt/ParaView-5.9.1/bin/../lib/libQt5Widgets.so.5(+0x1b3d86) [0x7f8e99182d86]
64      0x7f8e991317cc QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) + 460
63      0x7f8e97172dd8 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 280
62      0x7f8e99132dc8 QApplication::notify(QObject*, QEvent*) + 3624
61      0x7f8e9912b18c QApplicationPrivate::notify_helper(QObject*, QEvent*) + 156
60      0x7f8e99168c28 QWidget::event(QEvent*) + 424
59      0x7f8e9920e945 QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 213
58      0x7f8e9920e77a /opt/ParaView-5.9.1/bin/../lib/libQt5Widgets.so.5(+0x23f77a) [0x7f8e9920e77a]
57      0x7f8e9920d45a /opt/ParaView-5.9.1/bin/../lib/libQt5Widgets.so.5(+0x23e45a) [0x7f8e9920d45a]
56      0x7f8e9920d272 QAbstractButton::clicked(bool) + 50
55      0x7f8e971a11ea QMetaObject::activate(QObject*, int, int, void**) + 1850
54      0x7f8e989ef01f pqPropertiesPanel::apply() + 687
53      0x7f8e988a43c2 pqPropertiesPanel::applied(pqProxy*) + 50
52      0x7f8e971a11ea QMetaObject::activate(QObject*, int, int, void**) + 1850
51      0x7f8e998e6c51 pqApplyBehavior::applied(pqPropertiesPanel*, pqProxy*) + 193
50      0x7f8e998e7dce pqApplyBehavior::showData(pqPipelineSource*, pqView*) + 414
49      0x7f8e8c4d53c8 vtkSMParaViewPipelineControllerWithRendering::ShowInPreferredView(vtkSMSourceProxy*, int, vtkSMViewProxy*) + 168
48      0x7f8e8c4d3164 vtkSMParaViewPipelineControllerWithRendering::UpdatePipelineBeforeDisplay(vtkSMSourceProxy*, int, vtkSMViewProxy*) + 212
47      0x7f8e96577dcc vtkSMSourceProxy::UpdatePipeline(double) + 140
46      0x7f8e964f6e58 vtkSMOutputPort::UpdatePipelineInternal(double, bool) + 184
45      0x7f8e964452e5 vtkPVSessionBase::ExecuteStream(unsigned int, vtkClientServerStream const&, bool) + 53
44      0x7f8e964462bb vtkPVSessionCore::ExecuteStream(unsigned int, vtkClientServerStream const&, bool) + 59
43      0x7f8e96446482 vtkPVSessionCore::ExecuteStreamInternal(vtkClientServerStream const&, bool) + 242
42      0x7f8e952f9ddd vtkClientServerInterpreter::ProcessStream(vtkClientServerStream const&) + 29
41      0x7f8e952f9b3e vtkClientServerInterpreter::ProcessOneMessage(vtkClientServerStream const&, int) + 1294
40      0x7f8e952f940d vtkClientServerInterpreter::ProcessCommandInvoke(vtkClientServerStream const&, int) + 1229
39      0x7f8e952f8da9 vtkClientServerInterpreter::CallCommandFunction(char const*, vtkObjectBase*, char const*, vtkClientServerStream const&, vtkClientServerStream&) + 345
38      0x7f8e8d36bf9e vtkSIMetaReaderProxyCommand(vtkClientServerInterpreter*, vtkObjectBase*, char const*, vtkClientServerStream const&, vtkClientServerStream&, void*) + 446
37      0x7f8e952f8da9 vtkClientServerInterpreter::CallCommandFunction(char const*, vtkObjectBase*, char const*, vtkClientServerStream const&, vtkClientServerStream&) + 345
36      0x7f8e8d371aab vtkSISourceProxyCommand(vtkClientServerInterpreter*, vtkObjectBase*, char const*, vtkClientServerStream const&, vtkClientServerStream&, void*) + 971
35      0x7f8e96482494 vtkSISourceProxy::UpdatePipeline(int, double, bool) + 468
34      0x7f8e9205fc1a vtkStreamingDemandDrivenPipeline::Update(int, vtkInformationVector*) + 282
33      0x7f8e9201ffa6 vtkDemandDrivenPipeline::UpdateData(int) + 134
32      0x7f8e9205e859 vtkStreamingDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 953
31      0x7f8e92020f8e vtkDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 222
30      0x7f8e9201a6c1 vtkCompositeDataPipeline::ForwardUpstream(vtkInformation*) + 337
29      0x7f8e9205e859 vtkStreamingDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 953
28      0x7f8e92020fe6 vtkDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 310
27      0x7f8e9201b7d1 vtkCompositeDataPipeline::ExecuteData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 113
26      0x7f8e9201e967 vtkDemandDrivenPipeline::ExecuteData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 55
25      0x7f8e9202473e vtkExecutive::CallAlgorithm(vtkInformation*, int, vtkInformationVector**, vtkInformationVector*) + 62
24      0x7f8e8c83c33d vtkFileSeriesReader::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 301
23      0x7f8e8c83c0f5 vtkFileSeriesReader::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 181
22      0x7f8e79216864 vtkPDataSetReader::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 932
21      0x7f8e9205fc1a vtkStreamingDemandDrivenPipeline::Update(int, vtkInformationVector*) + 282
20      0x7f8e9201ffa6 vtkDemandDrivenPipeline::UpdateData(int) + 134
19      0x7f8e9205e859 vtkStreamingDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 953
18      0x7f8e92020fe6 vtkDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 310
17      0x7f8e9201e967 vtkDemandDrivenPipeline::ExecuteData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 55
16      0x7f8e920370a7 vtkReaderExecutive::CallAlgorithm(vtkInformation*, int, vtkInformationVector**, vtkInformationVector*) + 839
15      0x7f8e89d5f685 vtkDataReader::ReadMesh(int, int, int, int, vtkDataObject*) + 85
14      0x7f8e92039dcb vtkSimpleReader::ReadMesh(int, int, int, int, vtkDataObject*) + 91
13      0x7f8e89d721b8 vtkDataSetReader::ReadMeshSimple(std::string const&, vtkDataObject*) + 12376
12      0x7f8e9205fc1a vtkStreamingDemandDrivenPipeline::Update(int, vtkInformationVector*) + 282
11      0x7f8e9201ffa6 vtkDemandDrivenPipeline::UpdateData(int) + 134
10      0x7f8e9205e859 vtkStreamingDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 953
9       0x7f8e92020fe6 vtkDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 310
8       0x7f8e9201e967 vtkDemandDrivenPipeline::ExecuteData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 55
7       0x7f8e920370a7 vtkReaderExecutive::CallAlgorithm(vtkInformation*, int, vtkInformationVector**, vtkInformationVector*) + 839
6       0x7f8e89d5f685 vtkDataReader::ReadMesh(int, int, int, int, vtkDataObject*) + 85
5       0x7f8e92039dcb vtkSimpleReader::ReadMesh(int, int, int, int, vtkDataObject*) + 91
4       0x7f8e89dad9b8 vtkUnstructuredGridReader::ReadMeshSimple(std::string const&, vtkDataObject*) + 3528
3       0x7f8e91cd1bca vtkUnstructuredGrid::SetCells(int*, vtkCellArray*) + 506
2       0x7f8e91cd17d6 vtkUnstructuredGrid::SetCells(vtkUnsignedCharArray*, vtkCellArray*) + 1126
1       0x7f8e91ccdfd0 vtkUnstructuredGrid::DecomposeAPolyhedronCell(long long, long long const*, long long&, vtkCellArray*, vtkIdTypeArray*) + 176
0       0x7f8e99cf14c0 /lib/x86_64-linux-gnu/libc.so.6(+0x354c0) [0x7f8e99cf14c0]
(   8.902s) [paraview        ]                       :0     FATL| Signal: SIGSEGV
error: exception occurred: Segmentation fault

Can anyone help me out with this? I already achieved the correct visualization of the tessellation by using a POLYDATA vtk file, but I need to attach field data to the Voronoi cells, so I need an unstructured grid file for this. I checked the format and data consistency, and everything appears fine to me. You can find the file in the following link:

Hi @Dario ,

Thanks for reporting but it seems that you shared a private link.

Not sure about that point. UnstructuredGrid only adds 3D cells support in comparison to PolyData. Can you detail what is not possible with polydata ?

Please try the following link, unfortunately, the file is too big to share it directly.
https://www.dropbox.com/scl/fi/g3hl2qfjxvxbjd1871w6m/voronoi_tessellation.zip?rlkey=etvovffijrss0jk69jj2l6dbl&st=dypcdses&dl=0

I need UnstructeredGrid because I have point data defined for each Voronoi cell that I need to visualize in Paraview, so if I used Polydata there would be a mismatch between the number of point data and polygons of the Voronoi cells.

Im unable to reproduce the segfault using ParaView 5.13.1 linux binary release.

Hi Mathieu, thanks for the answer. What does that mean practically? Is it the same error as mine?

It means that you should try with ParaView 5.13.1 and see if you still reproduce the issue.