Closed punov closed 9 months ago
More to add:
with skip_4k
option, it writes only temp 252 byte files to USB stick,
if there's no skip_4k
- it writes 2K images only to USB, but we expect having 4K
Shared with Charles. But here's some info. Charles asked me to run: journalctl -u camera-bridge
Josh K ran it. It’s hard to copy stuff out of the app. But here’s what I’m seeing in the logs
2023-09-21T21:13:37.940Z [log] 'Running command', ' journalctl -u camera-bridge'
2023-09-21T21:13:38.160Z [log] [Instrumentation] record DashcamDop added, size: 234, total: 22, highwater: 20, offline: 0
2023-09-21T21:13:38.287Z [log] [Instrumentation] record DashcamFps added, size: 10, total: 23, highwater: 20, offline: 0
2023-09-21T21:13:38.338Z [log] [Instrumentation] record DashcamMotionModelReport added, size: 5, total: 24, highwater: 20, offline: 0
2023-09-21T21:13:38.532Z [log] ===== EXECUTED FROM DEBUG =====
2023-09-21T21:13:38.533Z [log] Sep 21 16:48:51 dashcam-a69b7e13 systemd[1]: Starting Camera Bridge...
Sep 21 16:48:51 dashcam-a69b7e13 systemd[1]: Started Camera Bridge.
Sep 21 16:48:52 dashcam-a69b7e13 sh[711]: config override not found: /mnt/data/camera_bridge_config.json try to load: camera_bridge_config.json
Sep 21 16:48:52 dashcam-a69b7e13 sh[711]: Loading options from: camera_bridge_config.json
Sep 21 16:48:52 dashcam-a69b7e13 sh[711]: Initializing sizes..
Sep 21 16:48:52 dashcam-a69b7e13 sh[711]: Opening downsample stream at /tmp/recording/pic/
Sep 21 16:48:52 dashcam-a69b7e13 sh[711]: [0:00:18.090392210] [711] INFO Camera camera_manager.cpp:299 libcamera v0.0.0+519-6cc9f474-dirty (2023-09-02T01:21:22+00:00)
Sep 21 16:48:52 dashcam-a69b7e13 sh[711]: [0:00:18.192574080] [717] INFO RPI raspberrypi.cpp:1481 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
Sep 21 16:48:52 dashcam-a69b7e13 sh[711]: [0:00:18.194277543] [711] INFO Camera camera.cpp:1028 configuring streams: (0) 4056x2048-YUV420
Sep 21 16:48:52 dashcam-a69b7e13 sh[711]: [0:00:18.195409673] [717] INFO RPI raspberrypi.cpp:853 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 4056x3040-SRGGB12_1X12 - Selected unicam format: 4056x3040-pRCC
Sep 21 16:48:53 dashcam-a69b7e13 sh[711]: Starting Stream
Sep 21 16:48:54 dashcam-a69b7e13 sh[711]: Failed to write file
Sep 21 16:48:54 dashcam-a69b7e13 sh[711]: Failed to write file```
….and this continues line after line after line…
then:
```Sep 21 16:50:32 dashcam-a69b7e13 sh[711]: Exception!
Sep 21 16:50:32 dashcam-a69b7e13 sh[711]: failed to write latest data in file: latest.txt
Sep 21 20:43:33 dashcam-a69b7e13 systemd[1]: Stopping Camera Bridge...
Sep 21 20:43:33 dashcam-a69b7e13 systemd[1]: camera-bridge.service: Deactivated successfully.
Sep 21 20:43:33 dashcam-a69b7e13 systemd[1]: Stopped Camera Bridge.
Sep 21 20:43:33 dashcam-a69b7e13 systemd[1]: camera-bridge.service: Consumed 2h 23min 31.304s CPU time.
Sep 21 20:43:33 dashcam-a69b7e13 systemd[1]: Starting Camera Bridge...
Sep 21 20:43:33 dashcam-a69b7e13 systemd[1]: Started Camera Bridge.
Sep 21 20:43:33 dashcam-a69b7e13 sh[49634]: config override not found: /mnt/data/camera_bridge_config.json try to load: camera_bridge_config.json
Sep 21 20:43:33 dashcam-a69b7e13 sh[49634]: Loading options from: camera_bridge_config.json
Sep 21 20:43:33 dashcam-a69b7e13 sh[49634]: Initializing sizes..
Sep 21 20:43:33 dashcam-a69b7e13 sh[49634]: Opening downsample stream at /tmp/recording/pic/
Sep 21 20:43:33 dashcam-a69b7e13 sh[49634]: [3:54:58.978673873] [49634] INFO Camera camera_manager.cpp:299 libcamera v0.0.0+519-6cc9f474-dirty (2023-09-02T01:21:22+00:00)
Sep 21 20:43:33 dashcam-a69b7e13 sh[49634]: [3:54:59.043351835] [49642] INFO RPI raspberrypi.cpp:1481 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
Sep 21 20:43:33 dashcam-a69b7e13 sh[49634]: [3:54:59.044235595] [49634] INFO Camera camera.cpp:1028 configuring streams: (0) 4056x2048-YUV420
Sep 21 20:43:33 dashcam-a69b7e13 sh[49634]: [3:54:59.044680317] [49642] INFO RPI raspberrypi.cpp:853 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 4056x3040-SRGGB12_1X12 - Selected unicam format: 4056x3040-pRCC
Sep 21 20:43:34 dashcam-a69b7e13 sh[49634]: Starting Stream`
[5:25](https://dfuse-io.slack.com/archives/DA89YU0AC/p1695331554427449)
and then ends with this I think (but this may be part of the other cam too… it’s all mixed togher)
Sep 21 20:45:12 dashcam-a69b7e13 sh[49634]: Failed to write file
Sep 21 20:45:12 dashcam-a69b7e13 sh[49634]: Failed to write file
Sep 21 20:45:12 dashcam-a69b7e13 sh[49634]: Exception!
Sep 21 20:45:12 dashcam-a69b7e13 sh[49634]: failed to write latest data in file: latest.txt
2023-09-21T21:13:38.594Z [log] =====+++++++=====
2023-09-21T21:13:38.643Z [log] [Instrumentation] record DashcamPackedFrameKm added, size: 1180451, total: 25, highwater: 20, offline: 0
2023-09-21T21:13:38.860Z [log] downloading Metadata:km_20230921_164202_22_0.json
2023-09-21T21:13:39.102Z [log] '[SQLITE] Length:', 16
2023-09-21T21:13:39.103Z [log] [SQLITE] 16 Instrumentation records fetched
2023-09-21T21:13:39.106Z [log] 'https://hivemapper.com/', '/stats/records?stream=hdc-telemetry', undefined
2023-09-21T21:13:39.280Z [log] '[Bundle] Begin', 'km_20230921_164202_22_0'
2023-09-21T21:13:39.290Z [log] [SQLITE] Updated 1 rows
2023-09-21T21:13:39.291Z [log] '[Bundle] Finished', 'km_20230921_164202_22_0'
2023-09-21T21:13:39.304Z [log] [SQLITE] Creating 22 frames
2023-09-21T21:13:39.455Z [log] [SQLITE] Updated 1 rows
2023-09-21T21:13:39.464Z [log] downloading Metadata:km_20230921_164132_57_0.json
2023-09-21T21:13:39.472Z [log] Downloading ML metadata
2023-09-21T21:13:39.487Z [log] [Instrumentation] record FrameKmStatus.Bundled added, size: 2819709, total: 17, highwater: 20, offline: 25
2023-09-21T21:13:39.522Z [log] SF: Status: 404: response: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /public/ml_metadata/km_20230921_204435_96_0.json</pre>
</body>
</html>
url: /ml_metadata/km_20230921_204435_96_0.json
2023-09-21T21:13:39.523Z [log] '[Downloads] Finished', 'km_20230921_204435_96_0'
Josh Kauffman | StreamingFast.io— Today at 6:10 AM Didn't have much time to test this morning. Update took a bit to happen from what I could tell. Plugged in USB stick. It created the recording folder by itself. It took images but it stopped taking them after 6 minutes for some reason. (took images from 1202 pm UTC to 1208 UTC if you wanted to check logs for something).
Camera: HDC Service: camera-bridge Version: 96da53a93540871e909d45f4f3809a0698b3c4fc