Tool/software: Linux
Hello.
I'm working on Jacinto6 with PSDK 3.02.
When I excute command for camera preview, "Broken pipe" error is happen after some minute.(It crashed within 20min of operation)
The operating time always seems be the same(usually 10min, sometime 20min)
I just change "for loop" to "while loop" of capture_loop() of dmabuftest.c to remove preview time limit.
It working fine in kms mode(dmabuftest -s 32:1920x1200 -d /dev/video1 -c 1280x720@YUYV)
I can't not judge, this error is from wayland framework or dmabuftest application.
Could you check it or make me understand about this issue?
Error message:
./testcam.sh
Opening Display..
wayland display opened
wayland registries obtained
Opening V4L2..
Exported buffer fd = 18
Exported buffer fd = 19
Exported buffer fd = 20
Exported buffer fd = 21
Exported buffer fd = 22
Exported buffer fd = 23
Error sending request: Broken pipe
./testcam.sh: line 1: 21389 Aborted (core dumped) ./dmabuftest -w 1280x720 -d /dev/video1 -c 1280x720@YUYV
Command:
The TI developement guide include "--pos" option but it looks not support now
"dmabuftest -w 640x480 --pos 100x400 /dev/video1 -c 1280x720@YUYV"
so, I used below command
dmabuftest -w 640x480 -d /dev/video1 -c 1280x720@YUYV
Modification:
diff --git a/dmabuftest.c b/dmabuftest.c
index bebe9dd..eb0bb79 100644
--- a/dmabuftest.c
+++ b/dmabuftest.c
@@ -76,7 +76,7 @@ capture_loop(void *arg)
return NULL;
}
- for (i = 1; i < CNT; i++) {
+ while(1) {
capt = v4l2_dqbuf(v4l2);
ret = disp_post_vid_buffer(disp, capt,