How we can run deepstream-3d-action-recognition using Python?

• Hardware Platform (GPU): Tesla T4
• DeepStream Version: 6.2
• TensorRT Version: 8.5.2.2-1+cuda11.8
• NVIDIA GPU Driver Version: 515.65.01
• Issue Type (Questions)

Hello,

I have successfully converted DS 6.2 sample application deepstream-3d-action-recognition example into python. While executing this pipeline we are getting bellow mention issue.

Here is the converted code for your reference.


import faulthandler
faulthandler.enable()
import sys, math
sys.path.append("/opt/nvidia/deepstream/deepstream/lib")

import gi
gi.require_version('Gst', '1.0')
gi.require_version('GstRtspServer', '1.0')
from gi.repository import Gst, GLib
from common.bus_call import bus_call
import pyds

MAX_TIME_STAMP_LEN = 32

# Callback function for deep-copying an NvDsEventMsgMeta struct
def meta_copy_func(data, user_data):

    user_meta = pyds.NvDsUserMeta.cast(data)
    src_meta_data = user_meta.user_meta_data
    srcmeta = pyds.NvDsEventMsgMeta.cast(src_meta_data)
    dstmeta_ptr = pyds.memdup(pyds.get_ptr(srcmeta),
                              sys.getsizeof(pyds.NvDsEventMsgMeta))
    dstmeta = pyds.NvDsEventMsgMeta.cast(dstmeta_ptr)

    dstmeta.ts = pyds.memdup(srcmeta.ts, MAX_TIME_STAMP_LEN + 1)

    dstmeta.sensorStr = pyds.get_string(srcmeta.sensorStr)

    if srcmeta.objSignature.size > 0:
        dstmeta.objSignature.signature = pyds.memdup(
            srcmeta.objSignature.signature, srcmeta.objSignature.size)
        dstmeta.objSignature.size = srcmeta.objSignature.size

    if srcmeta.extMsgSize > 0:
        if srcmeta.objType == pyds.NvDsObjectType.NVDS_OBJECT_TYPE_TYCO_COLOR_MESSAGE:
            srcobj = pyds.NvDsTycoMessageObject.cast(srcmeta.extMsg)
            obj = pyds.alloc_nvds_tyco_message_object()
            obj.camera_id = srcobj.camera_id
            obj.message_type = srcobj.message_type
            obj.host_name = srcobj.host_name
            obj.current_UTC_datetime = srcobj.current_UTC_datetime
            obj.time_zone = srcobj.time_zone

            dstmeta.extMsg = obj
            dstmeta.extMsgSize = sys.getsizeof(pyds.NvDsTycoMessageObject)

    return dstmeta


# Callback function for freeing an NvDsEventMsgMeta instance
def meta_free_func(data, user_data):
    user_meta = pyds.NvDsUserMeta.cast(data)
    srcmeta = pyds.NvDsEventMsgMeta.cast(user_meta.user_meta_data)

    # pyds.free_buffer takes C address of a buffer and frees the memory
    # It's a NOP if the address is NULL
    if srcmeta.ts:
        pyds.free_buffer(srcmeta.ts)
    if srcmeta.sensorStr:
        pyds.free_buffer(srcmeta.sensorStr)

    if srcmeta.objSignature.size > 0:
        pyds.free_buffer(srcmeta.objSignature.signature)
        srcmeta.objSignature.size = 0

    if srcmeta.extMsgSize > 0:
        if srcmeta.objType == pyds.NvDsObjectType.NVDS_OBJECT_TYPE_TYCO_COLOR_MESSAGE:
            obj = pyds.NvDsTycoMessageObject.cast(srcmeta.extMsg)

            pyds.free_buffer(obj.camera_id)

            pyds.free_buffer(obj.message_type)

            pyds.free_buffer(obj.host_name)

            pyds.free_buffer(obj.current_UTC_datetime)

            pyds.free_buffer(obj.time_zone)
        pyds.free_gbuffer(srcmeta.extMsg)
        srcmeta.extMsgSize = 0

def cb_newpad(decodebin, decoder_src_pad, data):
    print("In cb_newpad\n")
    caps = decoder_src_pad.get_current_caps()
    gststruct = caps.get_structure(0)
    gstname = gststruct.get_name()
    source_bin = data
    features = caps.get_features(0)

    # Need to check if the pad created by the decodebin is for video and not
    # audio.
    if (gstname.find("video") != -1):
        # Link the decodebin pad only if decodebin has picked nvidia
        # decoder plugin nvdec_*. We do this by checking if the pad caps contain
        # NVMM memory features.
        if features.contains("memory:NVMM"):
            # Get the source bin ghost pad
            bin_ghost_pad = source_bin.get_static_pad("src")
            if not bin_ghost_pad.set_target(decoder_src_pad):
                sys.stderr.write("Failed to link decoder src pad to source bin ghost pad\n")
        else:
            sys.stderr.write(" Error: Decodebin did not pick nvidia decoder plugin.\n")

def decodebin_child_added(child_proxy,Object,name,user_data):
    print("Decodebin child added:", name, "\n")
    if(name.find("decodebin") != -1):
        Object.connect("child-added",decodebin_child_added,user_data)

    if "source" in name:
        source_element = child_proxy.get_by_name("source")
        if source_element.find_property('drop-on-latency') != None:
            Object.set_property("drop-on-latency", True)

def create_source_bin(index,uri):
    print("Creating source bin")

    bin_name = f"source-bin-{index}"

    print(bin_name)
    nbin=Gst.Bin.new(bin_name)
    if not nbin:
        raise " Unable to create source bin"

    uri_decode_bin=Gst.ElementFactory.make("uridecodebin", "uri-decode-bin")
    if not uri_decode_bin:
        raise " Unable to create uri decode bin"

    uri_decode_bin.set_property("uri",uri)

    uri_decode_bin.connect("pad-added",cb_newpad,nbin)
    uri_decode_bin.connect("child-added",decodebin_child_added,nbin)

    Gst.Bin.add(nbin,uri_decode_bin)
    bin_pad=nbin.add_pad(Gst.GhostPad.new_no_target("src",Gst.PadDirection.SRC))
    if not bin_pad:
        raise " Failed to add ghost pad in source bin"
    return nbin

#/* nvstreammux -> nvinfer -> nvtiler -> nvvidconv -> nvosd -> video-renderer */
def main():
    global label_list
    live_stream = False

    # Standard GStreamer initialization
    Gst.init(None)

    # registering callbacks
    pyds.register_user_copyfunc(meta_copy_func)
    pyds.register_user_releasefunc(meta_free_func)

    # Create Pipeline element that will form a connection of other elements
    print("Creating Pipeline")
    pipeline = Gst.Pipeline()

    input_streams = 1 
    amount_of_deepstreams = math.ceil(input_streams / 30)

    print(f"*** openning {amount_of_deepstreams} deepstreams")
    for deepstream_num in range(amount_of_deepstreams):

        amount_of_streams_left = input_streams - deepstream_num * 30
        current_batch_size = min(30, amount_of_streams_left)

        # TODO: Is this here on purpose? why not before the loop?
        if not pipeline:
            raise " Unable to create Pipeline"
        
        print("Creating streamux")
        streammux = Gst.ElementFactory.make("nvstreammux", f"Stream-muxer_{deepstream_num}")
        if not streammux:
            raise " Unable to create NvStreamMux"
        pipeline.add(streammux)

        for i in range(current_batch_size):
            stream_number = i + 30 * deepstream_num
            print(f"Creating source_bin {stream_number}")
            uri_name = "file:///workdir/video.mp4"                                    #TODO: add the input file name 
            source_bin = create_source_bin(stream_number, uri_name)
            if not source_bin:
                raise "Unable to create source bin"
            pipeline.add(source_bin)
            padname = f"sink_{i}"
            sinkpad = streammux.get_request_pad(padname)
            if not sinkpad:
                raise "Unable to create sink pad bin"
            srcpad = source_bin.get_static_pad("src")
            if not srcpad:
                raise "Unable to create src pad bin"
            srcpad.link(sinkpad)

        print("Creating nvdspreprocess")
        preprocess = Gst.ElementFactory.make("nvdspreprocess", f"nvdspreprocess_{deepstream_num}")
        if not preprocess:
           raise " Unable to create nvdspreprocess"
        
        print("Creating Pgie")
        pgie = Gst.ElementFactory.make("nvinfer", f"primary-inference_{deepstream_num}")
        if not pgie:
            raise " Unable to create pgie"
        
        print("Creating nvtiler \n ")
        nvtiler = Gst.ElementFactory.make("nvmultistreamtiler", f"nvtiler_{deepstream_num}")
        if not nvtiler:
            raise " Unable to create nvtiler"
        
        print("Creating nvvidconv \n ")
        nvvidconv = Gst.ElementFactory.make("nvvideoconvert", f"nvvidconv_{deepstream_num}")
        if not nvvidconv:
            raise " Unable to create nvvidconv"
        
        print("Creating nvosd \n ")
        nvosd = Gst.ElementFactory.make("nvdsosd", f"nvosd_{deepstream_num}")
        if not nvosd:
            raise " Unable to create nvosd"
        
        print("Creating EGLSink \n")
        sink = Gst.ElementFactory.make("nveglglessink", f"nvvideo-renderer_{deepstream_num}")
        if not sink:
            raise " Unable to create sink"\

        queue1 = Gst.ElementFactory.make("queue", f"queue1_{deepstream_num}")
        queue2 = Gst.ElementFactory.make("queue", f"queue2_{deepstream_num}")
        queue3 = Gst.ElementFactory.make("queue", f"queue3_{deepstream_num}")
        queue4 = Gst.ElementFactory.make("queue", f"queue4_{deepstream_num}")
        queue5 = Gst.ElementFactory.make("queue", f"queue5_{deepstream_num}")
        queue6 = Gst.ElementFactory.make("queue", f"queue6_{deepstream_num}")

        if live_stream:
            streammux.set_property('live-source', 1)

        streammux.set_property('width', 1280)
        streammux.set_property('height', 720)
        streammux.set_property('batch-size', current_batch_size)
        # streammux.set_property('batched-push-timeout', 4000000)

        pgie.set_property('config-file-path', "/workdir/3d-action/config_infer_primary_3d_action.txt")      #TODO: add the config file path  
        preprocess.set_property("config-file", "/workdir/3d-action/config_preprocess_3d_custom.txt") 

        sink.set_property("sync", 0)
        sink.set_property("qos", 0)

        print("Adding elements to Pipeline \n")     #/* nvstreammux -> nvinfer -> nvtiler -> nvvidconv -> nvosd -> video-renderer */
        pipeline.add(queue1)
        pipeline.add(queue2)
        pipeline.add(queue3)
        pipeline.add(queue4)
        pipeline.add(queue5)
        pipeline.add(queue6)

        pipeline.add(preprocess)
        pipeline.add(pgie)
        pipeline.add(nvtiler)
        pipeline.add(nvvidconv)
        pipeline.add(nvosd)
        pipeline.add(sink)

        print("Linking elements in the Pipeline \n")
        streammux.link(queue1)
        queue1.link(preprocess)
        preprocess.link(queue2)
        queue2.link(pgie)
        pgie.link(queue3)
        queue3.link(nvtiler)
        nvtiler.link(queue4)
        queue4.link(nvvidconv)
        nvvidconv.link(queue5)
        queue5.link(nvosd)
        nvosd.link(queue6)
        queue6.link(sink)

        # streammux.link(preprocess)
        # preprocess.link(pgie)

    # create an event loop and feed gstreamer bus mesages to it
    loop = GLib.MainLoop()
    bus = pipeline.get_bus()
    bus.add_signal_watch()
    bus.connect("message", bus_call, loop)

    print("Starting pipeline \n")
    # start play back and listed to events
    pipeline.set_state(Gst.State.PLAYING)
    try:
        loop.run()
    except:
        pass

    # cleanup
    print("Exiting app\n")

    pyds.unset_callback_funcs()
    pipeline.set_state(Gst.State.NULL)

if __name__ == '__main__':
    main()

Kindly assist us to resolve this problem.

Thanks
Dax Jain

  1. Please update your driver to R525.85.12 for DeepStream 6.2. Quickstart Guide — DeepStream 6.3 Release documentation

  2. I can run your script in my T4 machine on DeepStream 6.2.

  3. You may enable GStreamer log for debugging on your platform. “export GST_DEBUG=3”

Hello @Fiona.Chen,

How can we install Nvidia driver version R525.85.12 with CUDA=11.8?
We have installed R525.85.12 driver but it’s default installing CUDA=12.0. We have found this link. It says that the driver R525.85.12 is not supported with CUDA=11.8.

Kindly help us to install the CUDA=11.8 with respect to Nvidia driver R525.85.12.

Thanks,
Dax Jain

There are step by step installation instructions in Quickstart Guide — DeepStream 6.2 Release documentation

We have already tried the same steps but after Nvidia driver installation nvidia-smi shows the CUDA version is 12.0. Here is the screenshot.

image

Can you run “ls -l /usr/local” to check the cuda installed in your device?

image

But in nvidia-smi it’s shows CUDA=12.0

It doesn’t matter

Then, with the same configurations while we execute that converted python script. We are encountering this error.

Creating Pipeline
*** openning 1 deepstreams
Creating streamux
Creating source_bin 0
Creating source bin
source-bin-0
Creating nvdspreprocess
Creating Pgie
Creating nvtiler

Creating nvvidconv

Creating nvosd

Creating EGLSink

Adding elements to Pipeline

Linking elements in the Pipeline

Starting pipeline

WARNING: [TRT]: CUDA lazy loading is not enabled. Enabling it can significantly reduce device memory usage. See `CUDA_MODULE_LOADING` in https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#env-vars
WARNING: [TRT]: Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors.
WARNING: [TRT]: CUDA lazy loading is not enabled. Enabling it can significantly reduce device memory usage. See `CUDA_MODULE_LOADING` in https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#env-vars
0:00:16.338757409   105      0x2a6a490 INFO                 nvinfer gstnvinfer.cpp:680:gst_nvinfer_logger:<primary-inference_0> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1909> [UID = 1]: deserialized trt engine from :/workdir/3d-action/resnet18_3d_rgb_hmdb5_32.etlt_b4_gpu0_fp16.engine
INFO: ../nvdsinfer/nvdsinfer_model_builder.cpp:610 [FullDims Engine Info]: layers num: 2
0   INPUT  kFLOAT input_rgb       3x32x224x224    min: 1x3x32x224x224  opt: 4x3x32x224x224  Max: 4x3x32x224x224
1   OUTPUT kFLOAT fc_pred         5               min: 0               opt: 0               Max: 0

0:00:16.385855245   105      0x2a6a490 INFO                 nvinfer gstnvinfer.cpp:680:gst_nvinfer_logger:<primary-inference_0> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2012> [UID = 1]: Use deserialized engine model: /workdir/3d-action/resnet18_3d_rgb_hmdb5_32.etlt_b4_gpu0_fp16.engine
0:00:16.388845312   105      0x2a6a490 INFO                 nvinfer gstnvinfer_impl.cpp:328:notifyLoadModelStatus:<primary-inference_0> [UID 1]: Load new model:/workdir/3d-action/config_infer_primary_3d_action.txt sucessfully
sequence_image_process.cpp:494, [INFO: CUSTOM_LIB] 3D custom sequence network info(NCSHW), [N: 4, C: 3, S: 32, H: 224, W:224]
sequence_image_process.cpp:522, [INFO: CUSTOM_LIB] Sequence preprocess buffer manager initialized with stride: 1, subsample: 0
sequence_image_process.cpp:526, [INFO: CUSTOM_LIB] SequenceImagePreprocess initialized successfully
Using user provided processing height = 224 and processing width = 224
Decodebin child added: source

Decodebin child added: decodebin0

Decodebin child added: qtdemux0

Decodebin child added: multiqueue0

Decodebin child added: h264parse0

Decodebin child added: capsfilter0

Decodebin child added: nvv4l2decoder0

In cb_newpad

0:00:16.809607078   105       0xfaa520 WARN                 nvinfer gstnvinfer.cpp:2369:gst_nvinfer_output_loop:<primary-inference_0> error: Internal data stream error.
0:00:16.809624421   105       0xfaa520 WARN                 nvinfer gstnvinfer.cpp:2369:gst_nvinfer_output_loop:<primary-inference_0> error: streaming stopped, reason not-negotiated (-4)
Error: gst-stream-error-quark: Internal data stream error. (1): gstnvinfer.cpp(2369): gst_nvinfer_output_loop (): /GstPipeline:pipeline0/GstNvInfer:primary-inference_0:
streaming stopped, reason not-negotiated (-4)
Exiting app

sequence_image_process.cpp:586, [INFO: CUSTOM_LIB] SequenceImagePreprocess is deinitializing

Kindly help us to figure out this issue.

Can you enable log with “export GST_DEBUG=3”? Is there physical monitor connected with your T4 server?

Yes.
Here is the logs.

Creating Pipeline
*** openning 1 deepstreams
Creating streamux
Creating source_bin 0
Creating source bin
source-bin-0
Creating nvdspreprocess
Creating Pgie
Creating nvtiler

Creating nvvidconv

Creating nvosd

Creating EGLSink

Adding elements to Pipeline

Linking elements in the Pipeline

Starting pipeline

WARNING: [TRT]: CUDA lazy loading is not enabled. Enabling it can significantly reduce device memory usage. See `CUDA_MODULE_LOADING` in https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#env-vars
WARNING: [TRT]: Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors.
WARNING: [TRT]: CUDA lazy loading is not enabled. Enabling it can significantly reduce device memory usage. See `CUDA_MODULE_LOADING` in https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#env-vars
0:00:05.744325302   129      0x43f2090 INFO                 nvinfer gstnvinfer.cpp:680:gst_nvinfer_logger:<primary-inference_0> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1909> [UID = 1]: deserialized trt engine from :/workdir/3d-action/resnet18_3d_rgb_hmdb5_32.etlt_b4_gpu0_fp16.engine
INFO: ../nvdsinfer/nvdsinfer_model_builder.cpp:610 [FullDims Engine Info]: layers num: 2
0   INPUT  kFLOAT input_rgb       3x32x224x224    min: 1x3x32x224x224  opt: 4x3x32x224x224  Max: 4x3x32x224x224
1   OUTPUT kFLOAT fc_pred         5               min: 0               opt: 0               Max: 0

0:00:05.790772963   129      0x43f2090 INFO                 nvinfer gstnvinfer.cpp:680:gst_nvinfer_logger:<primary-inference_0> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2012> [UID = 1]: Use deserialized engine model: /workdir/3d-action/resnet18_3d_rgb_hmdb5_32.etlt_b4_gpu0_fp16.engine
0:00:05.793643493   129      0x43f2090 INFO                 nvinfer gstnvinfer_impl.cpp:328:notifyLoadModelStatus:<primary-inference_0> [UID 1]: Load new model:/workdir/3d-action/config_infer_primary_3d_action.txt sucessfully
sequence_image_process.cpp:494, [INFO: CUSTOM_LIB] 3D custom sequence network info(NCSHW), [N: 4, C: 3, S: 32, H: 224, W:224]
sequence_image_process.cpp:522, [INFO: CUSTOM_LIB] Sequence preprocess buffer manager initialized with stride: 1, subsample: 0
sequence_image_process.cpp:526, [INFO: CUSTOM_LIB] SequenceImagePreprocess initialized successfully
Using user provided processing height = 224 and processing width = 224
0:00:05.797363787   129      0x43f2090 WARN                 basesrc gstbasesrc.c:3600:gst_base_src_start_complete:<source> pad not activated yet
Decodebin child added: source

Decodebin child added: decodebin0

0:00:05.798141702   129      0x43f2090 WARN                 basesrc gstbasesrc.c:3600:gst_base_src_start_complete:<source> pad not activated yet
Decodebin child added: qtdemux0

0:00:05.801996173   129 0x7f2d7404b0c0 WARN                 qtdemux qtdemux.c:7810:qtdemux_parse_container:<qtdemux0> length too long (1507328 > 27)
0:00:05.802033335   129 0x7f2d7404b0c0 WARN                 qtdemux qtdemux.c:3250:qtdemux_parse_trex:<qtdemux0> failed to find fragment defaults for stream 1
0:00:05.802087028   129 0x7f2d7404b0c0 WARN                 qtdemux qtdemux.c:9885:qtdemux_parse_segments:<qtdemux0> Segment 0  extends to 0:01:17.767156000 past the end of the declared movie duration 0:01:17.767155000 movie segment will be extended
Decodebin child added: multiqueue0

Decodebin child added: h264parse0

Decodebin child added: capsfilter0

Decodebin child added: nvv4l2decoder0

0:00:05.805274678   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:05.805294285   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat MJPG
0:00:05.805309495   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:05.805321217   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat MJPG
0:00:05.805340224   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:05.805351916   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat AV10
0:00:05.805365272   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:05.805377375   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat AV10
0:00:05.805394208   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:05.805408736   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat DVX5
0:00:05.805424065   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:05.805435046   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat DVX5
0:00:05.805449895   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:05.805460385   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat DVX4
0:00:05.805471777   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:05.805483239   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat DVX4
0:00:05.805496144   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:05.805505672   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat MPG4
0:00:05.805514679   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:05.805523887   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat MPG4
0:00:05.805531893   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:05.805540649   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat MPG2
0:00:05.805545609   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:05.805555568   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat MPG2
0:00:05.805568693   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:05.805576127   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat H265
0:00:05.805580346   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:05.805587279   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat H265
0:00:05.805597539   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:05.805604522   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat VP90
0:00:05.805608440   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:05.805612878   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat VP90
0:00:05.805621956   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:05.805628859   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat VP80
0:00:05.805635392   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:05.805642866   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat VP80
0:00:05.805653697   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:05.805660790   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat H264
0:00:05.805667543   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:05.805671892   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat H264
0:00:05.806040280   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:src> Unable to try format: Unknown error -1
0:00:05.806051421   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:src> Could not probe minimum capture size for pixelformat NM12
0:00:05.806055669   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:src> Unable to try format: Unknown error -1
0:00:05.806063214   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:src> Could not probe maximum capture size for pixelformat NM12
0:00:05.806072632   129 0x7f2d7404b640 WARN                    v4l2 gstv4l2object.c:2395:gst_v4l2_object_add_interlace_mode:0x7f2d6c030230 Failed to determine interlace mode
In cb_newpad

0:00:06.012566007   129 0x7f2d7404b640 WARN            v4l2videodec gstv4l2videodec.c:1836:gst_v4l2_video_dec_decide_allocation:<nvv4l2decoder0> Duration invalid, not setting latency
0:00:06.012612616   129 0x7f2d7404b640 WARN          v4l2bufferpool gstv4l2bufferpool.c:1082:gst_v4l2_buffer_pool_start:<nvv4l2decoder0:pool:src> Uncertain or not enough buffers, enabling copy threshold
0:00:06.013247277   129 0x7f2d6c03ec00 WARN          v4l2bufferpool gstv4l2bufferpool.c:1533:gst_v4l2_buffer_pool_dqbuf:<nvv4l2decoder0:pool:src> Driver should never set v4l2_buffer.field to ANY
0:00:06.018337849   129      0x2e82ea0 ERROR            egladaption ext/eglgles/gstegladaptation.c:669:gst_egl_adaptation_choose_config:<nvvideo-renderer_0> Could not find matching framebuffer config
0:00:06.018355493   129      0x2e82ea0 ERROR            egladaption ext/eglgles/gstegladaptation.c:683:gst_egl_adaptation_choose_config:<nvvideo-renderer_0> Couldn't choose an usable config
0:00:06.018361565   129      0x2e82ea0 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2873:gst_eglglessink_configure_caps:<nvvideo-renderer_0> Couldn't choose EGL config
0:00:06.018368268   129      0x2e82ea0 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2933:gst_eglglessink_configure_caps:<nvvideo-renderer_0> Configuring caps failed
0:00:06.018387150   129      0x2e82c60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer_0> Failed to configure caps
0:00:06.018416095   129      0x2e82c60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer_0> Failed to configure caps
0:00:06.018427878   129      0x2e82c60 WARN                GST_PADS gstpad.c:4231:gst_pad_peer_query:<queue6_0:src> could not send sticky events
0:00:06.019177820   129      0x2e82c60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer_0> Failed to configure caps
0:00:06.019190685   129      0x2e82c60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer_0> Failed to configure caps
0:00:06.019201125   129      0x2e82c60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer_0> Failed to configure caps
0:00:06.019208008   129      0x2e82c60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer_0> Failed to configure caps
0:00:06.019214991   129      0x2e82c60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer_0> Failed to configure caps
0:00:06.019225972   129      0x2e82c60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer_0> Failed to configure caps
0:00:06.019236092   129      0x2e82c60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer_0> Failed to configure caps
0:00:06.019245300   129      0x2e82c60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer_0> Failed to configure caps
0:00:06.019253505   129      0x2e82c60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer_0> Failed to configure caps
0:00:06.019262102   129      0x2e82c60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer_0> Failed to configure caps
0:00:06.025773703   129      0x2e82c60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer_0> Failed to configure caps
0:00:06.227270088   129      0x2e83120 WARN                 nvinfer gstnvinfer.cpp:2369:gst_nvinfer_output_loop:<primary-inference_0> error: Internal data stream error.
0:00:06.227285658   129      0x2e83120 WARN                 nvinfer gstnvinfer.cpp:2369:gst_nvinfer_output_loop:<primary-inference_0> error: streaming stopped, reason not-negotiated (-4)
Error: gst-stream-error-quark: Internal data stream error. (1): gstnvinfer.cpp(2369): gst_nvinfer_output_loop (): /GstPipeline:pipeline0/GstNvInfer:primary-inference_0:
streaming stopped, reason not-negotiated (-4)
Exiting app

0:00:06.231056850   129      0x2e831e0 WARN          nvdspreprocess gstnvdspreprocess.cpp:2301:gst_nvdspreprocess_output_loop:<nvdspreprocess_0> error: Internal data stream error.
0:00:06.231353240   129      0x2e831e0 WARN          nvdspreprocess gstnvdspreprocess.cpp:2301:gst_nvdspreprocess_output_loop:<nvdspreprocess_0> error: streaming stopped, reason not-negotiated (-4)
0:00:06.233757533   129 0x7f2d7404b0c0 WARN                 qtdemux qtdemux.c:6619:gst_qtdemux_loop:<qtdemux0> error: Internal data stream error.
0:00:06.233769977   129 0x7f2d7404b0c0 WARN                 qtdemux qtdemux.c:6619:gst_qtdemux_loop:<qtdemux0> error: streaming stopped, reason not-negotiated (-4)
sequence_image_process.cpp:586, [INFO: CUSTOM_LIB] SequenceImagePreprocess is deinitializing

No. It’s a virtual machine.

So please use fakesink instead of nveglglessink.

Thanks @Fiona.Chen.

We were able to execute the python script on our end. We require more information on Xavier side while running the same script in Xavier, we are getting the below issue.

Creating Pipeline
*** openning 1 deepstreams
Creating streamux
Creating source_bin 0
Creating source bin
source-bin-0
Creating nvdspreprocess
Creating Pgie
Creating nvtiler 
 
Creating nvvidconv 
 
Creating nvosd 
 
Creating EGLSink 

Adding elements to Pipeline 

Linking elements in the Pipeline 

Starting pipeline 


Using winsys: x11 
WARNING: Deserialize engine failed because file path: /opt/nvidia/deepstream/deepstream-6.2/sources/apps/sample_apps/deepstream-3d-action-recognition/./resnet18_3d_rgb_hmdb5_32.etlt_b4_gpu0_fp16.engine open error
0:00:02.619809227 47619     0x26e56210 WARN                 nvinfer gstnvinfer.cpp:677:gst_nvinfer_logger:<primary-inference_0> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1897> [UID = 1]: deserialize engine from file :/opt/nvidia/deepstream/deepstream-6.2/sources/apps/sample_apps/deepstream-3d-action-recognition/./resnet18_3d_rgb_hmdb5_32.etlt_b4_gpu0_fp16.engine failed
0:00:02.686835963 47619     0x26e56210 WARN                 nvinfer gstnvinfer.cpp:677:gst_nvinfer_logger:<primary-inference_0> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2002> [UID = 1]: deserialize backend context from engine from file :/opt/nvidia/deepstream/deepstream-6.2/sources/apps/sample_apps/deepstream-3d-action-recognition/./resnet18_3d_rgb_hmdb5_32.etlt_b4_gpu0_fp16.engine failed, try rebuild
0:00:02.686956417 47619     0x26e56210 INFO                 nvinfer gstnvinfer.cpp:680:gst_nvinfer_logger:<primary-inference_0> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1923> [UID = 1]: Trying to create engine from model files
ERROR: [TRT]: 3: [builder.cpp::~Builder::307] Error Code 3: API Usage Error (Parameter check failed at: optimizer/api/builder.cpp::~Builder::307, condition: mObjectCounter.use_count() == 1. Destroying a builder object before destroying objects it created leads to undefined behavior.
)
WARNING: [TRT]: onnx2trt_utils.cpp:375: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
WARNING: [TRT]: DLA requests all profiles have same min, max, and opt value. All dla layers are falling back to GPU
WARNING: [TRT]: TensorRT encountered issues when converting weights between types and that could affect accuracy.
WARNING: [TRT]: If this is not the desired behavior, please modify the weights or retrain with regularization to adjust the magnitude of the weights.
WARNING: [TRT]: Check verbose logs for the list of affected weights.
WARNING: [TRT]: - 21 weights are affected by this issue: Detected subnormal FP16 values.
WARNING: [TRT]: - 20 weights are affected by this issue: Detected values less than smallest positive FP16 subnormal value and converted them to the FP16 minimum subnormalized value.
WARNING: Serialize engine failed because of file path: /opt/nvidia/deepstream/deepstream-6.2/sources/apps/sample_apps/deepstream-3d-action-recognition/resnet18_3d_rgb_hmdb5_32.etlt_b4_gpu0_fp16.engine opened error
0:03:04.333444159 47619     0x26e56210 WARN                 nvinfer gstnvinfer.cpp:677:gst_nvinfer_logger:<primary-inference_0> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1950> [UID = 1]: failed to serialize cude engine to file: /opt/nvidia/deepstream/deepstream-6.2/sources/apps/sample_apps/deepstream-3d-action-recognition/resnet18_3d_rgb_hmdb5_32.etlt_b4_gpu0_fp16.engine
INFO: [FullDims Engine Info]: layers num: 2
0   INPUT  kFLOAT input_rgb       3x32x224x224    min: 1x3x32x224x224  opt: 4x3x32x224x224  Max: 4x3x32x224x224  
1   OUTPUT kFLOAT fc_pred         5               min: 0               opt: 0               Max: 0               

0:03:04.435395117 47619     0x26e56210 INFO                 nvinfer gstnvinfer_impl.cpp:328:notifyLoadModelStatus:<primary-inference_0> [UID 1]: Load new model:/opt/nvidia/deepstream/deepstream-6.2/sources/apps/sample_apps/deepstream-3d-action-recognition/config_infer_primary_3d_action.txt sucessfully
sequence_image_process.cpp:494, [INFO: CUSTOM_LIB] 3D custom sequence network info(NCSHW), [N: 4, C: 3, S: 32, H: 224, W:224]
sequence_image_process.cpp:522, [INFO: CUSTOM_LIB] Sequence preprocess buffer manager initialized with stride: 1, subsample: 0
sequence_image_process.cpp:526, [INFO: CUSTOM_LIB] SequenceImagePreprocess initialized successfully
Using user provided processing height = 224 and processing width = 224
0:03:04.572136620 47619     0x26e56210 WARN                 basesrc gstbasesrc.c:3600:gst_base_src_start_complete:<source> pad not activated yet
Decodebin child added: source 

Decodebin child added: decodebin0 

0:03:04.575514017 47619     0x26e56210 WARN                 basesrc gstbasesrc.c:3600:gst_base_src_start_complete:<source> pad not activated yet
Decodebin child added: qtdemux0 

0:03:04.595969102 47619 0xfffef80724c0 WARN                 qtdemux qtdemux.c:7810:qtdemux_parse_container:<qtdemux0> length too long (1507328 > 27)
0:03:04.596600720 47619 0xfffef80724c0 WARN                 qtdemux qtdemux.c:3250:qtdemux_parse_trex:<qtdemux0> failed to find fragment defaults for stream 1
0:03:04.597156686 47619 0xfffef80724c0 WARN                 qtdemux qtdemux.c:9885:qtdemux_parse_segments:<qtdemux0> Segment 0  extends to 0:01:17.767156000 past the end of the declared movie duration 0:01:17.767155000 movie segment will be extended
Decodebin child added: multiqueue0 

Decodebin child added: h264parse0 

Decodebin child added: capsfilter0 

Decodebin child added: nvv4l2decoder0 

Opening in BLOCKING MODE 
0:03:04.711097218 47619 0xfffef8072a40 WARN                    v4l2 gstv4l2object.c:4497:gst_v4l2_object_probe_caps:<nvv4l2decoder0:src> Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Unknown error -1
0:03:04.711198439 47619 0xfffef8072a40 WARN                    v4l2 gstv4l2object.c:2395:gst_v4l2_object_add_interlace_mode:0xfffef0031c30 Failed to determine interlace mode
0:03:04.711271307 47619 0xfffef8072a40 WARN                    v4l2 gstv4l2object.c:2395:gst_v4l2_object_add_interlace_mode:0xfffef0031c30 Failed to determine interlace mode
0:03:04.711379057 47619 0xfffef8072a40 WARN                    v4l2 gstv4l2object.c:2395:gst_v4l2_object_add_interlace_mode:0xfffef0031c30 Failed to determine interlace mode
0:03:04.711476726 47619 0xfffef8072a40 WARN                    v4l2 gstv4l2object.c:2395:gst_v4l2_object_add_interlace_mode:0xfffef0031c30 Failed to determine interlace mode
NvMMLiteOpen : Block : BlockType = 261 
NVMEDIA: Reading vendor.tegra.display-size : status: 6 
NvMMLiteBlockCreate : Block : BlockType = 261 
0:03:04.719365118 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffef0004240 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:04.819673684 47619 0xfffef8072a40 WARN                    v4l2 gstv4l2object.c:4497:gst_v4l2_object_probe_caps:<nvv4l2decoder0:src> Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Unknown error -1
0:03:04.819833149 47619 0xfffef8072a40 WARN                    v4l2 gstv4l2object.c:2395:gst_v4l2_object_add_interlace_mode:0xfffef0031c30 Failed to determine interlace mode
0:03:04.819938531 47619 0xfffef8072a40 WARN                    v4l2 gstv4l2object.c:2395:gst_v4l2_object_add_interlace_mode:0xfffef0031c30 Failed to determine interlace mode
0:03:04.820008518 47619 0xfffef8072a40 WARN                    v4l2 gstv4l2object.c:2395:gst_v4l2_object_add_interlace_mode:0xfffef0031c30 Failed to determine interlace mode
0:03:04.820057161 47619 0xfffef8072a40 WARN                    v4l2 gstv4l2object.c:2395:gst_v4l2_object_add_interlace_mode:0xfffef0031c30 Failed to determine interlace mode
In cb_newpad

0:03:04.823625161 47619 0xfffef8072a40 WARN            v4l2videodec gstv4l2videodec.c:1836:gst_v4l2_video_dec_decide_allocation:<nvv4l2decoder0> Duration invalid, not setting latency
0:03:04.828547218 47619 0xfffef8072a40 WARN          v4l2bufferpool gstv4l2bufferpool.c:1082:gst_v4l2_buffer_pool_start:<nvv4l2decoder0:pool:src> Uncertain or not enough buffers, enabling copy threshold
0:03:04.830647555 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffef0024d80 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:04.830981013 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffef00e3240 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:04.831393163 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffef8032c60 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:04.832715154 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffef0004a20 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:04.832983553 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffef00e3ea0 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:04.833206605 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffef00e3b40 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:04.833781292 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffef00cc900 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:04.834260037 47619 0xfffef003bc00 WARN          v4l2bufferpool gstv4l2bufferpool.c:1533:gst_v4l2_buffer_pool_dqbuf:<nvv4l2decoder0:pool:src> Driver should never set v4l2_buffer.field to ANY
0:03:04.837141344 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffef0004d80 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:04.837668381 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffef00e36c0 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:04.838704596 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffef00e37e0 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:04.839089257 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffef00e3900 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:04.841745880 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffef00e3a20 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:04.843030109 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffef00cc120 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:04.846404851 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffef00cc240 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:04.848110447 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffef00cc360 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:04.851450946 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffef00cc480 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:04.852733319 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffef00cc5a0 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:04.855267088 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffef00ccc60 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:04.857980386 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffef00ccd80 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:04.859329802 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffef00ccea0 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:05.116990292 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffeec088000 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:05.140687471 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffeec088120 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:05.162624492 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffeec088240 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
eglglessink cannot handle NVRM surface array gst_eglglessink_cuda_buffer_copy
0:03:05.164703419 47619     0x26230ea0 ERROR          nveglglessink gsteglglessink.c:2087:gst_eglglessink_upload:<nvvideo-renderer_0> Failed to upload texture
0:03:05.189384684 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffeec088360 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:05.190591757 47619     0x26231520 WARN                 nvinfer gstnvinfer.cpp:2369:gst_nvinfer_output_loop:<primary-inference_0> error: Internal data stream error.
0:03:05.190699538 47619     0x26231520 WARN                 nvinfer gstnvinfer.cpp:2369:gst_nvinfer_output_loop:<primary-inference_0> error: streaming stopped, reason error (-5)
Error: gst-stream-error-quark: Internal data stream error. (1): /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvinfer/gstnvinfer.cpp(2369): gst_nvinfer_output_loop (): /GstPipeline:pipeline0/GstNvInfer:primary-inference_0:
streaming stopped, reason error (-5)
Exiting app

0:03:05.192151329 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffeec088480 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:05.199425064 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffeec0885a0 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:05.201483159 47619     0x262315e0 WARN          nvdspreprocess gstnvdspreprocess.cpp:2301:gst_nvdspreprocess_output_loop:<nvdspreprocess_0> error: Internal data stream error.
0:03:05.201614782 47619     0x262315e0 WARN          nvdspreprocess gstnvdspreprocess.cpp:2301:gst_nvdspreprocess_output_loop:<nvdspreprocess_0> error: streaming stopped, reason error (-5)
0:03:05.203010729 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffeec0886c0 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:05.208333383 47619 0xfffef8072a40 WARN              bufferpool gstbufferpool.c:1235:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0xfffeec088d80 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
0:03:05.210091782 47619 0xfffef80724c0 WARN                 qtdemux qtdemux.c:6619:gst_qtdemux_loop:<qtdemux0> error: Internal data stream error.
0:03:05.210158730 47619 0xfffef80724c0 WARN                 qtdemux qtdemux.c:6619:gst_qtdemux_loop:<qtdemux0> error: streaming stopped, reason error (-5)
sequence_image_process.cpp:586, [INFO: CUSTOM_LIB] SequenceImagePreprocess is deinitializing

Note: The display is attached with the device.

Thanks,
Dax Jain

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

Can the c/c++ sample run in your Xavier board?

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