Im trying to run a gstreamer command but Im getting failed timeouts
nvarguscamerasrc sensor-id=1 sensor-mode=2 do-timestamp=true wbmode=1 ee-mode=0 tnr-mode=2 tnr-strength=-0.2 gainrange='1 5' ispdigitalgainrange='1 6' aeantibanding=3 ! video/x-raw(memory:NVMM), framerate=20/1, format=(string)NV12 width=(int)1920, height=(int)1080 ! nvvidconv interpolation-method=5 ! video/x-raw, format=BGRx, width=960, height=540 ! videoconvert ! appsink max-buffers=1 drop=True sync=false
(Argus) Error Timeout: (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
(Argus) Error Timeout: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 87)
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:689 Failed to create OutputStream
Im using opencv to launch the gstreamer pipe:
cv::VideoCapture cap0(gst_pipe.c_str(), cv::CAP_GSTREAMER);
if (!cap0.isOpened()) {
ROS_ERROR("%s: Failed to create cv::VideoCapture", camera_topic_hint.c_str());
cap0.release();
exit(-1);
}
cap0.set(cv::CAP_PROP_BUFFERSIZE, 1);
Whats more scary is the output from dmesg
[ 213.564919] ------------[ cut here ]------------
[ 213.565147] WARNING: CPU: 5 PID: 8216 at /media/nvme-rh/redhawk-linux/nvgpu/drivers/gpu/nvgpu/common/mm/nvgpu_mem.c:236 nvgpu_mem_wr32+0x74/0x80 [nvgpu]
[ 213.565203] Modules linked in: fuse xt_conntrack ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink xt_addrtype iptable_filter iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat zram nf_conntrack br_netfilter overlay vtop can_raw can rcim_emu rcim uvcvideo ar0234 drm pwm_fan generic_pwm_tachometer tegra_oc_event spi_sc18is602 mttcan can_dev max9
295 max96712 serdes binfmt_misc nvgpu bluedroid_pm rfkill ip_tables x_tables ext4 jbd2 mbcache hid_sensor_custom hid_sensor_hub btrfs xor raid6_pq rtc_tegra igb eqos xhci_tegra ptp hwmon xhci_hcd pps_core
[ 213.565212] CPU: 5 PID: 8216 Comm: DeFogStage Not tainted 4.9.201-rt134-r32.5.1-tegra-RedHawk-7.5.5-custom #1
[ 213.565214] Hardware name: jetson-xavier (DT)
[ 213.565216] task: ffffffc744d6d400 task.stack: ffffffc774608000
[ 213.565432] PC is at nvgpu_mem_wr32+0x74/0x80 [nvgpu]
[ 213.565649] LR is at gk20a_fifo_setup_userd+0x98/0x1b0 [nvgpu]
[ 213.565652] pc : [<ffffff8000e0dbe4>] lr : [<ffffff8000e307b0>] pstate: 60400145
[ 213.565653] sp : ffffffc77460bc00
[ 213.565657] x29: ffffffc77460bc00 x28: 0000000000000012
[ 213.565660] x27: 0000000000000013 x26: 0000000000000014
[ 213.565663] x25: 0000000000000016 x24: 0000000000000017
[ 213.565665] x23: 0000000000000018 x22: 0000000000000022
[ 213.565668] x21: 0000000000000023 x20: ffffff8012263918
[ 213.565671] x19: ffffff8012263918 x18: 0000007fb7deca70
[ 213.565674] x17: 0000007fb7d61530 x16: ffffff8008213fc0
[ 213.565676] x15: ffffffbf1c1cb800 x14: 000000000000002d
[ 213.565679] x13: 0000000000000001 x12: ffffff8000ecdeb8
[ 213.565682] x11: 000000000000000b x10: 0101010101010101
[ 213.565685] x9 : fffffffffffffffc x8 : ffffffc7d7550458
[ 213.565688] x7 : 0000000000001000 x6 : 0000001f01660000
[ 213.565691] x5 : 0000000000000000 x4 : 0000000000000011
[ 213.565694] x3 : 0000000000000001 x2 : 0000000000000010
[ 213.565697] x1 : ffffff8012263918 x0 : 0000000000000000
[ 213.565699] ---[ end trace 0000000000000002 ]---
[ 213.565701] Call trace:
[ 213.565921] [<ffffff8000e0dbe4>] nvgpu_mem_wr32+0x74/0x80 [nvgpu]
[ 213.566139] [<ffffff8000e307b0>] gk20a_fifo_setup_userd+0x98/0x1b0 [nvgpu]
[ 213.566356] [<ffffff8000e22cdc>] nvgpu_channel_setup_bind+0x2cc/0x6f8 [nvgpu]
[ 213.566570] [<ffffff8000de6534>] gk20a_channel_ioctl+0x924/0xd98 [nvgpu]
[ 213.566575] [<ffffff800821351c>] do_vfs_ioctl+0xb4/0xb58
[ 213.566577] [<ffffff8008214038>] SyS_ioctl+0x78/0x98
[ 213.566582] [<ffffff80080833dc>] __sys_trace_return+0x0/0x4
[ 213.566634] Unable to handle kernel NULL pointer dereference at virtual address 00000040
[ 213.567073] Mem abort info:
[ 213.567101] ESR = 0x96000046
[ 213.567133] Exception class = DABT (current EL), IL = 32 bits
[ 213.567210] SET = 0, FnV = 0
[ 213.567240] EA = 0, S1PTW = 0
[ 213.567270] Data abort info:
[ 213.567297] ISV = 0, ISS = 0x00000046
[ 213.567343] CM = 0, WnR = 1
[ 213.567375] user pgtable: 4k pages, 39-bit VAs, pgd = ffffffc7bcfff000
[ 213.567456] [0000000000000040] *pgd=000000084f31e003, *pud=000000084f31e003, *pmd=0000000000000000
[ 213.567591] Internal error: Oops: 96000046 [#1] PREEMPT SMP
[ 213.567637] Modules linked in: fuse xt_conntrack ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink xt_addrtype iptable_filter iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat zram nf_conntrack br_netfilter overlay vtop can_raw can rcim_emu rcim uvcvideo ar0234 drm pwm_fan generic_pwm_tachometer tegra_oc_event spi_sc18is602 mttcan can_dev max9
295 max96712 serdes binfmt_misc nvgpu bluedroid_pm rfkill ip_tables x_tables ext4 jbd2 mbcache hid_sensor_custom hid_sensor_hub btrfs xor raid6_pq rtc_tegra igb eqos xhci_tegra ptp hwmon xhci_hcd pps_core
[ 213.567640] CPU: 5 PID: 8216 Comm: DeFogStage Tainted: G W 4.9.201-rt134-r32.5.1-tegra-RedHawk-7.5.5-custom #1
[ 213.567641] Hardware name: jetson-xavier (DT)
[ 213.567643] task: ffffffc744d6d400 task.stack: ffffffc774608000
[ 213.567857] PC is at nvgpu_mem_wr32+0x44/0x80 [nvgpu]
[ 213.568076] LR is at gk20a_fifo_setup_userd+0x98/0x1b0 [nvgpu]
[ 213.568077] pc : [<ffffff8000e0dbb4>] lr : [<ffffff8000e307b0>] pstate: 60400145
[ 213.568079] sp : ffffffc77460bc00
[ 213.568082] x29: ffffffc77460bc00 x28: 0000000000000012
[ 213.568084] x27: 0000000000000013 x26: 0000000000000014
[ 213.568087] x25: 0000000000000016 x24: 0000000000000017
[ 213.568090] x23: 0000000000000018 x22: 0000000000000022
[ 213.568092] x21: 0000000000000023 x20: ffffff8012263918
[ 213.568095] x19: ffffff8012263918 x18: 0000007fb7deca70
[ 213.568098] x17: 0000007fb7d61530 x16: ffffff8008213fc0
[ 213.568100] x15: ffffffbf1c1cb800 x14: 000000000000002d
[ 213.568103] x13: 0000000000000001 x12: ffffff8000ecdeb8
[ 213.568106] x11: 000000000000000b x10: 0101010101010101
[ 213.568108] x9 : fffffffffffffffc x8 : ffffffc7d7550458
[ 213.568111] x7 : 0000000000001000 x6 : 0000001f01660000
[ 213.568114] x5 : 0000000000000000 x4 : 0000000000000011
[ 213.568117] x3 : 0000000000000001 x2 : 0000000000000010
[ 213.568119] x1 : 0000000000000000 x0 : 0000000000000000
[ 213.568122] Process DeFogStage (pid: 8216, stack limit = 0xffffffc774608000)
[ 213.568123] Call trace:
[ 213.568336] [<ffffff8000e0dbb4>] nvgpu_mem_wr32+0x44/0x80 [nvgpu]
[ 213.568554] [<ffffff8000e307b0>] gk20a_fifo_setup_userd+0x98/0x1b0 [nvgpu]
[ 213.568771] [<ffffff8000e22cdc>] nvgpu_channel_setup_bind+0x2cc/0x6f8 [nvgpu]
[ 213.568984] [<ffffff8000de6534>] gk20a_channel_ioctl+0x924/0xd98 [nvgpu]
[ 213.568986] [<ffffff800821351c>] do_vfs_ioctl+0xb4/0xb58
[ 213.568988] [<ffffff8008214038>] SyS_ioctl+0x78/0x98
[ 213.568991] [<ffffff80080833dc>] __sys_trace_return+0x0/0x4
[ 213.722662] ---[ end trace 0000000000000003 ]---
[ 215.723416] usb 2-1.3: usb_suspend_both: status 0
[ 215.725399] usb 2-1.4: usb_suspend_both: status 0
[ 215.761393] usb 2-1: usb_suspend_both: status 0
[ 215.761622] usb usb2: usb_suspend_both: status 0
[ 215.761692] tegra-xusb 3610000.xhci: entering ELPG
[ 215.771128] tegra-xusb 3610000.xhci: entering ELPG done
This error has been persistent even after reboots.