Offscreen rendering using OSPray in Docker Container

Hello, I am quite new to paraview. I’m trying to automate a render through OSPray Pathtracer using a python script in a Docker container.

The script works by running it with ./pvbatch monscrypt.py while browsing the container. However, when I run ./pvbatch monscrypt.py in a script set as the container’s entrypoint I get these error messages.

    double free or corruption (out)
nabla-core-cfdshaper-simulation    | 
nabla-core-cfdshaper-simulation    | Loguru caught a signal: SIGABRT
nabla-core-cfdshaper-simulation    | Stack trace:
nabla-core-cfdshaper-simulation    | [truncated]
nabla-core-cfdshaper-simulation    | 123     0x7f445c5e9d6f /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x6bd6f) [0x7f445c5e9d6f]
nabla-core-cfdshaper-simulation    | 122     0x7f445c5f0f4d _PyEval_EvalFrameDefault + 24509
nabla-core-cfdshaper-simulation    | 121     0x7f445c5e9d6f /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x6bd6f) [0x7f445c5e9d6f]
nabla-core-cfdshaper-simulation    | 120     0x7f445c5f0f4d _PyEval_EvalFrameDefault + 24509
nabla-core-cfdshaper-simulation    | 119     0x7f445c5e9d6f /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x6bd6f) [0x7f445c5e9d6f]
nabla-core-cfdshaper-simulation    | 118     0x7f445c5f0bf2 _PyEval_EvalFrameDefault + 23650
nabla-core-cfdshaper-simulation    | 117     0x7f445c5e9d6f /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x6bd6f) [0x7f445c5e9d6f]
nabla-core-cfdshaper-simulation    | 116     0x7f445c5f1e04 _PyEval_EvalFrameDefault + 28276
nabla-core-cfdshaper-simulation    | 115     0x7f445c61cc22 _PyFunction_Vectorcall + 146
nabla-core-cfdshaper-simulation    | 114     0x7f445c71c6a7 _PyEval_EvalCodeWithName + 2919
nabla-core-cfdshaper-simulation    | 113     0x7f445c5f29c2 _PyEval_EvalFrameDefault + 31282
nabla-core-cfdshaper-simulation    | 112     0x7f445c61f40c PyVectorcall_Call + 92
nabla-core-cfdshaper-simulation    | 111     0x7f445c676aa8 /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0xf8aa8) [0x7f445c676aa8]
nabla-core-cfdshaper-simulation    | 110     0x7f445c718fd1 /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x19afd1) [0x7f445c718fd1]
nabla-core-cfdshaper-simulation    | 109     0x7f445c71c78b PyEval_EvalCode + 27
nabla-core-cfdshaper-simulation    | 108     0x7f445c71c75e PyEval_EvalCodeEx + 62
nabla-core-cfdshaper-simulation    | 107     0x7f445c71c6a7 _PyEval_EvalCodeWithName + 2919
nabla-core-cfdshaper-simulation    | 106     0x7f445c5f2edf _PyEval_EvalFrameDefault + 32591
nabla-core-cfdshaper-simulation    | 105     0x7f445c742c2c PyImport_ImportModuleLevelObject + 1356
nabla-core-cfdshaper-simulation    | 104     0x7f445c61d4b5 _PyObject_CallMethodIdObjArgs + 229
nabla-core-cfdshaper-simulation    | 103     0x7f445c61d174 /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x9f174) [0x7f445c61d174]
nabla-core-cfdshaper-simulation    | 102     0x7f445c61cc22 _PyFunction_Vectorcall + 146
nabla-core-cfdshaper-simulation    | 101     0x7f445c71c6a7 _PyEval_EvalCodeWithName + 2919
nabla-core-cfdshaper-simulation    | 100     0x7f445c5f0f4d _PyEval_EvalFrameDefault + 24509
nabla-core-cfdshaper-simulation    | 99      0x7f445c61cc22 _PyFunction_Vectorcall + 146
nabla-core-cfdshaper-simulation    | 98      0x7f445c71c6a7 _PyEval_EvalCodeWithName + 2919
nabla-core-cfdshaper-simulation    | 97      0x7f445c5f29c2 _PyEval_EvalFrameDefault + 31282
nabla-core-cfdshaper-simulation    | 96      0x7f445c61f915 PyCFunction_Call + 245
nabla-core-cfdshaper-simulation    | 95      0x7f445c7174b4 /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x1994b4) [0x7f445c7174b4]
nabla-core-cfdshaper-simulation    | 94      0x7f445c742b21 PyImport_ImportModuleLevelObject + 1089
nabla-core-cfdshaper-simulation    | 93      0x7f445c61d4b5 _PyObject_CallMethodIdObjArgs + 229
nabla-core-cfdshaper-simulation    | 92      0x7f445c61d174 /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x9f174) [0x7f445c61d174]
nabla-core-cfdshaper-simulation    | 91      0x7f445c5e9d6f /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x6bd6f) [0x7f445c5e9d6f]
nabla-core-cfdshaper-simulation    | 90      0x7f445c5f0f4d _PyEval_EvalFrameDefault + 24509
nabla-core-cfdshaper-simulation    | 89      0x7f445c5e9d6f /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x6bd6f) [0x7f445c5e9d6f]
nabla-core-cfdshaper-simulation    | 88      0x7f445c5f0f4d _PyEval_EvalFrameDefault + 24509
nabla-core-cfdshaper-simulation    | 87      0x7f445c5e9d6f /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x6bd6f) [0x7f445c5e9d6f]
nabla-core-cfdshaper-simulation    | 86      0x7f445c5f0f4d _PyEval_EvalFrameDefault + 24509
nabla-core-cfdshaper-simulation    | 85      0x7f445c5e9d6f /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x6bd6f) [0x7f445c5e9d6f]
nabla-core-cfdshaper-simulation    | 84      0x7f445c5f0bf2 _PyEval_EvalFrameDefault + 23650
nabla-core-cfdshaper-simulation    | 83      0x7f445c5e9d6f /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x6bd6f) [0x7f445c5e9d6f]
nabla-core-cfdshaper-simulation    | 82      0x7f445c5f1e04 _PyEval_EvalFrameDefault + 28276
nabla-core-cfdshaper-simulation    | 81      0x7f445c61cc22 _PyFunction_Vectorcall + 146
nabla-core-cfdshaper-simulation    | 80      0x7f445c71c6a7 _PyEval_EvalCodeWithName + 2919
nabla-core-cfdshaper-simulation    | 79      0x7f445c5f29c2 _PyEval_EvalFrameDefault + 31282
nabla-core-cfdshaper-simulation    | 78      0x7f445c61f40c PyVectorcall_Call + 92
nabla-core-cfdshaper-simulation    | 77      0x7f445c676aa8 /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0xf8aa8) [0x7f445c676aa8]
nabla-core-cfdshaper-simulation    | 76      0x7f445c741965 /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x1c3965) [0x7f445c741965]
nabla-core-cfdshaper-simulation    | 75      0x7f445c743d41 _PyImport_LoadDynamicModuleWithSpec + 433
nabla-core-cfdshaper-simulation    | 74      0x7f442764e4d8 real_initvtkRemotingCore + 168
nabla-core-cfdshaper-simulation    | 73      0x7f443b3fdc21 vtkPythonUtil::ImportModule(char const*, _object*) + 81
nabla-core-cfdshaper-simulation    | 72      0x7f445c7436aa PyImport_ImportModule + 26
nabla-core-cfdshaper-simulation    | 71      0x7f445c74350e PyImport_Import + 222
nabla-core-cfdshaper-simulation    | 70      0x7f445c61db42 PyObject_CallFunction + 610
nabla-core-cfdshaper-simulation    | 69      0x7f445c61ce1e _PyObject_MakeTpCall + 158
nabla-core-cfdshaper-simulation    | 68      0x7f445c61f915 PyCFunction_Call + 245
nabla-core-cfdshaper-simulation    | 67      0x7f445c7174b4 /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x1994b4) [0x7f445c7174b4]
nabla-core-cfdshaper-simulation    | 66      0x7f445c742b21 PyImport_ImportModuleLevelObject + 1089
nabla-core-cfdshaper-simulation    | 65      0x7f445c61d4b5 _PyObject_CallMethodIdObjArgs + 229
nabla-core-cfdshaper-simulation    | 64      0x7f445c61d174 /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x9f174) [0x7f445c61d174]
nabla-core-cfdshaper-simulation    | 63      0x7f445c5e9d6f /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x6bd6f) [0x7f445c5e9d6f]
nabla-core-cfdshaper-simulation    | 62      0x7f445c5f0f4d _PyEval_EvalFrameDefault + 24509
nabla-core-cfdshaper-simulation    | 61      0x7f445c5e9d6f /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x6bd6f) [0x7f445c5e9d6f]
nabla-core-cfdshaper-simulation    | 60      0x7f445c5f0f4d _PyEval_EvalFrameDefault + 24509
nabla-core-cfdshaper-simulation    | 59      0x7f445c5e9d6f /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x6bd6f) [0x7f445c5e9d6f]
nabla-core-cfdshaper-simulation    | 58      0x7f445c5f0f4d _PyEval_EvalFrameDefault + 24509
nabla-core-cfdshaper-simulation    | 57      0x7f445c5e9d6f /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x6bd6f) [0x7f445c5e9d6f]
nabla-core-cfdshaper-simulation    | 56      0x7f445c5f0bf2 _PyEval_EvalFrameDefault + 23650
nabla-core-cfdshaper-simulation    | 55      0x7f445c5e9d6f /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x6bd6f) [0x7f445c5e9d6f]
nabla-core-cfdshaper-simulation    | 54      0x7f445c5f1e04 _PyEval_EvalFrameDefault + 28276
nabla-core-cfdshaper-simulation    | 53      0x7f445c61cc22 _PyFunction_Vectorcall + 146
nabla-core-cfdshaper-simulation    | 52      0x7f445c71c6a7 _PyEval_EvalCodeWithName + 2919
nabla-core-cfdshaper-simulation    | 51      0x7f445c5f29c2 _PyEval_EvalFrameDefault + 31282
nabla-core-cfdshaper-simulation    | 50      0x7f445c61f40c PyVectorcall_Call + 92
nabla-core-cfdshaper-simulation    | 49      0x7f445c676aa8 /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0xf8aa8) [0x7f445c676aa8]
nabla-core-cfdshaper-simulation    | 48      0x7f445c741965 /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x1c3965) [0x7f445c741965]
nabla-core-cfdshaper-simulation    | 47      0x7f445c743d41 _PyImport_LoadDynamicModuleWithSpec + 433
nabla-core-cfdshaper-simulation    | 46      0x7f4425e0611b real_initvtkPVVTKExtensionsCore + 155
nabla-core-cfdshaper-simulation    | 45      0x7f443b3fdc21 vtkPythonUtil::ImportModule(char const*, _object*) + 81
nabla-core-cfdshaper-simulation    | 44      0x7f445c7436aa PyImport_ImportModule + 26
nabla-core-cfdshaper-simulation    | 43      0x7f445c74350e PyImport_Import + 222
nabla-core-cfdshaper-simulation    | 42      0x7f445c61db42 PyObject_CallFunction + 610
nabla-core-cfdshaper-simulation    | 41      0x7f445c61ce1e _PyObject_MakeTpCall + 158
nabla-core-cfdshaper-simulation    | 40      0x7f445c61f915 PyCFunction_Call + 245
nabla-core-cfdshaper-simulation    | 39      0x7f445c7174b4 /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x1994b4) [0x7f445c7174b4]
nabla-core-cfdshaper-simulation    | 38      0x7f445c742b21 PyImport_ImportModuleLevelObject + 1089
nabla-core-cfdshaper-simulation    | 37      0x7f445c61d4b5 _PyObject_CallMethodIdObjArgs + 229
nabla-core-cfdshaper-simulation    | 36      0x7f445c61d174 /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x9f174) [0x7f445c61d174]
nabla-core-cfdshaper-simulation    | 35      0x7f445c5e9d6f /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x6bd6f) [0x7f445c5e9d6f]
nabla-core-cfdshaper-simulation    | 34      0x7f445c5f0f4d _PyEval_EvalFrameDefault + 24509
nabla-core-cfdshaper-simulation    | 33      0x7f445c5e9d6f /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x6bd6f) [0x7f445c5e9d6f]
nabla-core-cfdshaper-simulation    | 32      0x7f445c5f0f4d _PyEval_EvalFrameDefault + 24509
nabla-core-cfdshaper-simulation    | 31      0x7f445c5e9d6f /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x6bd6f) [0x7f445c5e9d6f]
nabla-core-cfdshaper-simulation    | 30      0x7f445c5f0f4d _PyEval_EvalFrameDefault + 24509
nabla-core-cfdshaper-simulation    | 29      0x7f445c5e9d6f /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x6bd6f) [0x7f445c5e9d6f]
nabla-core-cfdshaper-simulation    | 28      0x7f445c5f0bf2 _PyEval_EvalFrameDefault + 23650
nabla-core-cfdshaper-simulation    | 27      0x7f445c5e9d6f /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x6bd6f) [0x7f445c5e9d6f]
nabla-core-cfdshaper-simulation    | 26      0x7f445c5f1e04 _PyEval_EvalFrameDefault + 28276
nabla-core-cfdshaper-simulation    | 25      0x7f445c61cc22 _PyFunction_Vectorcall + 146
nabla-core-cfdshaper-simulation    | 24      0x7f445c71c6a7 _PyEval_EvalCodeWithName + 2919
nabla-core-cfdshaper-simulation    | 23      0x7f445c5f29c2 _PyEval_EvalFrameDefault + 31282
nabla-core-cfdshaper-simulation    | 22      0x7f445c61f40c PyVectorcall_Call + 92
nabla-core-cfdshaper-simulation    | 21      0x7f445c676aa8 /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0xf8aa8) [0x7f445c676aa8]
nabla-core-cfdshaper-simulation    | 20      0x7f445c741965 /home/nabla/ParaView-5.9.1-RC1-osmesa-MPI-Linux-Python3.8-64bit/bin/../lib/libpython3.8.so.1.0(+0x1c3965) [0x7f445c741965]
nabla-core-cfdshaper-simulation    | 19      0x7f445c743cfe _PyImport_LoadDynamicModuleWithSpec + 366
nabla-core-cfdshaper-simulation    | 18      0x7f445c781463 _PyImport_FindSharedFuncptr + 355
nabla-core-cfdshaper-simulation    | 17      0x7f445b491051 dlopen + 113
nabla-core-cfdshaper-simulation    | 16      0x7f445b491745 /lib/x86_64-linux-gnu/libdl.so.2(+0x1745) [0x7f445b491745]
nabla-core-cfdshaper-simulation    | 15      0x7f446111227f _dl_catch_error + 47
nabla-core-cfdshaper-simulation    | 14      0x7f44611121ef _dl_catch_exception + 111
nabla-core-cfdshaper-simulation    | 13      0x7f445b490f96 /lib/x86_64-linux-gnu/libdl.so.2(+0xf96) [0x7f445b490f96]
nabla-core-cfdshaper-simulation    | 12      0x7f44613b096a /lib64/ld-linux-x86-64.so.2(+0x1496a) [0x7f44613b096a]
nabla-core-cfdshaper-simulation    | 11      0x7f44611121ef _dl_catch_exception + 111
nabla-core-cfdshaper-simulation    | 10      0x7f44613b139f /lib64/ld-linux-x86-64.so.2(+0x1539f) [0x7f44613b139f]
nabla-core-cfdshaper-simulation    | 9       0x7f44613ac8d3 /lib64/ld-linux-x86-64.so.2(+0x108d3) [0x7f44613ac8d3]
nabla-core-cfdshaper-simulation    | 8       0x7f442518242e /home/nabla/.local/lib/python3.8/site-packages/vtkmodules/libvtkCommonDataModel-9.0.so.1(+0xf142e) [0x7f442518242e]
nabla-core-cfdshaper-simulation    | 7       0x7f445c10851e vtkInformationIntegerKey::vtkInformationIntegerKey(char const*, char const*) + 14
nabla-core-cfdshaper-simulation    | 6       0x7f445c10a4ef vtkInformationKey::vtkInformationKey(char const*, char const*) + 319
nabla-core-cfdshaper-simulation    | 5       0x7f4461042f6a cfree + 1338
nabla-core-cfdshaper-simulation    | 4       0x7f446103b9da /lib/x86_64-linux-gnu/libc.so.6(+0x909da) [0x7f446103b9da]
nabla-core-cfdshaper-simulation    | 3       0x7f4461034967 /lib/x86_64-linux-gnu/libc.so.6(+0x89967) [0x7f4461034967]
nabla-core-cfdshaper-simulation    | 2       0x7f4460feb921 abort + 321
nabla-core-cfdshaper-simulation    | 1       0x7f4460fe9fb7 gsignal + 199
nabla-core-cfdshaper-simulation    | 0       0x7f4460fea040 /lib/x86_64-linux-gnu/libc.so.6(+0x3f040) [0x7f4460fea040]
nabla-core-cfdshaper-simulation    | (   0.166s) [pvbatch         ]                       :0     FATL| Signal: SIGABRT
nabla-core-cfdshaper-simulation    | error: exception occurred: Child aborted
nabla-core-cfdshaper-simulation exited with code 1

Hmm. This does seem problematic. Do you have steps that we can use to reproduce this issue?