Jetson Nano: Deepstream Python apps not working

Hi,

I’m trying to test Deepstream Python apps on Jetson Nano, which has https://developer.download.nvidia.com/training/nano/dsnano_v1-0-0_20GB_200131A.zip this image written on microSD Card. I am able to run the C samples from this course, but Python samples are not running fine.

I followed the instructions mentioned here - https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/blob/master/HOWTO.md

I tried first deepstream-test1 app:

GST_DEBUG=3 python3 deepstream_test_1.py /home/dlinano/deepstream_sdk_v4.0.2_jetson/samples/streams/sample_720p.h264

The output is:

Creating Pipeline 
 
Creating Source 
 
Creating H264Parser 

Creating Decoder 

Creating EGLSink 

Playing file /home/dlinano/deepstream_sdk_v4.0.2_jetson/samples/streams/sample_720p.h264 
Adding elements to Pipeline 

Linking elements in the Pipeline 

Starting pipeline 


Using winsys: x11 
Opening in BLOCKING MODE 
0:00:00.775555627 32542      0x533e390 WARN                    v4l2 gstv4l2object.c:4408:gst_v4l2_object_probe_caps:<nvv4l2-decoder:src> Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Unknown error -1
0:00:00.775635472 32542      0x533e390 WARN                    v4l2 gstv4l2object.c:2370:gst_v4l2_object_add_interlace_mode:0x4b87e90 Failed to determine interlace mode
Creating LL OSD context new
0:00:03.877449119 32542      0x533e390 INFO                 nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]:initialize(): Trying to create engine from model files
0:00:03.877712040 32542      0x533e390 WARN                 nvinfer gstnvinfer.cpp:515:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]:generateTRTModel(): INT8 not supported by platform. Trying FP16 mode.
0:02:24.840697664 32542      0x533e390 INFO                 nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]:generateTRTModel(): Storing the serialized cuda engine to file at /home/dlinano/deepstream_sdk_v4.0.2_jetson/samples/models/Primary_Detector/resnet10.caffemodel_b1_fp16.engine
0:02:25.565462988 32542      0x533e390 WARN                 basesrc gstbasesrc.c:3583:gst_base_src_start_complete:<file-source> pad not activated yet
NvMMLiteOpen : Block : BlockType = 261 
NVMEDIA: Reading vendor.tegra.display-size : status: 6 
NvMMLiteBlockCreate : Block : BlockType = 261 
0:02:25.748948321 32542      0x4f9b4f0 WARN                    v4l2 gstv4l2object.c:4408:gst_v4l2_object_probe_caps:<nvv4l2-decoder:src> Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Unknown error -1
0:02:25.749288847 32542      0x4f9b4f0 WARN                    v4l2 gstv4l2object.c:2370:gst_v4l2_object_add_interlace_mode:0x4b87e90 Failed to determine interlace mode
Creating LL OSD context new
0:02:25.953666603 32542      0x4f9b540 ERROR            egladaption gstegladaptation.c:659:gst_egl_adaptation_choose_config:<nvvideo-renderer> Could not find matching framebuffer config
0:02:25.953896346 32542      0x4f9b540 ERROR            egladaption gstegladaptation.c:672:gst_egl_adaptation_choose_config:<nvvideo-renderer> Couldn't choose an usable config
0:02:25.954005723 32542      0x4f9b540 ERROR          nveglglessink gsteglglessink.c:2707:gst_eglglessink_configure_caps:<nvvideo-renderer> Couldn't choose EGL config
0:02:25.954143537 32542      0x4f9b540 ERROR          nveglglessink gsteglglessink.c:2767:gst_eglglessink_configure_caps:<nvvideo-renderer> Configuring caps failed
0:02:25.954481146 32542      0x4f9b4f0 ERROR          nveglglessink gsteglglessink.c:2812:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:02:25.954721826 32542      0x4f9b4f0 ERROR          nveglglessink gsteglglessink.c:2812:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:02:25.954801723 32542      0x4f9b4f0 WARN                GST_PADS gstpad.c:4226:gst_pad_peer_query:<nvegl-transform:src> could not send sticky events
0:02:25.979811650 32542      0x4f9b4f0 WARN            v4l2videodec gstv4l2videodec.c:1557:gst_v4l2_video_dec_decide_allocation:<nvv4l2-decoder> Duration invalid, not setting latency
0:02:25.979890557 32542   0x7f24004800 ERROR          nveglglessink gsteglglessink.c:2812:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:02:25.980144780 32542      0x4f9b4f0 WARN          v4l2bufferpool gstv4l2bufferpool.c:1062:gst_v4l2_buffer_pool_start:<nvv4l2-decoder:pool:src> Uncertain or not enough buffers, enabling copy threshold
0:02:25.986969353 32542      0x4f9b4f0 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2-decoder:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.
0:02:25.989752203 32542      0x4f9b4f0 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2-decoder:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.
0:02:25.992452397 32542      0x4f9b4f0 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2-decoder:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.
0:02:25.994952744 32542      0x4f9b4f0 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2-decoder:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.
0:02:25.997372048 32542      0x4f9b4f0 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2-decoder:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.
0:02:25.997397673 32542      0xeed6140 WARN          v4l2bufferpool gstv4l2bufferpool.c:1526:gst_v4l2_buffer_pool_dqbuf:<nvv4l2-decoder:pool:src> Driver should never set v4l2_buffer.field to ANY
0:02:25.997648406 32542      0xeed6140 ERROR          nveglglessink gsteglglessink.c:2812:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:02:25.997830960 32542   0x7f24004800 ERROR          nveglglessink gsteglglessink.c:2812:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:02:25.997897940 32542   0x7f24004800 ERROR          nveglglessink gsteglglessink.c:2812:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:02:25.997953879 32542   0x7f24004800 ERROR          nveglglessink gsteglglessink.c:2812:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:02:26.003847710 32542   0x7f24004800 ERROR          nveglglessink gsteglglessink.c:2812:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:02:26.003916721 32542   0x7f24004800 ERROR          nveglglessink gsteglglessink.c:2812:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:02:26.003962451 32542   0x7f24004800 ERROR          nveglglessink gsteglglessink.c:2812:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:02:26.009961960 32542      0x4f9b4f0 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2-decoder:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.
0:02:26.082332903 32542      0x4f9b4f0 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2-decoder:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.
Frame Number=0 Number of Objects=5 Vehicle_count=3 Person_count=2
0:02:26.314856254 32542      0x4f99280 ERROR         nvegltransform gstnvegltransform.c:335:gst_nvegl_transform_transform:<nvegl-transform> Something is wrong, EGLImage is expected.
0:02:26.314991256 32542      0x4f99280 WARN                 nvinfer gstnvinfer.cpp:1830:gst_nvinfer_output_loop:<primary-inference> error: Internal data stream error.
0:02:26.315028444 32542      0x4f99280 WARN                 nvinfer gstnvinfer.cpp:1830:gst_nvinfer_output_loop:<primary-inference> 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(1830): gst_nvinfer_output_loop (): /GstPipeline:pipeline0/GstNvInfer:primary-inference:
streaming stopped, reason error (-5)
0:02:26.325701976 32542      0x4f9b4f0 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2-decoder:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.
0:02:26.326109898 32542      0x4f9b4f0 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2-decoder:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.
0:02:26.326406777 32542      0x4f9b4f0 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2-decoder:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.
0:02:26.326679594 32542      0x4f9b4f0 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2-decoder:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.
0:02:26.327027098 32542      0x4f9b4f0 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2-decoder:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.
0:02:26.327349915 32542      0x4f9b4f0 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2-decoder:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.
0:02:26.327761379 32542      0x4f9b4f0 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2-decoder:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.
0:02:26.327993362 32542      0x4f9b4f0 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2-decoder:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.
0:02:26.334945697 32542      0x4f9b4f0 WARN          v4l2bufferpool gstv4l2bufferpool.c:1482:gst_v4l2_buffer_pool_dqbuf:<nvv4l2-decoder:pool:sink> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 64 bytes used but memory is only 0B.  This is probably a driver bug.

Please help with this issue.

Thanks,
Archana

Hi Archana,
I’m not sure which Jetpack version https://developer.download.nvidia.com/training/nano/dsnano_v1-0-0_20GB_200131A.zip is based on.
Can you flash a JP4.3 and upgrade python to v3.6 and try again? I believe https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/blob/master/HOWTO.md works on such system.

Hi @mchi,

That Jetpack image I found in a DeepStream learning course, so I thought it could work for Python apps as well. Right now, I’m trying https://ngc.nvidia.com/catalog/containers/nvidia:deepstream-l4t this docker container on Nano and Xavier and will let you know if any issues in it.

Thanks,
Archana