Deepstream_test1.py batch_meta gets None

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) H100
• DeepStream Version 7
• TensorRT Version8.6
• NVIDIA GPU Driver Version (valid for GPU only) 550
**• Issue Type( questions, new requirements, bugs)**bugs
**• How to reproduce the issue ? I am running deepstream_test1.py and it keeps crashing
**• Requirement details: So I am running into following error;

Traceback (most recent call last):
File “/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/apps/deepstream-test1/deepstream_test_1.py”, line 50, in osd_sink_pad_buffer_probe
AttributeError: ‘NoneType’ object has no attribute ‘frame_meta_list’
End-of-stream

From what I have figured;

batch_meta = pyds.gst_buffer_get_nvds_batch_meta(hash(gst_buffer))

is returning None which is causing the problem. It seems I am unable to access the gst_buffer properly in the sample app. I have tried digging around but to no avail.

Commenting out the probe results in the test running successfully which suggests this issue is specifically happening when trying to access gst_buffer.

python deepstream_test_1.py sample_720p.h264

Note: I added prints to check GST Buffer and Batch Meta.

Original exception was:
Traceback (most recent call last):
File “/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/apps/deepstream-test1/deepstream_test_1_mod.py”, line 52, in osd_sink_pad_buffer_probe
AttributeError: ‘NoneType’ object has no attribute ‘frame_meta_list’
<Gst.Buffer object at 0x7f621827fe20 (GstBuffer at 0x558814e35d80)> <<- GST Buffer
(python:8487): GStreamer-CRITICAL **: 21:10:51.028: gst_meta_api_type_has_tag: assertion ‘tag != 0’ failed
None <<- Batch Meta

P.S. I am able to run the sample if I comment out the probe part
‘osdsinkpad.add_probe(Gst.PadProbeType.BUFFER, osd_sink_pad_buffer_probe, 0)’
which is a strong indicator of this being a python binding issue of sorts.

This is indeed caused by the pyds binding not being installed correctly. Follow the steps in this documetation.

If you use Docker, there is a shortcuts for it.

/opt/nvidia/deepstream/deepstream/user_deepstream_python_apps_install.sh --build-bindings -r master

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.