From 200a947a1ae8e6386b605c4f628d4cec166e4b9e Mon Sep 17 00:00:00 2001 From: kinect-bot Date: Wed, 25 Nov 2026 15:50:05 -0500 Subject: [PATCH] fix(windows-nui): keep producing into ring while a frame is outstanding (removes deadlock that froze delivery after 1 depth frame) --- fallback/windows-nui/src/sensor.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fallback/windows-nui/src/sensor.cpp b/fallback/windows-nui/src/sensor.cpp index 39671e6..ae8cca9 100644 --- a/fallback/windows-nui/src/sensor.cpp +++ b/fallback/windows-nui/src/sensor.cpp @@ -407,7 +407,13 @@ HRESULT VirtualKinectSensor::ImageStreamReleaseFrame( return E_NOINTERFACE; } stream->outstanding = false; + const int stype = static_cast(stream->type); LeaveCriticalSection(&lock_); + static unsigned rel = 0; + if (rel < 6) { + ShimLog("ImageStreamReleaseFrame#%u type=%d", rel, stype); + } + ++rel; return S_OK; } @@ -452,7 +458,7 @@ void VirtualKinectSensor::BuildSkeletonFrame(const SourceFrame& src) { void VirtualKinectSensor::FillStreams(const SourceFrame& src) { for (auto& stream : streams_) { - if (!stream.open || stream.outstanding) { + if (!stream.open) { continue; } const std::size_t next = (stream.has_frame)