Execute:568 Failed to create CaptureSession

Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:568 Failed to create CaptureSession

I am unable to access IMX219 IR Cut Camera (https://www.waveshare.com/wiki/IMX219-160_IR-CUT_Camera)
with Jetson Nano. I have installed the camera making sure that the FFC Cable is properly connected. I also confirmed with ls/dev/video*
Please help me in figuring out what is actually the issue.

nano@nano-desktop:~$ ls /dev/video*
/dev/video0

Whenever I run the Gstreamer pipeline. I found below error

nano@nano-desktop:~$ gst-launch-1.0 nvarguscamerasrc sensor_id=0 ! \

‘video/x-raw(memory:NVMM),width=1920, height=1080, framerate=30/1’ !
nvvidconv flip-method=0 ! ‘video/x-raw,width=960, height=540’ !
nvvidconv ! nvegltransform ! nveglglessink -e

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;
Setting pipeline to PLAYING …
New clock: GstSystemClock
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:568 Failed to create CaptureSession
Got EOS from element “pipeline0”.
Execution ended after 0:00:01.403827968
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

When I run video-viewer --input-width=1920 --input-height=1080 csi://0

nano@nano-desktop:~$ video-viewer --input-width=1920 --input-height=1080 csi://0
[gstreamer] initialized gstreamer, version 1.14.5.0
[gstreamer] gstCamera – attempting to create device csi://0
[gstreamer] gstCamera pipeline string:
[gstreamer] nvarguscamerasrc sensor-id=0 ! video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, framerate=30/1, format=(string)NV12 ! nvvidconv flip-method=2 ! video/x-raw ! appsink name=mysink
[gstreamer] gstCamera successfully created device csi://0
[video] created gstCamera from csi://0

gstCamera video options:

– URI: csi://0
- protocol: csi
- location: 0
– deviceType: csi
– ioType: input
– codec: raw
– width: 1920
– height: 1080
– frameRate: 30.000000
– bitRate: 0
– numBuffers: 4
– zeroCopy: true
– flipMethod: rotate-180
– loop: 0
– rtspLatency 2000

[OpenGL] glDisplay – X screen 0 resolution: 1920x1080
[OpenGL] glDisplay – X window resolution: 1920x1080
[OpenGL] glDisplay – display device initialized (1920x1080)
[video] created glDisplay from display://0

glDisplay video options:

– URI: display://0
- protocol: display
- location: 0
– deviceType: display
– ioType: output
– codec: raw
– width: 1920
– height: 1080
– frameRate: 0.000000
– bitRate: 0
– numBuffers: 4
– zeroCopy: true
– flipMethod: none
– loop: 0
– rtspLatency 2000

[gstreamer] opening gstCamera for streaming, transitioning pipeline to GST_STATE_PLAYING
[gstreamer] gstreamer changed state from NULL to READY ==> mysink
[gstreamer] gstreamer changed state from NULL to READY ==> capsfilter1
[gstreamer] gstreamer changed state from NULL to READY ==> nvvconv0
[gstreamer] gstreamer changed state from NULL to READY ==> capsfilter0
[gstreamer] gstreamer changed state from NULL to READY ==> nvarguscamerasrc0
[gstreamer] gstreamer changed state from NULL to READY ==> pipeline0
[gstreamer] gstreamer changed state from READY to PAUSED ==> capsfilter1
[gstreamer] gstreamer changed state from READY to PAUSED ==> nvvconv0
[gstreamer] gstreamer changed state from READY to PAUSED ==> capsfilter0
[gstreamer] gstreamer stream status CREATE ==> src
[gstreamer] gstreamer changed state from READY to PAUSED ==> nvarguscamerasrc0
[gstreamer] gstreamer changed state from READY to PAUSED ==> pipeline0
[gstreamer] gstreamer message new-clock ==> pipeline0
[gstreamer] gstreamer stream status ENTER ==> src
[gstreamer] gstreamer changed state from PAUSED to PLAYING ==> capsfilter1
[gstreamer] gstreamer changed state from PAUSED to PLAYING ==> nvvconv0
[gstreamer] gstreamer changed state from PAUSED to PLAYING ==> capsfilter0
[gstreamer] gstreamer changed state from PAUSED to PLAYING ==> nvarguscamerasrc0
[gstreamer] gstreamer message stream-start ==> pipeline0
[gstreamer] gstDecoder – failed to retrieve next image buffer
video-viewer: failed to capture video frame
[gstreamer] gstDecoder – failed to retrieve next image buffer
video-viewer: failed to capture video frame
[gstreamer] gstDecoder – failed to retrieve next image buffer
video-viewer: failed to capture video frame

Need to dump the device tree to check the context of tegra-camera-platform{} special for the devname
Alos check if v4l2-ctl able capture by below command.

v4l2-ctl --stream-mmap -c bypass_mode=0

Dear Shanon,

Thank you for your response.

I’m a newbie to this. Can you please explain me your solution in detail so that i can understand and execute easily.

Dear Shanon,

Im a newbie to linux aswell as jetson nano …can you please guide me how to dump the tree for my camera imx219 IR cut

Dump device tree by below command.

sudo dtc -I fs -O dts -o extracted_proc.dts /proc/device-tree

nano@nano-desktop:~$ v4l2-ctl --stream-mmap -c bypass_mode=0
VIDIOC_REQBUFS: failed: Device or resource busy

nano@nano-desktop:~$ sudo dtc -I fs -O dts -o extracted_proc.dts /proc/device-tree
[sudo] password for nano:
extracted_proc.dts: Warning (unit_address_vs_reg): Node /reserved-memory/fb0_carveout has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /reserved-memory/ramoops_carveout has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /reserved-memory/fb1_carveout has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /reserved-memory/iram-carveout has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ptm has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/admaif@0x702d0000 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/amx@702d3100 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/afc@702d7300 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/i2s@702d1000 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/iqc@702de000 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/i2s@702d1300 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/dmic@702d4200 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/adx@702d3900 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/mvc@702da000 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/sfc@702d2400 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/amx@702d3000 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/afc@702d7200 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/afc@702d7500 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/i2s@702d1200 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/dmic@702d4100 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/amixer@702dbb00 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/sfc@702d2000 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/ope@702d8400 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/adx@702d3800 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/iqc@702de200 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/mvc@702da200 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/sfc@702d2600 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/afc@702d7100 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/ope@702d8000 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/afc@702d7400 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/i2s@702d1100 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/dmic@702d4000 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/i2s@702d1400 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/sfc@702d2200 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/spkprot@702d8c00 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /ahub/afc@702d7000 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /clock has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /lens_imx219@RBPCV2 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /gpu has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /extcon/usb_otg has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /camera-pcl/dpd/csie has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /camera-pcl/dpd/csic has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /camera-pcl/dpd/csia has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /camera-pcl/dpd/csif has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /camera-pcl/dpd/csid has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /camera-pcl/dpd/csib has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /adma@702e2000 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /usb_cd has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /eeprom-manager/bus@0 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /eeprom-manager/bus@1 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /tegra_cec has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /soctherm@0x700E2000/throttle_dev@gpu_high has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /soctherm@0x700E2000/throttle@critical has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /soctherm@0x700E2000/fuse_war@fuse_rev_0_1 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /soctherm@0x700E2000/throttle@heavy has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /soctherm@0x700E2000/throttle_dev@cpu_high has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /soctherm@0x700E2000/fuse_war@fuse_rev_2 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /chosen/plugin-manager/ids/connection/i2c@7000c500 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /chosen/plugin-manager/ids/connection/i2c@7000c500/module@0x50 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /aconnect@702c0000 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /aconnect@702c0000/ahub has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /aconnect@702c0000/ahub/ope@702d8400/mbdrc@702d8600 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /aconnect@702c0000/ahub/ope@702d8400/peq@702d8500 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /aconnect@702c0000/ahub/mvc@0x702da200 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /aconnect@702c0000/ahub/ope@702d8000/mbdrc@702d8200 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /aconnect@702c0000/ahub/ope@702d8000/peq@702d8100 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /aconnect@702c0000/adsp has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /sata@70020000 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /external-memory-controller@7001b000/emc-table@0 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /external-memory-controller@7001b000/emc-table@0/emc-table@1600000 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /external-memory-controller@7001b000/emc-table@0/emc-table@204000 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /external-memory-controller@7001b000/emc-table@0/emc-table-derated@204000 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /external-memory-controller@7001b000/emc-table@0/emc-table-derated@1600000 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /host1x has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /host1x/nvcsi/channel@0/ports/port@1/endpoint@1 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /host1x/nvcsi/channel@0/ports/port@0/endpoint@0 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /host1x/nvcsi/channel@1/ports/port@1/endpoint@3 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /host1x/nvcsi/channel@1/ports/port@0/endpoint@2 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /host1x/nvjpg has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /host1x/dsi has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /host1x/dpaux has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /host1x/tsec has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /host1x/sor1 has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /host1x/nvenc has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /host1x/sor has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /host1x/sor/dp-display/dp-lt-settings/lt-setting@2 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /host1x/sor/dp-display/dp-lt-settings/lt-setting@0 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /host1x/sor/dp-display/dp-lt-settings/lt-setting@1 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /host1x/vic has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /host1x/vi has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /host1x/dpaux1 has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /host1x/tsecb has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /host1x/nvdec has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /i2c@7000c500/battery-charger@6b has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /mc has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /mipical has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /i2c@7000d000/max77620@3c/pinmux@0 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /i2c@7000d000/max77620@3c/fps/fps0 has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /i2c@7000d000/max77620@3c/fps/fps1 has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /i2c@7000d000/max77620@3c/fps/fps2 has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /iommu has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /dfll-max77621@70110000 has a unit name, but no reg property
extracted_proc.dts: Warning (unit_address_vs_reg): Node /rtc has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /interrupt-controller has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (unit_address_vs_reg): Node /mselect has a reg or ranges property, but no unit name
extracted_proc.dts: Warning (pci_bridge): Node /pcie@1003000/pci@2,0 missing bus-range for PCI bridge
extracted_proc.dts: Warning (pci_bridge): Node /pcie@1003000/pci@1,0 missing bus-range for PCI bridge
extracted_proc.dts: Warning (unit_address_format): Failed prerequisite ‘pci_bridge’
extracted_proc.dts: Warning (pci_device_reg): Failed prerequisite ‘pci_bridge’
extracted_proc.dts: Warning (pci_device_bus_num): Failed prerequisite ‘pci_bridge’
extracted_proc.dts: Warning (simple_bus_reg): Node /extcon/usb_otg simple-bus unit address format error, expected “1”
extracted_proc.dts: Warning (simple_bus_reg): Node /extcon/disp-state missing or empty reg/ranges property
extracted_proc.dts: Warning (simple_bus_reg): Node /mods-simple-bus/mods-clocks missing or empty reg/ranges property
extracted_proc.dts: Warning (simple_bus_reg): Node /host1x/nvcsi missing or empty reg/ranges property
extracted_proc.dts: Warning (simple_bus_reg): Node /host1x/nvjpg simple-bus unit address format error, expected “54380000”
extracted_proc.dts: Warning (simple_bus_reg): Node /host1x/dsi simple-bus unit address format error, expected “54300000”
extracted_proc.dts: Warning (simple_bus_reg): Node /host1x/dpaux simple-bus unit address format error, expected “545c0000”
extracted_proc.dts: Warning (simple_bus_reg): Node /host1x/tsec simple-bus unit address format error, expected “54500000”
extracted_proc.dts: Warning (simple_bus_reg): Node /host1x/sor1 simple-bus unit address format error, expected “54580000”
extracted_proc.dts: Warning (simple_bus_reg): Node /host1x/nvenc simple-bus unit address format error, expected “544c0000”
extracted_proc.dts: Warning (simple_bus_reg): Node /host1x/sor simple-bus unit address format error, expected “54540000”
extracted_proc.dts: Warning (simple_bus_reg): Node /host1x/vic simple-bus unit address format error, expected “54340000”
extracted_proc.dts: Warning (simple_bus_reg): Node /host1x/vi-bypass missing or empty reg/ranges property
extracted_proc.dts: Warning (simple_bus_reg): Node /host1x/vi simple-bus unit address format error, expected “54080000”
extracted_proc.dts: Warning (simple_bus_reg): Node /host1x/vi/ports missing or empty reg/ranges property
extracted_proc.dts: Warning (simple_bus_reg): Node /host1x/dpaux1 simple-bus unit address format error, expected “54040000”
extracted_proc.dts: Warning (simple_bus_reg): Node /host1x/tsecb simple-bus unit address format error, expected “54100000”
extracted_proc.dts: Warning (simple_bus_reg): Node /host1x/nvdec simple-bus unit address format error, expected “54480000”
extracted_proc.dts: Warning (simple_bus_reg): Node /regulators/regulator@14 simple-bus unit address format error, expected “e”
extracted_proc.dts: Warning (simple_bus_reg): Node /regulators/regulator@10 simple-bus unit address format error, expected “a”
extracted_proc.dts: Warning (simple_bus_reg): Node /regulators/regulator@15 simple-bus unit address format error, expected “f”
extracted_proc.dts: Warning (gpios_property): property ‘gpio’ size (15) is invalid, expected multiple of 4 in node /symbols

You need check the dump file(extracted_proc.dts)
The v4l2-ctl command get resource busy. Reboot the device and try again.

Thanks alot for your quick response. Unfortunately, I am unable to understand how to check the dump.file.

Also, i reboot my nano still resource is busy.

I would suggest consult with vendor to get help. Maybe need customized driver and device tree for this sensor board.

I wonder ! , because this IMX219 is from Waveshare and it is supported on your website.

Suppose support RP V2 IMX219 as this for don’t know why Native driver have problem for Waveshare’s HW design.

ok thank you . i have switched to another camera …now working perfectly

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