ParaView-based application unexpectedly use vtk system
While running a ParaView-based application on a system where another VTK is in the path (typically installed system-wide), using PythonCalculator crashes the application.
- SimpleParaView example (Examples/CustomApplications/SimpleParaView)
- edit
client/ParaViewFilters.xml
to add
<Proxy group="filters" name="PythonCalculator" icon=":/pqWidgets/Icons/pqClip.svg"/>
- build against ParaView master
- launch
./simple_paraview -v TRACE
- load a data (tested with disk_out_ref)
- PythonCalculator
- Expression = 42
- Apply
- crash
Uninstalling the VTK-system solves the issue.
log ends with
( 21.473s) [paraview ] pqPropertiesPanel.cxx:138 9| . applying changes to `PythonCalculator1`
( 21.474s) [paraview ] vtkSISourceProxy.cxx:228 9| . { PythonCalculator1: update pipeline(0, 0.000000, true)
( 21.474s) [paraview ]vtkDemandDrivenPipeline:174 9| . . vtkPythonCalculator (0x55b847116fb0) execute-data-object
( 21.474s) [paraview ]vtkDemandDrivenPipeline:174 9| . . vtkPVPostFilter (0x55b8468a14c0) execute-data-object
( 21.474s) [paraview ]vtkDemandDrivenPipeline:222 9| . . vtkPythonCalculator (0x55b847116fb0) execute-information
( 21.474s) [paraview ]vtkDemandDrivenPipeline:222 9| . . vtkPVPostFilter (0x55b8468a14c0) execute-information
( 21.474s) [paraview ]vtkStreamingDemandDrive:164 9| . . vtkPVPostFilter (0x55b8468a14c0) execute-update-time
( 21.474s) [paraview ]vtkStreamingDemandDrive:164 9| . . vtkPythonCalculator (0x55b847116fb0) execute-update-time
( 21.474s) [paraview ]vtkStreamingDemandDrive:206 9| . . vtkPythonCalculator (0x55b847116fb0) execute-time-dependent-information
( 21.474s) [paraview ]vtkStreamingDemandDrive:206 9| . . vtkPVPostFilter (0x55b8468a14c0) execute-time-dependent-information
( 21.474s) [paraview ]vtkStreamingDemandDrive:318 9| . . vtkPVPostFilter (0x55b8468a14c0) execute-update-extent
( 21.474s) [paraview ]vtkStreamingDemandDrive:318 9| . . vtkPythonCalculator (0x55b847116fb0) execute-update-extent
( 21.474s) [paraview ]vtkDemandDrivenPipeline:259 9| . . vtkPythonCalculator (0x55b847116fb0) execute-data
( 21.474s) [paraview ] vtkSISourceProxy.cxx:305 9| . . { PythonCalculator1: execute
( 21.475s) [paraview ]vtkPythonInterpreter.cx:785 9| . . . calling Py_SetProgramName(/usr/lib/vtkpython) to aid in setup of Python prefix.
( 21.484s) [paraview ]vtkPythonInterpreter.cx:150 9| . . . adding module search path /home/nicolas/ParaView/master/build/lib/python3.10/site-packages
( 21.484s) [paraview ]vtkPythonInterpreter.cx:150 9| . . . adding module search path //lib/python3.10/site-packages
Loguru caught a signal: SIGSEGV
Stack trace:
1 0x7f71daab8660 /usr/lib/libvtkCommonCore.so.1(+0xab6660) [0x7f71daab8660]
0 0x7f72021ac560 /usr/lib/libc.so.6(+0x42560) [0x7f72021ac560]
( 21.494s) [paraview ] :0 FATL| Signal: SIGSEGV
Edited by Nicolas Vuaille