Jetson Inference - Could not open DRM module (NULL) - gstreamer - 5.10.104-tegra

Hello everyone,

I am using the jetson inference repo from @dustynv (GitHub - dusty-nv/jetson-inference: Hello AI World guide to deploying deep-learning inference networks and deep vision primitives with TensorRT and NVIDIA Jetson.) with the Neousys Technology NRU-110V. To map ROS functionalities, I have flashed the system to Jetpack 5.1 according to the manufacturer’s instructions. As an example pipeline, I use the following gstreamer instructions outside the Docker container:

GST_DEBUG=3 gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=1280,height=720,format=UYVY ! autovideosink

Outside the container, the pipeline works without errors. As soon as I want to run the pipeline inside the container, I get the following error message:

*root@tegra-ubuntu:/# GST_DEBUG=3 gst-launch-1.0  v4l2src device=/dev/video0 ! video/x-raw,width=1280,height=720,format=UYVY ! autovideosink*
*0:00:01.180704546    71 0xaaaafea7c780 WARN                 default gstsf.c:97:gst_sf_create_audio_template_caps: format 0x120000: 'AVR (Audio Visual Research)' is not mapped*
*0:00:01.180838087    71 0xaaaafea7c780 WARN                 default gstsf.c:97:gst_sf_create_audio_template_caps: format 0x180000: 'CAF (Apple Core Audio File)' is not mapped*
*0:00:01.180885832    71 0xaaaafea7c780 WARN                 default gstsf.c:97:gst_sf_create_audio_template_caps: format 0x100000: 'HTK (HMM Tool Kit)' is not mapped*
*0:00:01.180942410    71 0xaaaafea7c780 WARN                 default gstsf.c:97:gst_sf_create_audio_template_caps: format 0xc0000: 'MAT4 (GNU Octave 2.0 / Matlab 4.2)' is not mapped*
*0:00:01.180999820    71 0xaaaafea7c780 WARN                 default gstsf.c:97:gst_sf_create_audio_template_caps: format 0xd0000: 'MAT5 (GNU Octave 2.1 / Matlab 5.0)' is not mapped*
*0:00:01.181068462    71 0xaaaafea7c780 WARN                 default gstsf.c:97:gst_sf_create_audio_template_caps: format 0x210000: 'MPC (Akai MPC 2k)' is not mapped*
*0:00:01.181134673    71 0xaaaafea7c780 WARN                 default gstsf.c:97:gst_sf_create_audio_template_caps: format 0xe0000: 'PVF (Portable Voice Format)' is not mapped*
*0:00:01.181239444    71 0xaaaafea7c780 WARN                 default gstsf.c:97:gst_sf_create_audio_template_caps: format 0x160000: 'SD2 (Sound Designer II)' is not mapped*
*0:00:01.181327479    71 0xaaaafea7c780 WARN                 default gstsf.c:97:gst_sf_create_audio_template_caps: format 0x190000: 'WVE (Psion Series 3)' is not mapped*
*0:00:01.772811883    71 0xaaaafea7c780 WARN                  ladspa gstladspa.c:507:plugin_init:<plugin174> no LADSPA plugins found, check LADSPA_PATH*
*Setting pipeline to PAUSED ...*
*0:00:07.687856436    70 0xaaaae8e802a0 WARN                 kmssink gstkmssink.c:835:gst_kms_sink_start:<autovideosink0-actual-sink-kms> error: Could not open DRM module (NULL)*
*0:00:07.687991193    70 0xaaaae8e802a0 WARN                 kmssink gstkmssink.c:835:gst_kms_sink_start:<autovideosink0-actual-sink-kms> error: reason: No such file or directory (2)*
*0:00:07.688391654    70 0xaaaae8e802a0 WARN                basesink gstbasesink.c:5367:gst_base_sink_change_state:<autovideosink0-actual-sink-kms> error: Failed to start*
*Pipeline is live and does not need PREROLL ...*
*Setting pipeline to PLAYING ...*
*0:00:07.879654162    70 0xaaaae8f15000 WARN                 basesrc gstbasesrc.c:3072:gst_base_src_loop:<v4l2src0> error: Internal data stream error.*
*0:00:07.879871961    70 0xaaaae8f15000 WARN                 basesrc gstbasesrc.c:3072:gst_base_src_loop:<v4l2src0> error: streaming stopped, reason not-negotiated (-4)*
*New clock: GstSystemClock*
*ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.*
*Additional debug info:*
*gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:*
*streaming stopped, reason not-negotiated (-4)*
*Execution ended after 0:00:00.000731737*
*Setting pipeline to NULL ...*
*Freeing pipeline ...*

I have already been able to narrow down the cause field to possibly missing authorizations or unrecognized DRM drivers via other posts. My goal is ultimately to use the functionalities of the repository, but these give me similar error messages. Therefore, the basic gstreamer pipeline should run first.

Here is my info from jtop. I did not install the missing libraries due to limited memory space. The nvidia docker container toolkit is installed. If further information is required, I will be happy to provide it:

image

I would be grateful for any help.
Thanks a lot!

Hi,
Please follow this and share which sink is picked:
Gstream not work in AGX Orgin But ok in Xavier NX - #5 by DaneLLL

And possible reasons that display fails in docker:
"No EGL Display" error coming while running deepstream python app inside a docker - #9 by vino_mm
Unable to display images using Open CV when using docker container - #3 by AastaLLL

1 Like

Hi DaneLLL,

outside docker: xvimagesink
based on the debug output > inside docker: nv3dsink

Following these steps No xvimagesink on deepstream-l4t - #12 by pvmilk
Im able to use videotestsrc and get a window. Nevertheless the window content with the real pipeline is just a black screen.

As an addition to the previous post: I start both containers with -v /lib/modules/5.10.104-tegra:/lib/modules/5.10.104-tegra to avoid getting modprobe errors. I got the info according to a comment from #1556.

Do you have further suggestions?

Thanks for your help!

I have the same problem. Video is just a black screen. Any known solutions to this?