Seg fault when trying to render image in catalyst
I’m trying to generate an image in Catalyst (this is Catalyst 1.0) in our Pagosa code, which uses Paraview 5.9.1. The Catalyst adaptor in Pagosa has been working well for writing vtm files to disk. But whenever an image tries to be generated, a seg fault occurs. I’ll post the stacktrace of that at the end of the email, but the stacktrace indicates that the seg fault happens somewhere in the osmesa library.
I’m using a really simple catalyst script that just generates an image of a box. It doesn’t even access the simulation data. The script works with Flag, another catalyst-enabled code.
I then tried running a pvpython script that generates an image. When using the same paraview build that Pagosa uses, the pvpython script works. Next I tried using the filedriver_miniapp.py, using the same catalyst script, with the paraview build that Pagosa uses, and that also works in creating an image.
At this point I’m stumped on what to do next. It looks like Pagosa’s Paraview build works and can generate images using osmesa, but a seg fault occurs when using Catalyst. Is there anything else I can do to debug this further? I’m thinking the next step is to comment out everything in the Pagosa Catalyst adaptor except the necessary bits.
@patchett2002 @pkf @cory.quammen @yohann.bearzi
Below is the stacktrace generated from the seg fault:
Loguru caught a signal: SIGFPE
Stack trace:
77 0x40cbf9 /yellow/usr/projects/paraview/boonth/pagosa/gitrepo/build/sap-master/CTS1-intel-openmpi-sgl-no_offload/pagosa/pagosa() [0x40cbf9]
76 0x2aca4b246555 __libc_start_main + 245
75 0x40cce2 /yellow/usr/projects/paraview/boonth/pagosa/gitrepo/build/sap-master/CTS1-intel-openmpi-sgl-no_offload/pagosa/pagosa() [0x40cce2]
74 0x40d336 /yellow/usr/projects/paraview/boonth/pagosa/gitrepo/build/sap-master/CTS1-intel-openmpi-sgl-no_offload/pagosa/pagosa() [0x40d336]
73 0x40f813 /yellow/usr/projects/paraview/boonth/pagosa/gitrepo/build/sap-master/CTS1-intel-openmpi-sgl-no_offload/pagosa/pagosa() [0x40f813]
72 0x82beb3 /yellow/usr/projects/paraview/boonth/pagosa/gitrepo/build/sap-master/CTS1-intel-openmpi-sgl-no_offload/pagosa/pagosa() [0x82beb3]
71 0x8a9c5c /yellow/usr/projects/paraview/boonth/pagosa/gitrepo/build/sap-master/CTS1-intel-openmpi-sgl-no_offload/pagosa/pagosa() [0x8a9c5c]
70 0x8ff94e /yellow/usr/projects/paraview/boonth/pagosa/gitrepo/build/sap-master/CTS1-intel-openmpi-sgl-no_offload/pagosa/pagosa() [0x8ff94e]
69 0x2aca46c83152 vtkCPAdaptorAPI::CoProcess() + 146
68 0x2aca46c8b720 vtkCPProcessor::CoProcess(vtkCPDataDescription*) + 1360
67 0x2aca46c725ae vtkCPPythonScriptPipeline::CoProcess(vtkCPDataDescription*) + 558
66 0x2aca59de0498 vtkPythonInterpreter::RunSimpleString(char const*) + 536
65 0x2aca470a5dc9 PyRun_SimpleStringFlags + 57
64 0x2aca470a5d3f PyRun_StringFlags + 143
63 0x2aca47053f99 PyEval_EvalCode + 41
62 0x2aca4705400b PyEval_EvalCodeEx + 107
61 0x2aca4705497e _PyEval_EvalCodeWithName + 2398
60 0x2aca4714acf5 _PyEval_EvalFrameDefault + 38037
59 0x2aca4714128e /yellow/usr/projects/silverton/spack/spack-env-2022-03-25/CTS1_intel/spack/opt/spack/linux-rhel7-broadwell/intel-19.1.3/python-3.7.7-4xiqwww27olelqm3lweamssyllshwph4/lib/libpython3.7m.so.1.0(+0x29e28e) [0x2aca4714128e]
58 0x2aca46f40ab6 _PyFunction_FastCallKeywords + 774
57 0x2aca471479fa _PyEval_EvalFrameDefault + 24986
56 0x2aca4714128e /yellow/usr/projects/silverton/spack/spack-env-2022-03-25/CTS1_intel/spack/opt/spack/linux-rhel7-broadwell/intel-19.1.3/python-3.7.7-4xiqwww27olelqm3lweamssyllshwph4/lib/libpython3.7m.so.1.0(+0x29e28e) [0x2aca4714128e]
55 0x2aca46f40874 _PyFunction_FastCallKeywords + 196
54 0x2aca4705497e _PyEval_EvalCodeWithName + 2398
53 0x2aca471479fa _PyEval_EvalFrameDefault + 24986
52 0x2aca4714128e /yellow/usr/projects/silverton/spack/spack-env-2022-03-25/CTS1_intel/spack/opt/spack/linux-rhel7-broadwell/intel-19.1.3/python-3.7.7-4xiqwww27olelqm3lweamssyllshwph4/lib/libpython3.7m.so.1.0(+0x29e28e) [0x2aca4714128e]
51 0x2aca46f40874 _PyFunction_FastCallKeywords + 196
50 0x2aca4705497e _PyEval_EvalCodeWithName + 2398
49 0x2aca47147b5c _PyEval_EvalFrameDefault + 25340
48 0x2aca47055f62 /yellow/usr/projects/silverton/spack/spack-env-2022-03-25/CTS1_intel/spack/opt/spack/linux-rhel7-broadwell/intel-19.1.3/python-3.7.7-4xiqwww27olelqm3lweamssyllshwph4/lib/libpython3.7m.so.1.0(+0x1b2f62) [0x2aca47055f62]
47 0x2aca46f4147b _PyFunction_FastCallDict + 459
46 0x2aca4705497e _PyEval_EvalCodeWithName + 2398
45 0x2aca471479fa _PyEval_EvalFrameDefault + 24986
44 0x2aca4714128e /yellow/usr/projects/silverton/spack/spack-env-2022-03-25/CTS1_intel/spack/opt/spack/linux-rhel7-broadwell/intel-19.1.3/python-3.7.7-4xiqwww27olelqm3lweamssyllshwph4/lib/libpython3.7m.so.1.0(+0x29e28e) [0x2aca4714128e]
43 0x2aca46f40874 _PyFunction_FastCallKeywords + 196
42 0x2aca4705497e _PyEval_EvalCodeWithName + 2398
41 0x2aca4714acf5 _PyEval_EvalFrameDefault + 38037
40 0x2aca4714128e /yellow/usr/projects/silverton/spack/spack-env-2022-03-25/CTS1_intel/spack/opt/spack/linux-rhel7-broadwell/intel-19.1.3/python-3.7.7-4xiqwww27olelqm3lweamssyllshwph4/lib/libpython3.7m.so.1.0(+0x29e28e) [0x2aca4714128e]
39 0x2aca46f40874 _PyFunction_FastCallKeywords + 196
38 0x2aca4705497e _PyEval_EvalCodeWithName + 2398
37 0x2aca47147b5c _PyEval_EvalFrameDefault + 25340
36 0x2aca4705607c /yellow/usr/projects/silverton/spack/spack-env-2022-03-25/CTS1_intel/spack/opt/spack/linux-rhel7-broadwell/intel-19.1.3/python-3.7.7-4xiqwww27olelqm3lweamssyllshwph4/lib/libpython3.7m.so.1.0(+0x1b307c) [0x2aca4705607c]
35 0x2aca46f4181e PyCFunction_Call + 142
34 0x2aca93ecabb6 /yellow/usr/projects/silverton/spack/spack-env-2022-03-25/CTS1_intel/spack/opt/spack/linux-rhel7-broadwell/intel-19.1.3/paraview-5.9.1-crgiskfa46kkhbhmmqcj7ja6l42o2lll/lib64/python3.7/site-packages/paraview/modules/vtkRemotingViews.so(+0x18ebb6) [0x2aca93ecabb6]
33 0x2aca50661782 vtkSMSaveScreenshotProxy::WriteImage(char const*, unsigned int) + 1922
32 0x2aca506631c9 vtkSMSaveScreenshotProxy::CapturePreppedImages() + 313
31 0x2aca506664f3 vtkSMSaveScreenshotProxy::vtkStateView::CaptureImage() + 35
30 0x2aca5069bcdc vtkSMViewProxy::CaptureWindow(int, int) + 380
29 0x2aca5069c38d /yellow/usr/projects/silverton/spack/spack-env-2022-03-25/CTS1_intel/spack/opt/spack/linux-rhel7-broadwell/intel-19.1.3/paraview-5.9.1-crgiskfa46kkhbhmmqcj7ja6l42o2lll/lib64/libvtkPVServerManagerKit-pv5.9.so.1(+0x41c38d) [0x2aca5069c38d]
28 0x2aca5069c794 vtkSMViewProxy::CaptureWindowSingle(int, int) + 148
27 0x2aca5069cfd6 vtkSMViewProxy::CaptureWindowInternal(int, int) + 86
26 0x2aca5065ceac vtkSMRenderViewProxy::RenderForImageCapture() + 92
25 0x2aca5069b08e vtkSMViewProxy::StillRender() + 494
24 0x2aca506cc050 vtkPVSessionBase::ExecuteStream(unsigned int, vtkClientServerStream const&, bool) + 48
23 0x2aca506ce345 vtkPVSessionCore::ExecuteStream(unsigned int, vtkClientServerStream const&, bool) + 101
22 0x2aca506d03f7 vtkPVSessionCore::ExecuteStreamInternal(vtkClientServerStream const&, bool) + 167
21 0x2aca5949c529 vtkClientServerInterpreter::ProcessStream(vtkClientServerStream const&) + 41
20 0x2aca59499e25 vtkClientServerInterpreter::ProcessOneMessage(vtkClientServerStream const&, int) + 981
19 0x2aca5949b6df vtkClientServerInterpreter::ProcessCommandInvoke(vtkClientServerStream const&, int) + 303
18 0x2aca5949c8b7 vtkClientServerInterpreter::CallCommandFunction(char const*, vtkObjectBase*, char const*, vtkClientServerStream const&, vtkClientServerStream&) + 855
17 0x2aca4e6bdd56 vtkPVRenderViewCommand(vtkClientServerInterpreter*, vtkObjectBase*, char const*, vtkClientServerStream const&, vtkClientServerStream&, void*) + 37766
16 0x2aca505fb40c vtkPVRenderView::StillRender() + 140
15 0x2aca506020bc vtkPVRenderView::Render(bool, bool) + 2812
14 0x2aca50619b96 /yellow/usr/projects/silverton/spack/spack-env-2022-03-25/CTS1_intel/spack/opt/spack/linux-rhel7-broadwell/intel-19.1.3/paraview-5.9.1-crgiskfa46kkhbhmmqcj7ja6l42o2lll/lib64/libvtkPVServerManagerKit-pv5.9.so.1(+0x399b96) [0x2aca50619b96]
13 0x2aca505f027f vtkPVProcessWindow::PrepareForRendering() + 31
12 0x2aca510a8fa0 vtkOpenGLRenderWindow::Render() + 96
11 0x2aca5afcffd7 vtkRenderWindow::Render() + 183
10 0x2aca510a58ab vtkOpenGLRenderWindow::Start() + 27
9 0x2aca5115a39c vtkOSOpenGLRenderWindow::CreateOffScreenWindow(int, int) + 268
8 0x2aca5caedb49 OSMesaCreateContextAttribs + 665
7 0x2aca5c646eee /yellow/usr/projects/silverton/spack/spack-env-2022-03-25/CTS1_intel/spack/opt/spack/linux-rhel7-broadwell/intel-19.1.3/mesa-18.3.6-icd64sq2wwv4p2kwvwp5nhvtlbia5edb/lib/libOSMesa.so.8(+0x4ddeee) [0x2aca5c646eee]
6 0x2aca5cafba79 /yellow/usr/projects/silverton/spack/spack-env-2022-03-25/CTS1_intel/spack/opt/spack/linux-rhel7-broadwell/intel-19.1.3/mesa-18.3.6-icd64sq2wwv4p2kwvwp5nhvtlbia5edb/lib/libOSMesa.so.8(+0x992a79) [0x2aca5cafba79]
5 0x2aca5c9237fd /yellow/usr/projects/silverton/spack/spack-env-2022-03-25/CTS1_intel/spack/opt/spack/linux-rhel7-broadwell/intel-19.1.3/mesa-18.3.6-icd64sq2wwv4p2kwvwp5nhvtlbia5edb/lib/libOSMesa.so.8(+0x7ba7fd) [0x2aca5c9237fd]
4 0x2aca5c92428f /yellow/usr/projects/silverton/spack/spack-env-2022-03-25/CTS1_intel/spack/opt/spack/linux-rhel7-broadwell/intel-19.1.3/mesa-18.3.6-icd64sq2wwv4p2kwvwp5nhvtlbia5edb/lib/libOSMesa.so.8(+0x7bb28f) [0x2aca5c92428f]
3 0x2aca5c96e933 /yellow/usr/projects/silverton/spack/spack-env-2022-03-25/CTS1_intel/spack/opt/spack/linux-rhel7-broadwell/intel-19.1.3/mesa-18.3.6-icd64sq2wwv4p2kwvwp5nhvtlbia5edb/lib/libOSMesa.so.8(+0x805933) [0x2aca5c96e933]
2 0x2aca5c919665 /yellow/usr/projects/silverton/spack/spack-env-2022-03-25/CTS1_intel/spack/opt/spack/linux-rhel7-broadwell/intel-19.1.3/mesa-18.3.6-icd64sq2wwv4p2kwvwp5nhvtlbia5edb/lib/libOSMesa.so.8(+0x7b0665) [0x2aca5c919665]
1 0x2aca5cb21f7a /yellow/usr/projects/silverton/spack/spack-env-2022-03-25/CTS1_intel/spack/opt/spack/linux-rhel7-broadwell/intel-19.1.3/mesa-18.3.6-icd64sq2wwv4p2kwvwp5nhvtlbia5edb/lib/libOSMesa.so.8(+0x9b8f7a) [0x2aca5cb21f7a]
0 0x2aca5cab4eef /yellow/usr/projects/silverton/spack/spack-env-2022-03-25/CTS1_intel/spack/opt/spack/linux-rhel7-broadwell/intel-19.1.3/mesa-18.3.6-icd64sq2wwv4p2kwvwp5nhvtlbia5edb/lib/libOSMesa.so.8(+0x94beef) [0x2aca5cab4eef]
( 5.908s) [pvbatch ] :0 FATL| Signal: SIGFPE