diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index fc7f878a..420d064b 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -712,7 +712,17 @@ void scenes::stream::render(const XrFrameState & frame_state) if (imgui_ctx and plots_visible) layers_base.push_back(reinterpret_cast(&imgui_layer)); - session.end_frame(frame_state.predictedDisplayTime, layers_base); + try + { + session.end_frame(frame_state.predictedDisplayTime, layers_base); + } + catch (std::system_error & e) + { + if (e.code().category() == xr::error_category() and e.code().value() == XR_ERROR_POSE_INVALID) + spdlog::info("Invalid pose submitted"); + else + throw; + } // Network operations may be blocking, do them once everything was submitted for (const auto & handle: blit_handles)