How can I solve the error "ERROR from src_elem:Internal data stream error"?

Hi ,

This is the first time I’ve used deepstream .I ran ‘deepstream-app -c source8_1080p_dec_infer-resnet_tracker_tiled_display_fp16_nano.txt’ successfully. But when I tried to excute ’ deepstream-app -c source1_usb_dev_infer_resnet_int8.txt’command, it showed me ‘ERROR from src_elem:Internal data stream error’. I am sure my usb camera is usable.How can I solve this problem ?
Thanks!

Moving to DeepStream SDK forum for better support.

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• 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)

Thank you !
It is on my Jetson nano. The experimental environment is as follows :
JetPack 4.6
L4T 32.6.1
DeepStream 6.0.0
cuda 10.2.300
TensorRT 8.0.1.6

I installed the DeepStream through SDK manager,then I ran the demo:

$ deepstream-app -c source1_usb_dec_infer_resnet_int8.txt

The output is as follows:

ERROR: Deserialize engine failed because file path: /opt/nvidia/deepstream/deepstream-6.0/samples/configs/deepstream-app/../../models/Primary_Detector/resnet10.caffemodel_b30_gpu0_int8.engine open error
0:00:02.803755937  8422     0x3e7c4af0 WARN                 nvinfer gstnvinfer.cpp:635:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1889> [UID = 1]: deserialize engine from file :/opt/nvidia/deepstream/deepstream-6.0/samples/configs/deepstream-app/../../models/Primary_Detector/resnet10.caffemodel_b30_gpu0_int8.engine failed
0:00:02.803908124  8422     0x3e7c4af0 WARN                 nvinfer gstnvinfer.cpp:635:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:1996> [UID = 1]: deserialize backend context from engine from file :/opt/nvidia/deepstream/deepstream-6.0/samples/configs/deepstream-app/../../models/Primary_Detector/resnet10.caffemodel_b30_gpu0_int8.engine failed, try rebuild
0:00:02.803944478  8422     0x3e7c4af0 INFO                 nvinfer gstnvinfer.cpp:638:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1914> [UID = 1]: Trying to create engine from model files
WARNING: INT8 not supported by platform. Trying FP16 mode.
WARNING: [TRT]: Detected invalid timing cache, setup a local cache instead
ERROR: Serialize engine failed because of file path: /opt/nvidia/deepstream/deepstream-6.0/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_fp16.engine opened error
0:01:14.694207211  8422     0x3e7c4af0 WARN                 nvinfer gstnvinfer.cpp:635:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1942> [UID = 1]: failed to serialize cude engine to file: /opt/nvidia/deepstream/deepstream-6.0/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_fp16.engine
INFO: [Implicit Engine Info]: layers num: 3
0   INPUT  kFLOAT input_1         3x368x640       
1   OUTPUT kFLOAT conv2d_bbox     16x23x40        
2   OUTPUT kFLOAT conv2d_cov/Sigmoid 4x23x40         

0:01:14.776315649  8422     0x3e7c4af0 INFO                 nvinfer gstnvinfer_impl.cpp:313:notifyLoadModelStatus:<primary_gie> [UID 1]: Load new model:/opt/nvidia/deepstream/deepstream-6.0/samples/configs/deepstream-app/config_infer_primary.txt sucessfully

Runtime commands:
	h: Print this help
	q: Quit

	p: Pause
	r: Resume

NOTE: To expand a source in the 2D tiled display and view object details, left-click on the source.
      To go back to the tiled display, right-click anywhere on the window.


**PERF:  FPS 0 (Avg)	
**PERF:  0.00 (0.00)	
** INFO: <bus_callback:194>: Pipeline ready

** INFO: <bus_callback:180>: Pipeline running

ERROR from src_elem: Internal data stream error.
Debug info: gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin0/GstV4l2Src:src_elem:
streaming stopped, reason not-negotiated (-4)
** INFO: <bus_callback:160>: incorrect camera parameters provided, please provide supported resolution and frame rate

** INFO: <bus_callback:217>: Received EOS. Exiting ...

Quitting
App run failed


use below to check your camera parameters:
$ sudo apt-get install v4l-utils
$ v4l2-ctl -d /dev/video0 --list-formats-ext

Hi,it shows as follow:

ioctl: VIDIOC_ENUM_FMT
        Index       : 0
        Type        : Video Capture
        Pixel Format: 'MJPG' (compressed)
        Name        : Motion-JPEG
                Size: Discrete 640x480
                        Interval: Discrete 0.008s (120.000 fps)
                Size: Discrete 160x120
                        Interval: Discrete 0.008s (120.000 fps)
                Size: Discrete 176x144
                        Interval: Discrete 0.008s (120.000 fps)
                Size: Discrete 320x240
                        Interval: Discrete 0.008s (120.000 fps)
                Size: Discrete 352x288
                        Interval: Discrete 0.008s (120.000 fps)
                Size: Discrete 424x240
                        Interval: Discrete 0.008s (120.000 fps)
                Size: Discrete 640x480
                        Interval: Discrete 0.008s (120.000 fps)
                Size: Discrete 960x540
                        Interval: Discrete 0.008s (120.000 fps)
                Size: Discrete 1280x720
                        Interval: Discrete 0.008s (120.000 fps)
                Size: Discrete 640x480
                        Interval: Discrete 0.008s (120.000 fps)

        Index       : 1
        Type        : Video Capture
        Pixel Format: 'MJPG' (compressed)
        Name        : Motion-JPEG
                Size: Discrete 640x480
                        Interval: Discrete 0.008s (120.000 fps)
                Size: Discrete 160x120
                        Interval: Discrete 0.008s (120.000 fps)
                Size: Discrete 176x144
                        Interval: Discrete 0.008s (120.000 fps)
                Size: Discrete 320x240
                        Interval: Discrete 0.008s (120.000 fps)
                Size: Discrete 352x288
                        Interval: Discrete 0.008s (120.000 fps)
                Size: Discrete 424x240
                        Interval: Discrete 0.008s (120.000 fps)
                Size: Discrete 640x480
                        Interval: Discrete 0.008s (120.000 fps)
                Size: Discrete 960x540
                        Interval: Discrete 0.008s (120.000 fps)
                Size: Discrete 1280x720
                        Interval: Discrete 0.008s (120.000 fps)
                Size: Discrete 640x480
                        Interval: Discrete 0.008s (120.000 fps)

My other 25 Hz camera works fine.Therefore, I think the transmission failure may be caused by the high frame rate. Then I tried to reduce the frame rate of the camera, but as a newcomer, I haven’t solved the problem yet.

Can you try this pipeline?
gst-launch-1.0 v4l2src device=/dev/video0 ! “image/jpeg,width=640,height=480, framerate=120/1” ! nvjpegdec ! nvegltransform ! nveglglessink
Make sure you have monitors connected to your Jetson device for nveglglessink to work.

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.