From cd3ada7ccfce847a53e22b202a3945bdc57d3b43 Mon Sep 17 00:00:00 2001 From: Peter Harris Date: Thu, 16 Oct 2025 13:33:38 +0100 Subject: [PATCH] Only pop a marker if we have an earlier push --- source_common/trackers/queue.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source_common/trackers/queue.cpp b/source_common/trackers/queue.cpp index 763dded..dc838b8 100644 --- a/source_common/trackers/queue.cpp +++ b/source_common/trackers/queue.cpp @@ -76,7 +76,12 @@ namespace { UNUSED(instruction); - queueState.debugStack.pop_back(); + // Only pop if we have an earlier push - this shouldn't happen and + // is a validation violation, but not all apps handle this correctly + if (!queueState.debugStack.empty()) + { + queueState.debugStack.pop_back(); + } } /**