I have the following pipeline:
pipeline = std::make_unique<dai::Pipeline>();
color_camera = pipeline->create<dai::node::ColorCamera>();
encoder = pipeline->create<dai::node::VideoEncoder>();
video_out = pipeline->create<dai::node::XLinkOut>();
control = pipeline->create<dai::node::XLinkIn>();
control->setStreamName("ctrl");
video_out->setStreamName("h264");
color_camera->setInterleaved(true);
color_camera->setImageOrientation(
dai::CameraImageOrientation::ROTATE_180_DEG);
color_camera->setBoardSocket(dai::CameraBoardSocket::RGB);
if (width > 1920 || height > 1080) {
color_camera->setResolution(
dai::ColorCameraProperties::SensorResolution::THE_4_K);
} else {
color_camera->setResolution(
dai::ColorCameraProperties::SensorResolution::THE_1080_P);
}
color_camera->setVideoSize(width, height);
color_camera->setFps(fps);
color_camera->initialControl.setAutoFocusMode(
dai::CameraControl::AutoFocusMode::OFF);
encoder->setDefaultProfilePreset(fps, dai::VideoEncoderProperties::Profile::H264_MAIN);
}
gst_print("Linking depthai pipeline\n");
color_camera->video.link(encoder->input);
control->out.link(color_camera->inputControl);
encoder->bitstream.link(video_out->input);
try {
device = std::make_unique<dai::Device>(*pipeline, info);
device->setSystemInformationLoggingRate(0.2f);
device->setLogOutputLevel(dai::LogLevel::TRACE);
device->setLogLevel(dai::LogLevel::TRACE);
queue_out = device->getOutputQueue("h264");
control_queue_in = device->getInputQueue("ctrl");
} catch (std::exception &e) {
cout << "An exception occurred. Exception Nr. " << e.what() << '\n';
return false;
}
And after few hours the output of queue_out inside pipeline stops and the cpu usage get lower to 0.3 %. And no error is shown in console. What can be the problem? And how to debug it? Thanks
...
[14442C1001DBAACE00] [54787.849] [system] [info] Cpu Usage - LeonOS 12.86%, LeonRT: 3.39%
[14442C1001DBAACE00] [54792.850] [system] [info] Memory Usage - DDR: 106.38 / 357.38 MiB, CMX: 2.17 / 2.50 MiB, LeonOS Heap: 21.13 / 78.54 MiB, LeonRT Heap: 3.80 / 25.71 MiB
[14442C1001DBAACE00] [54792.850] [system] [info] Temperatures - Average: 51.96 °C, CSS: 53.55 °C, MSS 51.36 °C, UPA: 50.92 °C, DSS: 52.02 °C
[14442C1001DBAACE00] [54792.850] [system] [info] Cpu Usage - LeonOS 12.97%, LeonRT: 3.72%
[14442C1001DBAACE00] [54797.851] [system] [info] Memory Usage - DDR: 106.38 / 357.38 MiB, CMX: 2.17 / 2.50 MiB, LeonOS Heap: 21.13 / 78.54 MiB, LeonRT Heap: 3.80 / 25.71 MiB
[14442C1001DBAACE00] [54797.851] [system] [info] Temperatures - Average: 52.40 °C, CSS: 53.33 °C, MSS 52.24 °C, UPA: 51.36 °C, DSS: 52.68 °C
[14442C1001DBAACE00] [54797.851] [system] [info] Cpu Usage - LeonOS 12.86%, LeonRT: 3.39%
[14442C1001DBAACE00] [54802.852] [system] [info] Memory Usage - DDR: 106.38 / 357.38 MiB, CMX: 2.17 / 2.50 MiB, LeonOS Heap: 21.13 / 78.54 MiB, LeonRT Heap: 3.80 / 25.71 MiB
[14442C1001DBAACE00] [54802.852] [system] [info] Temperatures - Average: 50.92 °C, CSS: 51.80 °C, MSS 50.25 °C, UPA: 50.47 °C, DSS: 51.14 °C
[14442C1001DBAACE00] [54802.852] [system] [info] Cpu Usage - LeonOS 0.26%, LeonRT: 0.16%
[14442C1001DBAACE00] [54807.853] [system] [info] Memory Usage - DDR: 106.38 / 357.38 MiB, CMX: 2.17 / 2.50 MiB, LeonOS Heap: 21.13 / 78.54 MiB, LeonRT Heap: 3.80 / 25.71 MiB
[14442C1001DBAACE00] [54807.853] [system] [info] Temperatures - Average: 49.97 °C, CSS: 51.14 °C, MSS 50.25 °C, UPA: 49.59 °C, DSS: 48.92 °C
[14442C1001DBAACE00] [54807.853] [system] [info] Cpu Usage - LeonOS 0.54%, LeonRT: 0.14%
[14442C1001DBAACE00] [54812.854] [system] [info] Memory Usage - DDR: 106.38 / 357.38 MiB, CMX: 2.17 / 2.50 MiB, LeonOS Heap: 21.13 / 78.54 MiB, LeonRT Heap: 3.80 / 25.71 MiB
[14442C1001DBAACE00] [54812.854] [system] [info] Temperatures - Average: 49.97 °C, CSS: 51.14 °C, MSS 49.37 °C, UPA: 49.14 °C, DSS: 50.25 °C
[14442C1001DBAACE00] [54812.854] [system] [info] Cpu Usage - LeonOS 0.22%, LeonRT: 0.15%
[14442C1001DBAACE00] [54817.855] [system] [info] Memory Usage - DDR: 106.38 / 357.38 MiB, CMX: 2.17 / 2.50 MiB, LeonOS Heap: 21.13 / 78.54 MiB, LeonRT Heap: 3.80 / 25.71 MiB
[14442C1001DBAACE00] [54817.855] [system] [info] Temperatures - Average: 49.64 °C, CSS: 50.47 °C, MSS 48.92 °C, UPA: 48.92 °C, DSS: 50.25 °C
...
Architecture: armv7l
Docker container: arm32v7/debian:bullseye-slim
DepthAi version: commit - c2ccafd5be7c2b0624addaca62f6c52935c9bdc5 main branch from 2. february 2022