I encountered a core dump error when running the sample of the PyServiceMaker pipeline API:
/opt/nvidia/deepstream/deepstream-7.1/service-maker/sources/apps/python/pipeline_api/deepstream_appsrc_test_app# CUDA_VISIBLE_DEVICES=4 python3 deepstream_appsrc_test.py
get error output:
Initializing GStreamer Backend…!
(python3:725270): GStreamer-WARNING **: 07:32:43.936: External plugin loader failed. This most likely means that the plugin loader helper binary was not found or could not be run. You might need to set the GST_PLUGIN_SCANNER environment variable if your setup is unusual. This should normally not be required though.
(python3:725270): GStreamer-WARNING **: 07:32:43.940: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_udp.so’: librivermax.so.1: cannot open shared object file: No such file or directory
(python3:725270): GStreamer-WARNING **: 07:32:43.940: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstchromaprint.so’: libavcodec.so.58: cannot open shared object file: No such file or directory
(python3:725270): GStreamer-WARNING **: 07:32:43.941: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstfluidsynthmidi.so’: libFLAC.so.8: cannot open shared object file: No such file or directory
(python3:725270): GStreamer-WARNING **: 07:32:43.941: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstlame.so’: libmp3lame.so.0: cannot open shared object file: No such file or directory
(python3:725270): GStreamer-WARNING **: 07:32:43.942: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstmpg123.so’: libmpg123.so.0: cannot open shared object file: No such file or directory
(python3:725270): GStreamer-WARNING **: 07:32:43.942: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstmplex.so’: libmjpegutils-2.1.so.0: cannot open shared object file: No such file or directory
(python3:725270): GStreamer-WARNING **: 07:32:43.942: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstopenmpt.so’: libmpg123.so.0: cannot open shared object file: No such file or directory
(python3:725270): GStreamer-WARNING **: 07:32:43.943: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstpulseaudio.so’: libFLAC.so.8: cannot open shared object file: No such file or directory
(python3:725270): GStreamer-WARNING **: 07:32:43.943: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstsndfile.so’: libFLAC.so.8: cannot open shared object file: No such file or directory
pybind11::handle::inc_ref() is being called while the GIL is either not held or invalid. Please see Miscellaneous - pybind11 documentation for debugging advice.
If you are convinced there is no bug in your code, you can define PYBIND11_NO_ASSERT_GIL_HELD_INCREF_DECREF to disable this check. In that case you have to ensure this define is consistently used for all translation units linked into a given pybind11 extension, otherwise there will be ODR violations. The failing pybind11::handle::inc_ref() call was triggered on a NoneType object.
Traceback (most recent call last):
File “/opt/nvidia/deepstream/deepstream-7.1/service-maker/sources/apps/python/pipeline_api/deepstream_appsrc_test_app/deepstream_appsrc_test.py”, line 91, in
main(sys.argv)
File “/opt/nvidia/deepstream/deepstream-7.1/service-maker/sources/apps/python/pipeline_api/deepstream_appsrc_test_app/deepstream_appsrc_test.py”, line 60, in main
p1 = Pipeline(“appsrc-test”)
File “/usr/local/lib/python3.10/dist-packages/pyservicemaker/pipeline.py”, line 27, in init
self._instance = _Pipeline(name, config_file) if config_file else _Pipeline(name)
RuntimeError: pybind11::handle::inc_ref() PyGILState_Check() failure.
pybind11::handle::dec_ref() is being called while the GIL is either not held or invalid. Please see Miscellaneous - pybind11 documentation for debugging advice.
If you are convinced there is no bug in your code, you can define PYBIND11_NO_ASSERT_GIL_HELD_INCREF_DECREF to disable this check. In that case you have to ensure this define is consistently used for all translation units linked into a given pybind11 extension, otherwise there will be ODR violations. The failing pybind11::handle::dec_ref() call was triggered on a str object.
terminate called after throwing an instance of ‘std::runtime_error’
what(): pybind11::handle::dec_ref() PyGILState_Check() failure.
Aborted (core dumped)
• Hardware Platform (A-100)
• DeepStream 7.1
• Container: nvcr.io/nvidia/deepstream:7.1-gc-triton-devel
• NVIDIA GPU Driver Version 560.28.03
• Issue Type: bugs