Vonert

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) TX2
• DeepStream Version 5.0
• JetPack Version (valid for Jetson only) 4.3
• TensorRT Version 7.1
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs) Bugs : Deepstream pipeline crashes with “Error: gst-stream-error-quark: Internal data stream error. (1): gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstPylonSrc:usb-cam-source:
streaming stopped, reason error (-5)”
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description) I am using Adlink NEON-2000-JT2 vision camera that has a basler camera connected to Jetson TX2 module. I am using pylonsrc gstreamer plugin to connect the camera to deepstream plugin. When I run this pipeline : gst-launch-1.0 -v pylonsrc binningv=2 binningh=2 ! fpsfilter ! nvvideoconvert ! ‘video/x-raw(memory:NVMM),format=NV12’ ! m.sink_0 nvstreammux name=m batch-size=1 width=1296 height=972 ! nvinfer config-file-path=/opt/nvidia/deepstream/deepstream-5.0/sources/deepstream_python_apps/apps/My_app/detector_config.txt ! nvtracker ll-lib-file = /opt/nvidia/deepstream/deepstream-5.0/lib/libnvds_mot_klt.so tracker-width=640 tracker-height=384 ! nvdsanalytics config-file=/opt/nvidia/deepstream/deepstream-5.0/sources/deepstream_python_apps/apps/My_app/config_nvdsanalytics.txt ! nvvideoconvert ! nvdsosd process-mode=2 display-bbox=1 ! nvegltransform ! nveglglessink sync=False . My application works for a while and crashes with following error Error: gst-stream-error-quark: Internal data stream error. (1): gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstPylonSrc:usb-cam-source:
streaming stopped, reason error (-5).

Hi,
For further check you may make sure the camera source is stable. Please try this pipeline and see if it can run without hitting the crash:

gst-launch-1.0 -v pylonsrc binningv=2 binningh=2 ! fpsfilter ! nvvideoconvert ! ‘video/x-raw(memory:NVMM),format=NV12’ ! nvegltransform ! nveglglessink sync=0

And please try to run deepstream-app with default config file. To make sure it works fine with video file sources.

Thank you for your reply. I am not sure I understood what you mean by a stable camera source.

  • deepstream-app with default config file works fine.
  • I tried your suggested pipelines and i get a visual. At first attempt it carshes almost immediately with hereafter error and second and third attempt it worked for longer:
    gst-launch-1.0 -v pylonsrc binningv=2 binningh=2 ! fpsfilter ! nvvideoconvert ! ‘video/x-raw(memory:NVMM),format=NV12’ ! nvegltransform ! nveglglessink sync=0
    2021-12-28 15:00:05.090389: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.2
    Setting pipeline to PAUSED …

Using winsys: x11
Pipeline is live and does not need PREROLL …
Got context from element ‘eglglessink0’: gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;
/GstPipeline:pipeline0/GstPylonSrc:pylonsrc0.GstPad:src: caps = video/x-raw, format=(string)YUY2, width=(int)1296, height=(int)972, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstFpsFilter:fpsfilter0.GstPad:src: caps = video/x-raw, format=(string)YUY2, width=(int)1296, height=(int)972, framerate=(fraction)0/1
/GstPipeline:pipeline0/Gstnvvideoconvert:nvvideoconvert0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1296, height=(int)972, framerate=(fraction)0/1, format=(string)NV12
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1296, height=(int)972, framerate=(fraction)0/1, format=(string)NV12
/GstPipeline:pipeline0/GstNvEglTransform:nvegltransform0.GstPad:src: caps = video/x-raw(memory:EGLImage), width=(int)1296, height=(int)972, framerate=(fraction)0/1, format=(string)RGBA
Setting pipeline to PLAYING …
New clock: GstSystemClock
/GstPipeline:pipeline0/GstEglGlesSink:eglglessink0.GstPad:sink: caps = video/x-raw(memory:EGLImage), width=(int)1296, height=(int)972, framerate=(fraction)0/1, format=(string)RGBA
/GstPipeline:pipeline0/GstNvEglTransform:nvegltransform0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1296, height=(int)972, framerate=(fraction)0/1, format=(string)NV12
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1296, height=(int)972, framerate=(fraction)0/1, format=(string)NV12
/GstPipeline:pipeline0/Gstnvvideoconvert:nvvideoconvert0.GstPad:sink: caps = video/x-raw, format=(string)YUY2, width=(int)1296, height=(int)972, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstFpsFilter:fpsfilter0.GstPad:sink: caps = video/x-raw, format=(string)YUY2, width=(int)1296, height=(int)972, framerate=(fraction)0/1
0:00:04.276022320 27871 0x55733334f0 fpsfilter gstfpsfilter.c:256:gst_fps_filter_chain: FPS: 0 (Calculated time per frame: infms)
ERROR: from element /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0:
streaming stopped, reason error (-5)
Execution ended after 0:00:00.617895288
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …

Hi,
It looks to be an issue in the source. It looks not stable and cannot be consistently run. We suggest check with vendor for improving stability of the source.

1 Like

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