Loguru caught a signal: SIGSEGV

Hey all,

I’m running Paraview version 5.10.1 on Ubuntu and I’m trying to compile a Python script that crashes at the command line trying to compile paraview.simple.TableToPoints with:

Loguru caught a signal: SIGSEGV
Stack trace:
38            0x401f7f /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/pvpython-real() [0x401f7f]
37      0x7fe1e9cdee40 __libc_start_main + 128
36      0x7fe1e9cded90 /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7fe1e9cded90]
35            0x4027be /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/pvpython-real() [0x4027be]
34      0x7fe1e6e08db4 vtkPythonInterpreter::PyMain(int, char**) + 532
33      0x7fe1e2e2e053 Py_Main + 67
32      0x7fe1e2e2dbf0 Py_RunMain + 1936
31      0x7fe1e2e09948 PyRun_SimpleFileExFlags + 376
30      0x7fe1e2e07a25 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0x207a25) [0x7fe1e2e07a25]
29      0x7fe1e2dc331b PyEval_EvalCode + 27
28      0x7fe1e2dc32ee PyEval_EvalCodeEx + 62
27      0x7fe1e2dc32a2 _PyEval_EvalCodeWithName + 82
26      0x7fe1e2dc2f09 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0x1c2f09) [0x7fe1e2dc2f09]
25      0x7fe1e2c6ddcb _PyEval_EvalFrameDefault + 22283
24      0x7fe1e2c67187 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0x67187) [0x7fe1e2c67187]
23      0x7fe1e2c6dd2d _PyEval_EvalFrameDefault + 22125
22      0x7fe1e2cbd2d1 _PyFunction_Vectorcall + 177
21      0x7fe1e2dc2f09 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0x1c2f09) [0x7fe1e2dc2f09]
20      0x7fe1e2c6e750 _PyEval_EvalFrameDefault + 24720
19      0x7fe1e2c682a7 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0x682a7) [0x7fe1e2c682a7]
18      0x7fe1e2cc0be3 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0xc0be3) [0x7fe1e2cc0be3]
17      0x7fe1e2c67187 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0x67187) [0x7fe1e2c67187]
16      0x7fe1e2c6e750 _PyEval_EvalFrameDefault + 24720
15      0x7fe1e2c682a7 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0x682a7) [0x7fe1e2c682a7]
14      0x7fe1e2cc0be3 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0xc0be3) [0x7fe1e2cc0be3]
13      0x7fe1e2c67187 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0x67187) [0x7fe1e2c67187]
12      0x7fe1e2c6e750 _PyEval_EvalFrameDefault + 24720
11      0x7fe1e2c6830b /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0x6830b) [0x7fe1e2c6830b]
10      0x7fe1e2cbd4ee _PyObject_MakeTpCall + 158
9       0x7fe1e2d1850b /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0x11850b) [0x7fe1e2d1850b]
8       0x7fe1954b15a1 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/lib/python3.9/site-packages/paraview/modules/vtkRemotingServerManager.so(+0xb15a1) [0x7fe1954b15a1]
7       0x7fe1e7d4a84b vtkSMInputProperty::AddInputConnection(vtkSMProxy*, unsigned int) + 427
6       0x7fe1e25b68f9 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libvtkCommonCore-pv5.10.so.1(+0x5b68f9) [0x7fe1e25b68f9]
5       0x7fe1e7d8ce2b vtkObject::vtkClassMemberCallback<vtkSMProperty>::operator()(vtkObject*, unsigned long, void*) + 59
4       0x7fe1e7d87323 vtkSMProperty::UpdateDomains() + 67
3       0x7fe1e7d08369 vtkSMArrayListDomain::Update(vtkSMProperty*) + 217
2       0x7fe1e7d0791d /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libvtkRemotingServerManager-pv5.10.so.1(+0x10791d) [0x7fe1e7d0791d]
1       0x7fe1e9e5297d /lib/x86_64-linux-gnu/libc.so.6(+0x19d97d) [0x7fe1e9e5297d]
0       0x7fe1e9cf7520 /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7fe1e9cf7520]
(   1.877s) [paraview        ]                       :0     FATL| Signal: SIGSEGV
error: exception occurred: Segmentation fault

Process finished with exit code 1

In case I try to run the script directly from the Paraview GUI (mesa) I get

Loguru caught a signal: SIGSEGV
Stack trace:
59            0x40802a /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/paraview-real() [0x40802a]
58      0x7f466b2b5e40 __libc_start_main + 128
57      0x7f466b2b5d90 /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7f466b2b5d90]
56            0x407c8a /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/paraview-real() [0x407c8a]
55      0x7f4667a84120 QCoreApplication::exec() + 128
54      0x7f4667a7b62a QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 298
53      0x7f460c25ee13 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x5ee13) [0x7f460c25ee13]
52      0x7f46682ee0db QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 187
51      0x7f4668312b35 QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) + 261
50      0x7f46683118ad QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 1837
49      0x7f4667a7cdd8 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 280
48      0x7f466a363260 QApplication::notify(QObject*, QEvent*) + 704
47      0x7f466a35c18c QApplicationPrivate::notify_helper(QObject*, QEvent*) + 156
46      0x7f466a3b68fb /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libQt5Widgets.so.5(+0x1b68fb) [0x7f466a3b68fb]
45      0x7f466a3b3d86 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libQt5Widgets.so.5(+0x1b3d86) [0x7f466a3b3d86]
44      0x7f466a3627cc QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) + 460
43      0x7f4667a7cdd8 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 280
42      0x7f466a363dc8 QApplication::notify(QObject*, QEvent*) + 3624
41      0x7f466a35c18c QApplicationPrivate::notify_helper(QObject*, QEvent*) + 156
40      0x7f466a399c28 QWidget::event(QEvent*) + 424
39      0x7f466a43f945 QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 213
38      0x7f466a43f77a /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libQt5Widgets.so.5(+0x23f77a) [0x7f466a43f77a]
37      0x7f466a43e45a /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libQt5Widgets.so.5(+0x23e45a) [0x7f466a43e45a]
36      0x7f466a43e272 QAbstractButton::clicked(bool) + 50
35      0x7f4667aab1ea QMetaObject::activate(QObject*, int, int, void**) + 1850
34      0x7f466943468f pqPythonShell::runScript() + 1695
33      0x7f4669432a9a pqPythonShell::executeScript(QString const&) + 506
32      0x7f4664a0671e vtkPythonInteractiveInterpreter::RunStringWithConsoleLocals(char const*) + 46
31      0x7f465c808bcc PyRun_StringFlags + 332
30      0x7f465c7c331b PyEval_EvalCode + 27
29      0x7f465c7c32ee PyEval_EvalCodeEx + 62
28      0x7f465c7c32a2 _PyEval_EvalCodeWithName + 82
27      0x7f465c7c2f09 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0x1c2f09) [0x7f465c7c2f09]
26      0x7f465c66e750 _PyEval_EvalFrameDefault + 24720
25      0x7f465c6682a7 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0x682a7) [0x7f465c6682a7]
24      0x7f465c667187 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0x67187) [0x7f465c667187]
23      0x7f465c66dd2d _PyEval_EvalFrameDefault + 22125
22      0x7f465c6bd2d1 _PyFunction_Vectorcall + 177
21      0x7f465c7c2f09 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0x1c2f09) [0x7f465c7c2f09]
20      0x7f465c66e750 _PyEval_EvalFrameDefault + 24720
19      0x7f465c6682a7 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0x682a7) [0x7f465c6682a7]
18      0x7f465c6c0be3 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0xc0be3) [0x7f465c6c0be3]
17      0x7f465c667187 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0x67187) [0x7f465c667187]
16      0x7f465c66e750 _PyEval_EvalFrameDefault + 24720
15      0x7f465c6682a7 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0x682a7) [0x7f465c6682a7]
14      0x7f465c6c0be3 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0xc0be3) [0x7f465c6c0be3]
13      0x7f465c667187 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0x67187) [0x7f465c667187]
12      0x7f465c66e750 _PyEval_EvalFrameDefault + 24720
11      0x7f465c66830b /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0x6830b) [0x7f465c66830b]
10      0x7f465c6bd4ee _PyObject_MakeTpCall + 158
9       0x7f465c71850b /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libpython3.9.so.1.0(+0x11850b) [0x7f465c71850b]
8       0x7f45502b15a1 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/lib/python3.9/site-packages/paraview/modules/vtkRemotingServerManager.so(+0xb15a1) [0x7f45502b15a1]
7       0x7f466634a84b vtkSMInputProperty::AddInputConnection(vtkSMProxy*, unsigned int) + 427
6       0x7f465bfb68f9 /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libvtkCommonCore-pv5.10.so.1(+0x5b68f9) [0x7f465bfb68f9]
5       0x7f466638ce2b vtkObject::vtkClassMemberCallback<vtkSMProperty>::operator()(vtkObject*, unsigned long, void*) + 59
4       0x7f4666387323 vtkSMProperty::UpdateDomains() + 67
3       0x7f4666308369 vtkSMArrayListDomain::Update(vtkSMProperty*) + 217
2       0x7f466630791d /home/philipp/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/bin/../lib/libvtkRemotingServerManager-pv5.10.so.1(+0x10791d) [0x7f466630791d]
1       0x7f466b42997d /lib/x86_64-linux-gnu/libc.so.6(+0x19d97d) [0x7f466b42997d]
0       0x7f466b2ce520 /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f466b2ce520]
( 163.489s) [paraview        ]                       :0     FATL| Signal: SIGSEGV

Can anyone help me?

Can you provide the Python script? It looks like it’s using some domain that isn’t supported in some way. While we shouldn’t crash, being able to reproduce locally would help a lot (as there’s a lot going on in that vtkSMArrayListDomain::Update function to figure it out by staring at it. If it’s got stuff you can’t share, trimming it down to just any domain stuff to start would help.

Thanks for your quick reply Ben. I have shortened the script to a minimal example. As soon as it attempts to execute the TableToPoints command in line 10 the script crashes with the above error message. I can also upload the whole script if necessary.
domaintest.tar.gz (3.5 KB)

Cc: @mwestphal

I dont see anything wrong in the script. Please share the OpenFOAM data your are using.

Sorry I was not allowed to share the data.
After I reinstalled paraview, python and pycharm and switched back to older versions, no more errors appear.