From 5128fcd96b6db7f5358e168e180c13a5eef250ee Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 25 Jul 2023 19:42:36 +0200 Subject: [PATCH] Ignore frames with no view_info --- client/decoder/shard_accumulator.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/decoder/shard_accumulator.cpp b/client/decoder/shard_accumulator.cpp index 35ae0a2a..f9b76d65 100644 --- a/client/decoder/shard_accumulator.cpp +++ b/client/decoder/shard_accumulator.cpp @@ -321,7 +321,11 @@ void shard_accumulator::try_submit_frame(uint16_t shard_idx) decoder->push_data(payload, frame_index, false); auto feedback = current.feedback; - assert(data_shards.back()->view_info); + if (not data_shards.back()->view_info) + { + spdlog::warn("shard with end_of_frame flag has no view_info"); + return; + } feedback.received_pose = data_shards.back()->view_info->pose; // Try to extract a frame