Onboard camera TX2 issue

Hi and good day,

I am using Jetpack 3.2.1 for Jetson TX2. When I was trying to open up the video stream through onboard camera in TX2 development kit, I received following error:

Setting pipeline to PAUSED …

Using winsys: x11
Socket read error. Camera Daemon stopped functioning…
gst_nvcamera_open() failed ret=0
ERROR: Pipeline doesn’t want to pause.
Got context from element ‘eglglessink0’: gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;
ERROR: from element /GstPipeline:pipeline0/GstNvCameraSrc:nvcamerasrc0: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
Additional debug info:
gstbasesrc.c(3354): gst_base_src_start (): /GstPipeline:pipeline0/GstNvCameraSrc:nvcamerasrc0:
Failed to start
Setting pipeline to NULL …
Caught SIGSEGV
#0 0x0000007f8ccd9130 in pthread_join (threadid=547768136192,
#1 0x0000007f8cd8fed0 in ?? () from /lib/aarch64-linux-gnu/libglib-2.0.so.0
#2 0x0000000000000011 in ?? ()
Spinning. Please run ‘gdb gst-launch-1.0 2929’ to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.

The command I ran was:

gst-launch-1.0 nvcamerasrc ! ‘video/x-raw(memory:NVMM), width=640, height=480, framerate=30/1, format=NV12’ ! nvvidconv flip-method=2 ! nvegltransform ! nveglglessink -e

Thank you in advance!

Try below command before launch the camera.

export DISPLAY=:0

Hi,

thank you for the reply, sorry but the command mentioned is supposed to be executed in the terminal as well right?

I still received the same error message though, as in the screenshot attached in the following link:

I don’t have the problem for you command line.
COuld you confirm below command to make sure the camera is fine.

gst-launch-1.0 nvcamerasrc ! ‘video/x-raw(memory:NVMM), width=640, height=480, framerate=30/1, format=NV12’ ! nvvidconv flip-method=2 ! nvoverlaysink -e

Hi,

sorry for the late reply, I have tried to run the above command but received the following error, as per screenshot:

https://ibb.co/eJihbz

nvidia@tegra-ubuntu:~$ gst-launch-1.0 nvcamerasrc ! ‘video/x-raw(memory:NVMM), width=640, height=480, framerate=30/1, format=NV12’ ! nvvidconv flip-method=2 ! nvoverlaysink -e
Setting pipeline to PAUSED …
Socket read error. Camera Daemon stopped functioning…
gst_nvcamera_open() failed ret=0
ERROR: Pipeline doesn’t want to pause.
ERROR: from element /GstPipeline:pipeline0/GstNvCameraSrc:nvcamerasrc0: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
Additional debug info:
gstbasesrc.c(3354): gst_base_src_start (): /GstPipeline:pipeline0/GstNvCameraSrc:nvcamerasrc0:
Failed to start
Setting pipeline to NULL …
Freeing pipeline …

Check the sensor driver is initial correctly by below command.

v4l2-ctl --list-devices

Hi,

I received error message as below:

nvidia@tegra-ubuntu:~$ v4l2-ctl --list-devices
Failed to open /dev/video0: No such file or directory

https://ibb.co/gsSLWz

Perhaps, the sensor driver is not installed/initialized correctly? May I know how do we fix it?

Thank you in advance!

If you make sure you have mount the camera module on the carrier board then it could be the HW problem.
Try to have others module to try if you have.

Yes, I do have the camera module on the carrier board. It’s the developer kit’s board that I retrieved along with Jetson TX2.

I managed to initialize the camera previously but this issue happens after I flashing the board recently.

Noted, I will try the other module as well, but is there any way that I can somehow reinstall the sensor driver or something like that?

Thank you.

Try to flash the older BSP like r24 to confirm too.

Hi mk.ikhwan88,

Is this still an issue to support? Any result can be shared?

Thanks

Hi kayccc,

sorry for the late reply, according to the support from ConnectTech.com, it was due to the fact I flashed to Orbitty device tree, and I would need to flash back to original kit device tree.

It worked after I did, I am able to run the sample to use the onboard camera for TX2.

Below are the commands used for the reference:

Flash dev kit device tree

./flash.sh -r -k kernel-dtb jetson-tx2 mmcblk0p1

To switch back to Orbitty device tree;

./flash.sh -r -k kernel-dtb orbitty jetson-tx2 mmcblk0p1