Hi.
After the last update 0.0.28 DVL version we have had some problems with the camera and webgui.
Current git: revert-point-5-g6abbfbe
The error from video script is:
Additional debug info:
gstv4l2bufferpool.c(1058): gst_v4l2_buffer_pool_poll (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
poll error 1: Invalid argument (22)
Execution ended after 0:00:02.312464647
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
It repeating the same over and over again. The camere feed is on and off in QGC.
The webui stopped also seems to be related to the camera problem.
When i started it:
2021-09-17T12:35:58+0000 <log> index.js:13 (Object.<anonymous>) COMPANION_DIR /home/pi/companion
2021-09-17T12:35:58+0000 <log> index.js:14 (Object.<anonymous>) HOME_DIR /home/pi
2021-09-17T12:35:59+0000 <log> index.js:114 (Object.<anonymous>) error loading video profiles from file { [Error: ENOENT: no such file or directory, open '/home/pi/camera-profiles']
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/home/pi/camera-profiles' }
2021-09-17T12:35:59+0000 <log> index.js:125 (Object.<anonymous>) error loading file { [Error: ENOENT: no such file or directory, open '/home/pi/camera-settings']
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/home/pi/camera-settings' }
And when it crashed.
2021-09-17T12:37:37+0000 <log> index.js:1275 (Socket.<anonymous>) get companion version
2021-09-17T12:37:37+0000 <log> index.js:1277 () nullrevert-point-5-g6abbfbe
2021-09-17T12:37:37+0000 <log> index.js:1487 () The file was loaded!
2021-09-17T12:37:37+0000 <log> index.js:823 (Socket.<anonymous>) get v4l2 cameras
2021-09-17T12:37:37+0000 <log> index.js:830 () getting control: Brightness int
/home/pi/companion/br-webui/index.js:831
control.value = cam.controlGet(control.id);
^
Error: CAMERA ERROR [VIDIOC_G_CTRL] 19 No such device
at Error (native)
at /home/pi/companion/br-webui/index.js:831:27
at Array.forEach (native)
at /home/pi/companion/br-webui/index.js:828:17
at Array.forEach (native)
at Socket.<anonymous> (/home/pi/companion/br-webui/index.js:826:12)
at emitNone (events.js:80:13)
at Socket.emit (events.js:179:7)
at /home/pi/companion/br-webui/node_modules/socket.io/lib/socket.js:503:12
at nextTickCallbackWith0Args (node.js:453:9)