Hi, nvteam:
When I debug my camera , I somtimes use gst-launch-1.0 to show the video.just link below
gst-launch-1.0 -ev v4l2src device=/dev/video0 ! rawvideoparse format=4 width=1920 height=1080 ! videoconvert ! fpsdisplaysink video-sink=xvimagesink sync=false
gst-launch-1.0 -ev v4l2src device=/dev/video1 ! rawvideoparse format=4 width=1920 height=1080 ! videoconvert ! fpsdisplaysink video-sink=xvimagesink sync=false
gst-launch-1.0 -ev v4l2src device=/dev/video2! rawvideoparse format=4 width=1920 height=1080 ! videoconvert ! fpsdisplaysink video-sink=xvimagesink sync=false
but if the video display for long time ,maybe 10mins or 20mins, it freeze. the fps low to 2,3
( I mean when you run the cmd, it can get the right video, but get error after 10 or 20mins)
I can’t close the gst-launch-1.0 with Ctrl +C, or kill cmd.
the dmesg show follow
[ 3142.596215] INFO: task gst-launch-1.0:3229 blocked for more than 120 seconds.
[ 3142.596443] Tainted: G W O 5.10.65-tegra #1
[ 3142.596628] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 3142.596846] task:gst-launch-1.0 state:D stack: 0 pid: 3229 ppid: 2675 flags:0x00000001
[ 3142.596852] Call trace:
[ 3142.596857] __switch_to+0x104/0x160
[ 3142.596862] __schedule+0x3d0/0x900
[ 3142.596866] schedule+0x74/0x100
[ 3142.596871] schedule_preempt_disabled+0x28/0x40
[ 3142.596876] __mutex_lock.isra.0+0x184/0x550
[ 3142.596881] __mutex_lock_slowpath+0x24/0x30
[ 3142.596885] mutex_lock+0x5c/0x70
[ 3142.596890] tegra_channel_open+0x44/0x180
[ 3142.596894] v4l2_open+0xa8/0x120
[ 3142.596900] chrdev_open+0xa8/0x1a0
[ 3142.596906] do_dentry_open+0x130/0x3a0
[ 3142.596912] vfs_open+0x38/0x50
[ 3142.596916] path_openat+0x848/0xdd0
[ 3142.596920] do_filp_open+0x84/0x110
[ 3142.596925] do_sys_openat2+0x1f4/0x2b0
[ 3142.596930] do_sys_open+0x7c/0xd0
[ 3142.596935] __arm64_sys_openat+0x2c/0x40
[ 3142.596941] el0_svc_common.constprop.0+0x7c/0x1c0
[ 3142.596946] do_el0_svc+0x34/0xa0
[ 3142.596950] el0_svc+0x1c/0x30
[ 3142.596954] el0_sync_handler+0xa8/0xb0
[ 3142.596957] el0_sync+0x16c/0x180
[ 3142.596961] INFO: task gst-launch-1.0:3249 blocked for more than 120 seconds.
[ 3142.597164] Tainted: G W O 5.10.65-tegra #1
[ 3142.597330] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 3142.597549] task:gst-launch-1.0 state:D stack: 0 pid: 3249 ppid: 3241 flags:0x00000000
[ 3142.597554] Call trace:
[ 3142.597559] __switch_to+0x104/0x160
[ 3142.597563] __schedule+0x3d0/0x900
[ 3142.597567] schedule+0x74/0x100
[ 3142.597572] schedule_preempt_disabled+0x28/0x40
[ 3142.597576] __mutex_lock.isra.0+0x184/0x550
[ 3142.597581] __mutex_lock_slowpath+0x24/0x30
[ 3142.597585] mutex_lock+0x5c/0x70
[ 3142.597590] tegra_channel_open+0x44/0x180
[ 3142.597593] v4l2_open+0xa8/0x120
[ 3142.597597] chrdev_open+0xa8/0x1a0
[ 3142.597602] do_dentry_open+0x130/0x3a0
[ 3142.597606] vfs_open+0x38/0x50
[ 3142.597610] path_openat+0x848/0xdd0
[ 3142.597614] do_filp_open+0x84/0x110
[ 3142.597619] do_sys_openat2+0x1f4/0x2b0
[ 3142.597624] do_sys_open+0x7c/0xd0
[ 3142.597629] __arm64_sys_openat+0x2c/0x40
[ 3142.597634] el0_svc_common.constprop.0+0x7c/0x1c0
[ 3142.597639] do_el0_svc+0x34/0xa0
[ 3142.597642] el0_svc+0x1c/0x30
[ 3142.597646] el0_sync_handler+0xa8/0xb0
[ 3142.597649] el0_sync+0x16c/0x180
[ 3263.426170] INFO: task gst-launch-1.0:2897 blocked for more than 604 seconds.
[ 3263.426398] Tainted: G W O 5.10.65-tegra #1
[ 3263.426578] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 3263.426792] task:gst-launch-1.0 state:D stack: 0 pid: 2897 ppid: 2667 flags:0x00000001
[ 3263.426802] Call trace:
[ 3263.426816] __switch_to+0x104/0x160
[ 3263.426827] __schedule+0x3d0/0x900
[ 3263.426832] schedule+0x74/0x100
[ 3263.426838] schedule_timeout+0x2d4/0x330
[ 3263.426843] wait_for_completion+0x88/0x110
[ 3263.426849] kthread_stop+0xa8/0x260
[ 3263.426857] vi5_channel_stop_kthreads+0x40/0x60
[ 3263.426862] vi5_channel_stop_streaming+0x50/0xc0
[ 3263.426867] tegra_channel_stop_streaming+0x38/0x60
[ 3263.426873] __vb2_queue_cancel+0x3c/0x220
[ 3263.426878] vb2_core_streamoff+0x30/0xd0
[ 3263.426884] vb2_streamoff+0x30/0x80
[ 3263.426889] vb2_ioctl_streamoff+0x54/0x60
[ 3263.426896] v4l_streamoff+0x3c/0x50
[ 3263.426901] __video_do_ioctl+0x180/0x3f0
[ 3263.426905] video_usercopy+0x27c/0x730
[ 3263.426910] video_ioctl2+0x3c/0x180
[ 3263.426913] v4l2_ioctl+0x64/0x90
[ 3263.426920] __arm64_sys_ioctl+0xa8/0xf0
[ 3263.426926] el0_svc_common.constprop.0+0x7c/0x1c0
[ 3263.426931] do_el0_svc+0x34/0xa0
[ 3263.426935] el0_svc+0x1c/0x30
[ 3263.426939] el0_sync_handler+0xa8/0xb0
[ 3263.426943] el0_sync+0x16c/0x180
[ 3263.426954] INFO: task gst-launch-1.0:3229 blocked for more than 241 seconds.
[ 3263.427182] Tainted: G W O 5.10.65-tegra #1
[ 3263.427374] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 3263.427609] task:gst-launch-1.0 state:D stack: 0 pid: 3229 ppid: 2675 flags:0x00000001
[ 3263.427615] Call trace:
[ 3263.427620] __switch_to+0x104/0x160
[ 3263.427625] __schedule+0x3d0/0x900
[ 3263.427629] schedule+0x74/0x100
[ 3263.427634] schedule_preempt_disabled+0x28/0x40
[ 3263.427638] __mutex_lock.isra.0+0x184/0x550
[ 3263.427643] __mutex_lock_slowpath+0x24/0x30
[ 3263.427647] mutex_lock+0x5c/0x70
[ 3263.427652] tegra_channel_open+0x44/0x180
[ 3263.427655] v4l2_open+0xa8/0x120
[ 3263.427661] chrdev_open+0xa8/0x1a0
[ 3263.427667] do_dentry_open+0x130/0x3a0
[ 3263.427672] vfs_open+0x38/0x50
[ 3263.427676] path_openat+0x848/0xdd0
[ 3263.427679] do_filp_open+0x84/0x110
[ 3263.427684] do_sys_openat2+0x1f4/0x2b0
[ 3263.427689] do_sys_open+0x7c/0xd0
[ 3263.427694] __arm64_sys_openat+0x2c/0x40
[ 3263.427700] el0_svc_common.constprop.0+0x7c/0x1c0
[ 3263.427705] do_el0_svc+0x34/0xa0
[ 3263.427708] el0_svc+0x1c/0x30
[ 3263.427712] el0_sync_handler+0xa8/0xb0
[ 3263.427715] el0_sync+0x16c/0x180
[ 3263.427719] INFO: task gst-launch-1.0:3249 blocked for more than 241 seconds.
[ 3263.427939] Tainted: G W O 5.10.65-tegra #1
[ 3263.428115] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 3263.428346] task:gst-launch-1.0 state:D stack: 0 pid: 3249 ppid: 3241 flags:0x00000000
[ 3263.428352] Call trace:
[ 3263.428356] __switch_to+0x104/0x160
[ 3263.428361] __schedule+0x3d0/0x900
[ 3263.428365] schedule+0x74/0x100
[ 3263.428369] schedule_preempt_disabled+0x28/0x40
[ 3263.428374] __mutex_lock.isra.0+0x184/0x550
[ 3263.428378] __mutex_lock_slowpath+0x24/0x30
[ 3263.428383] mutex_lock+0x5c/0x70
[ 3263.428387] tegra_channel_open+0x44/0x180
[ 3263.428390] v4l2_open+0xa8/0x120
[ 3263.428395] chrdev_open+0xa8/0x1a0
[ 3263.428400] do_dentry_open+0x130/0x3a0
[ 3263.428404] vfs_open+0x38/0x50
[ 3263.428408] path_openat+0x848/0xdd0
[ 3263.428412] do_filp_open+0x84/0x110
[ 3263.428416] do_sys_openat2+0x1f4/0x2b0
[ 3263.428421] do_sys_open+0x7c/0xd0
[ 3263.428426] __arm64_sys_openat+0x2c/0x40
[ 3263.428431] el0_svc_common.constprop.0+0x7c/0x1c0
[ 3263.428436] do_el0_svc+0x34/0xa0
[ 3263.428439] el0_svc+0x1c/0x30
[ 3263.428443] el0_sync_handler+0xa8/0xb0
[ 3263.428446] el0_sync+0x16c/0x180
[ 3384.256983] INFO: task gst-launch-1.0:2897 blocked for more than 724 seconds.
[ 3384.257220] Tainted: G W O 5.10.65-tegra #1
[ 3384.257405] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 3384.257640] task:gst-launch-1.0 state:D stack: 0 pid: 2897 ppid: 2667 flags:0x00000001
[ 3384.257649] Call trace:
[ 3384.257665] __switch_to+0x104/0x160
[ 3384.257677] __schedule+0x3d0/0x900
[ 3384.257682] schedule+0x74/0x100
[ 3384.257688] schedule_timeout+0x2d4/0x330
[ 3384.257693] wait_for_completion+0x88/0x110
[ 3384.257699] kthread_stop+0xa8/0x260
[ 3384.257707] vi5_channel_stop_kthreads+0x40/0x60
[ 3384.257712] vi5_channel_stop_streaming+0x50/0xc0
[ 3384.257717] tegra_channel_stop_streaming+0x38/0x60
[ 3384.257723] __vb2_queue_cancel+0x3c/0x220
[ 3384.257728] vb2_core_streamoff+0x30/0xd0
[ 3384.257734] vb2_streamoff+0x30/0x80
[ 3384.257739] vb2_ioctl_streamoff+0x54/0x60
[ 3384.257744] v4l_streamoff+0x3c/0x50
[ 3384.257749] __video_do_ioctl+0x180/0x3f0
[ 3384.257753] video_usercopy+0x27c/0x730
[ 3384.257757] video_ioctl2+0x3c/0x180
[ 3384.257761] v4l2_ioctl+0x64/0x90
[ 3384.257768] __arm64_sys_ioctl+0xa8/0xf0
[ 3384.257775] el0_svc_common.constprop.0+0x7c/0x1c0
[ 3384.257780] do_el0_svc+0x34/0xa0
[ 3384.257784] el0_svc+0x1c/0x30
[ 3384.257788] el0_sync_handler+0xa8/0xb0
[ 3384.257791] el0_sync+0x16c/0x180
so what the matter about this issus? is it the bug of system or my camera driver? how to debug?